Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001026/0.001026, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.309/1.309, allocations: 222.9 MB / 242.2 MB, free: 15.2 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.2094/0.2094, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 64.12 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1332, allocations: 60.81 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02985/0.1631, allocations: 28.14 MB / 497.4 MB, free: 2.137 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01583/0.179, allocations: 13.31 MB / 0.4987 GB, free: 4.777 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004467/0.1795, allocations: 11.94 kB / 0.4987 GB, free: 4.766 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008577/0.1803, allocations: 250.4 kB / 0.499 GB, free: 4.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01091/0.1913, allocations: 3.651 MB / 0.5025 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2493/0.4407, allocations: 2.362 MB / 0.5048 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001335/0.442, allocations: 0.901 MB / 0.5057 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004566/0.4425, allocations: 249.1 kB / 0.506 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000828/0.4433, allocations: 448.5 kB / 0.5064 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003524/0.4437, allocations: 272.5 kB / 0.5067 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.266e-05/0.4438, allocations: 33.25 kB / 0.5067 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01426/0.458, allocations: 7.056 MB / 0.5136 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002905/0.4584, allocations: 98.83 kB / 0.5137 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000558/0.4589, allocations: 221.9 kB / 0.5139 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01394/0.4729, allocations: 4.414 MB / 0.5182 GB, free: 13.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.4729, allocations: 2.812 kB / 0.5182 GB, free: 13.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.473, allocations: 0 / 0.5182 GB, free: 13.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.686e-05/0.473, allocations: 0 / 0.5182 GB, free: 13.2 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005676/0.4787, allocations: 1.243 MB / 0.5194 GB, free: 12.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.4787, allocations: 10.34 kB / 0.5194 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001841/0.4806, allocations: 213.2 kB / 0.5196 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005711/0.4812, allocations: 369.7 kB / 0.52 GB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.69e-05/0.4812, allocations: 27.47 kB / 0.52 GB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.241e-05/0.4813, allocations: 26.09 kB / 0.52 GB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.4829, allocations: 0.5928 MB / 0.5206 GB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.4829, allocations: 4 kB / 0.5206 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.818e-05/0.483, allocations: 16.5 kB / 0.5206 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.483, allocations: 9.625 kB / 0.5206 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001639/0.4846, allocations: 0.5433 MB / 0.5212 GB, free: 12.09 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00294/0.4876, allocations: 2.628 MB / 0.5237 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001557/0.4892, allocations: 466.4 kB / 0.5242 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004419/0.4896, allocations: 204.1 kB / 0.5244 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04942/0.539, allocations: 24.21 MB / 0.548 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.796e-05/0.5391, allocations: 34.5 kB / 0.548 GB, free: 5.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.305e-06/0.5391, allocations: 0 / 0.548 GB, free: 5.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003034/0.5422, allocations: 0.8203 MB / 0.5488 GB, free: 4.758 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.384e-05/0.5423, allocations: 110.8 kB / 0.549 GB, free: 4.625 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004024/0.5427, allocations: 305.5 kB / 0.5492 GB, free: 4.379 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.603e-05/0.5427, allocations: 37.62 kB / 0.5493 GB, free: 4.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.5429, allocations: 197.4 kB / 0.5495 GB, free: 4.191 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.851e-05/0.543, allocations: 93.05 kB / 0.5496 GB, free: 4.117 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.5431, allocations: 73.66 kB / 0.5496 GB, free: 4.062 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.5433, allocations: 338.1 kB / 0.5499 GB, free: 3.734 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004206/0.5437, allocations: 145.8 kB / 0.5501 GB, free: 3.629 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004852/0.5442, allocations: 241.2 kB / 0.5503 GB, free: 3.398 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008589/0.5451, allocations: 386.8 kB / 0.5507 GB, free: 3.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.5451, allocations: 0 / 0.5507 GB, free: 3.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001106/0.5462, allocations: 451.4 kB / 0.5511 GB, free: 2.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.5462, allocations: 8 kB / 0.5511 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.5462, allocations: 0 / 0.5511 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.5463, allocations: 4 kB / 0.5511 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003761/0.5466, allocations: 93.03 kB / 0.5512 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.5467, allocations: 4 kB / 0.5512 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003609/0.547, allocations: 51.41 kB / 0.5513 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.797e-05/0.5471, allocations: 23.23 kB / 0.5513 GB, free: 2.586 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 4 (SinkP1.medium.phase,SourceP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0002494/0.5473, allocations: 153.6 kB / 0.5514 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.5474, allocations: 32.31 kB / 0.5515 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002584/0.55, allocations: 1.927 MB / 0.5534 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.844e-05/0.5501, allocations: 31.89 kB / 0.5534 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.5501, allocations: 0 / 0.5534 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.5501, allocations: 7.984 kB / 0.5534 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.5513, allocations: 1.017 MB / 0.5544 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.5513, allocations: 4 kB / 0.5544 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003415/0.5516, allocations: 79.02 kB / 0.5545 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.082e-06/0.5516, allocations: 0 / 0.5545 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/0.5517, allocations: 11.98 kB / 0.5545 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.5517, allocations: 7.938 kB / 0.5545 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.5517, allocations: 0 / 0.5545 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.5533, allocations: 1.092 MB / 0.5555 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001766/0.5535, allocations: 163.8 kB / 0.5557 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.5536, allocations: 27.69 kB / 0.5557 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003146/0.5539, allocations: 37.78 kB / 0.5558 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.554, allocations: 31.95 kB / 0.5558 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.554, allocations: 11.98 kB / 0.5558 GB, free: 14.11 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003621/0.5544, allocations: 327.1 kB / 0.5561 GB, free: 13.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5544, allocations: 0 / 0.5561 GB, free: 13.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004286/0.5587, allocations: 0.9916 MB / 0.5571 GB, free: 12.8 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008092/0.5668, allocations: 1.185 MB / 0.5582 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002029/0.5689, allocations: 0.6357 MB / 0.5589 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.5689, allocations: 4 kB / 0.5589 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000829/0.5697, allocations: 0.5135 MB / 0.5594 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00143/0.5712, allocations: 216.5 kB / 0.5596 GB, free: 10.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002415/0.5736, allocations: 1.53 MB / 0.5611 GB, free: 8.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005729/0.5742, allocations: 0.9599 MB / 0.562 GB, free: 7.855 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000572/0.5748, allocations: 284.7 kB / 0.5623 GB, free: 7.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.575, allocations: 43.42 kB / 0.5623 GB, free: 7.547 MB / 414.1 MB Notification: Performance of SimCode: time 7.81e-07/0.575, allocations: 4 kB / 0.5623 GB, free: 7.543 MB / 414.1 MB Notification: Performance of Templates: time 0.06664/0.6416, allocations: 39.59 MB / 0.601 GB, free: 132 kB / 446.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches