Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valve_linear.port_b.m_flow|valve_linear.port_b.p|valve_linear.port_b.h_outflow|valve_linear.minLimiter.y|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|opening.y|valve_constant.port_b.m_flow|valve_constant.port_b.p|valve_constant.port_b.h_outflow|valve_constant.minLimiter.y|valve_quadratic.port_b.m_flow|valve_quadratic.port_b.p|valve_quadratic.port_b.h_outflow|valve_quadratic.minLimiter.y|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow|sink3.ports.1..m_flow|sink3.ports.1..p|sink3.ports.1..h_outflow|valve_equalPercentage.port_b.m_flow|valve_equalPercentage.port_b.p|valve_equalPercentage.port_b.h_outflow|valve_equalPercentage.minLimiter.y|sink4.ports.1..m_flow|sink4.ports.1..p|sink4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valve_linear.port_b.m_flow|valve_linear.port_b.p|valve_linear.port_b.h_outflow|valve_linear.minLimiter.y|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|opening.y|valve_constant.port_b.m_flow|valve_constant.port_b.p|valve_constant.port_b.h_outflow|valve_constant.minLimiter.y|valve_quadratic.port_b.m_flow|valve_quadratic.port_b.p|valve_quadratic.port_b.h_outflow|valve_quadratic.minLimiter.y|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow|sink3.ports.1..m_flow|sink3.ports.1..p|sink3.ports.1..h_outflow|valve_equalPercentage.port_b.m_flow|valve_equalPercentage.port_b.p|valve_equalPercentage.port_b.h_outflow|valve_equalPercentage.minLimiter.y|sink4.ports.1..m_flow|sink4.ports.1..p|sink4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 109.6 kB / 18.45 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 188.2 kB / 19.39 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 222.9 MB / 243.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1966/0.1966, allocations: 44.18 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 63.91 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2922, allocations: 60.82 MB / 0.5196 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics): time 0.08065/0.3729, allocations: 82.26 MB / 0.5999 GB, free: 9.684 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.03613/0.4091, allocations: 28.45 MB / 0.6277 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001725/0.4108, allocations: 47.62 kB / 0.6277 GB, free: 13.1 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002496/0.4134, allocations: 0.9858 MB / 0.6287 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01336/0.4268, allocations: 5.127 MB / 0.6337 GB, free: 6.973 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01412/0.4409, allocations: 5.705 MB / 0.6393 GB, free: 1.273 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.005155/0.4461, allocations: 3.702 MB / 0.6429 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001758/0.4478, allocations: 1.004 MB / 0.6439 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002886/0.4507, allocations: 1.429 MB / 0.6453 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001962/0.4527, allocations: 1.054 MB / 0.6463 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004813/0.4532, allocations: 136 kB / 0.6464 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01838/0.4716, allocations: 8.523 MB / 0.6548 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007143/0.4724, allocations: 402.6 kB / 0.6551 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001457/0.4738, allocations: 0.8633 MB / 0.656 GB, free: 112 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01628/0.4901, allocations: 6.908 MB / 0.6627 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.4902, allocations: 0 / 0.6627 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.854e-06/0.4902, allocations: 0 / 0.6627 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.102e-05/0.4903, allocations: 4 kB / 0.6627 GB, free: 9.18 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.007514/0.4978, allocations: 2.815 MB / 0.6655 GB, free: 6.301 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.4978, allocations: 11.97 kB / 0.6655 GB, free: 6.289 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0078/0.5056, allocations: 0.8623 MB / 0.6663 GB, free: 5.426 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001998/0.5077, allocations: 0.9796 MB / 0.6673 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001438/0.5078, allocations: 110.3 kB / 0.6674 GB, free: 4.293 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002659/0.5081, allocations: 112 kB / 0.6675 GB, free: 4.184 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006292/0.5144, allocations: 2.241 MB / 0.6697 GB, free: 1.785 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.392e-05/0.5145, allocations: 7.938 kB / 0.6697 GB, free: 1.777 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001968/0.5147, allocations: 56 kB / 0.6697 GB, free: 1.723 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.721e-05/0.5147, allocations: 32 kB / 0.6698 GB, free: 1.691 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006402/0.5211, allocations: 2.092 MB / 0.6718 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01415/0.5353, allocations: 9.995 MB / 0.6816 GB, free: 4.84 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005625/0.541, allocations: 1.637 MB / 0.6832 GB, free: 3.195 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/0.5424, allocations: 0.5697 MB / 0.6837 GB, free: 2.625 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05292/0.5953, allocations: 26.23 MB / 0.7094 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.207e-05/0.5954, allocations: 51.56 kB / 0.7094 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=88): time 2.886e-06/0.5954, allocations: 0 / 0.7094 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of matching and sorting (n=88): time 0.01004/0.6054, allocations: 2.747 MB / 0.7121 GB, free: 2.602 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001454/0.6056, allocations: 274 kB / 0.7123 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001635/0.6072, allocations: 1.076 MB / 0.7134 GB, free: 1.188 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001132/0.6074, allocations: 45.7 kB / 0.7134 GB, free: 1.137 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000487/0.6079, allocations: 0.61 MB / 0.714 GB, free: 0.5195 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002658/0.6081, allocations: 313.3 kB / 0.7143 GB, free: 216 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2265/0.8346, allocations: 254.7 kB / 0.7146 GB, free: 179.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.8348, allocations: 347.5 kB / 0.7149 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001632/0.8365, allocations: 484.5 kB / 0.7154 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001708/0.8382, allocations: 0.871 MB / 0.7162 GB, free: 179.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002732/0.8409, allocations: 1.309 MB / 0.7175 GB, free: 178.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/0.841, allocations: 3.312 kB / 0.7175 GB, free: 178.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003732/0.8447, allocations: 1.475 MB / 0.7189 GB, free: 178.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.8447, allocations: 11.02 kB / 0.719 GB, free: 178.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.8448, allocations: 15.56 kB / 0.719 GB, free: 178.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.4e-05/0.8448, allocations: 20.97 kB / 0.719 GB, free: 178.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/0.846, allocations: 331 kB / 0.7193 GB, free: 178 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.76e-05/0.846, allocations: 24.97 kB / 0.7193 GB, free: 178 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/0.8472, allocations: 199 kB / 0.7195 GB, free: 178 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.8473, allocations: 66.75 kB / 0.7196 GB, free: 178 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001653/0.849, allocations: 0.6686 MB / 0.7202 GB, free: 177.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001456/0.8504, allocations: 0.8602 MB / 0.7211 GB, free: 177.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002597/0.853, allocations: 1.279 MB / 0.7223 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.164e-06/0.853, allocations: 4 kB / 0.7223 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.003352/0.8564, allocations: 1.446 MB / 0.7237 GB, free: 175.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.8564, allocations: 14.62 kB / 0.7238 GB, free: 175.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.8565, allocations: 17.28 kB / 0.7238 GB, free: 175.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.8565, allocations: 18.06 kB / 0.7238 GB, free: 175.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.8576, allocations: 328.7 kB / 0.7241 GB, free: 175.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.354e-05/0.8576, allocations: 28.17 kB / 0.7241 GB, free: 175.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.8587, allocations: 151.8 kB / 0.7243 GB, free: 175.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.501e-05/0.8588, allocations: 61.8 kB / 0.7243 GB, free: 175.8 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 16 (sink2.medium.phase,source2.medium.phase,sink4.medium.phase,source4.medium.phase,sink3.medium.phase,source3.medium.phase,sink1.medium.phase,source1.medium.phase,valve_equalPercentage.state_b.phase,valve_equalPercentage.state_a.phase,valve_quadratic.state_b.phase,valve_quadratic.state_a.phase,valve_constant.state_b.phase,valve_constant.state_a.phase,valve_linear.state_b.phase,valve_linear.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003897/0.8592, allocations: 265.6 kB / 0.7246 GB, free: 175.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000251/0.8594, allocations: 145.5 kB / 0.7247 GB, free: 175.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007619/0.8671, allocations: 6.601 MB / 0.7312 GB, free: 172.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.544e-05/0.8671, allocations: 7.5 kB / 0.7312 GB, free: 172.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.8671, allocations: 0 / 0.7312 GB, free: 172.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007287/0.8679, allocations: 488.7 kB / 0.7316 GB, free: 172.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000386/0.8682, allocations: 159.9 kB / 0.7318 GB, free: 172.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.8694, allocations: 140 kB / 0.7319 GB, free: 172.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.8696, allocations: 109.6 kB / 0.732 GB, free: 172.2 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003791/0.8734, allocations: 2.979 MB / 0.7349 GB, free: 171 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003653/0.877, allocations: 3.092 MB / 0.738 GB, free: 169.3 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00154/0.8786, allocations: 1.427 MB / 0.7394 GB, free: 168.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001689/0.8803, allocations: 1.551 MB / 0.7409 GB, free: 167.6 MB / 0.5606 GB Notification: Performance of Backend: time 5.71e-07/0.8803, allocations: 1.625 kB / 0.7409 GB, free: 167.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00971/0.89, allocations: 3.607 MB / 0.7444 GB, free: 166.3 MB / 0.5606 GB Notification: Performance of SimCode: time 0.00541/0.8954, allocations: 4.902 MB / 0.7492 GB, free: 161.3 MB / 0.5606 GB Notification: Performance of Templates: time 0.08219/0.9776, allocations: 78.76 MB / 0.8261 GB, free: 82.83 MB / 0.5606 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCharacteristics/TestValveCharacteristics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches