Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,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.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,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.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001084, allocations: 108.7 kB / 17.21 MB, free: 6.27 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.001157/0.001157, allocations: 194 kB / 18.12 MB, free: 5.363 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.28/1.28, allocations: 222.9 MB / 241.8 MB, free: 13.81 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.2073/0.2073, allocations: 44.17 MB / 336.1 MB, free: 2.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001424, allocations: 68.55 kB / 407.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1198, allocations: 60.83 MB / 468.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03218/0.152, allocations: 28.96 MB / 497.5 MB, free: 1.754 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01738/0.1694, allocations: 14.28 MB / 0.4998 GB, free: 3.426 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004541/0.1699, allocations: 15.88 kB / 0.4998 GB, free: 3.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00079/0.1707, allocations: 214.9 kB / 0.5 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00992/0.1807, allocations: 2.919 MB / 0.5028 GB, free: 292 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.249/0.4297, allocations: 1.967 MB / 0.5048 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001945/0.4317, allocations: 1.136 MB / 0.5059 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004972/0.4322, allocations: 210.1 kB / 0.5061 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001048/0.4333, allocations: 404.7 kB / 0.5065 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004561/0.4337, allocations: 275.2 kB / 0.5067 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.812e-05/0.4338, allocations: 21.58 kB / 0.5067 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01784/0.4517, allocations: 7.12 MB / 0.5137 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002669/0.452, allocations: 90.94 kB / 0.5138 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005173/0.4525, allocations: 201.1 kB / 0.514 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01322/0.4657, allocations: 4.406 MB / 0.5183 GB, free: 13.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.4658, allocations: 0 / 0.5183 GB, free: 13.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4658, allocations: 0 / 0.5183 GB, free: 13.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.812e-05/0.4658, allocations: 2.344 kB / 0.5183 GB, free: 13.46 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.004523/0.4704, allocations: 1.231 MB / 0.5195 GB, free: 12.74 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.4704, allocations: 12.19 kB / 0.5195 GB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001697/0.4721, allocations: 211.6 kB / 0.5197 GB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004705/0.4726, allocations: 374.5 kB / 0.5201 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.893e-05/0.4727, allocations: 26.91 kB / 0.5201 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.11e-05/0.4727, allocations: 26.94 kB / 0.5201 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.4742, allocations: 0.5825 MB / 0.5207 GB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.4742, allocations: 4.469 kB / 0.5207 GB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.033e-05/0.4743, allocations: 11.25 kB / 0.5207 GB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.4743, allocations: 6.969 kB / 0.5207 GB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.4757, allocations: 0.5289 MB / 0.5212 GB, free: 12.14 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.002651/0.4784, allocations: 2.614 MB / 0.5238 GB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/0.4798, allocations: 467.4 kB / 0.5242 GB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003878/0.4802, allocations: 186.1 kB / 0.5244 GB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04349/0.5237, allocations: 24.21 MB / 0.548 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.797e-05/0.5238, allocations: 37.31 kB / 0.5481 GB, free: 5.062 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.916e-06/0.5238, allocations: 0 / 0.5481 GB, free: 5.062 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002903/0.5267, allocations: 0.7908 MB / 0.5488 GB, free: 4.422 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.964e-05/0.5268, allocations: 110.8 kB / 0.5489 GB, free: 4.289 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/0.5272, allocations: 312.5 kB / 0.5492 GB, free: 4.035 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.192e-05/0.5272, allocations: 36.42 kB / 0.5493 GB, free: 4.004 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.5273, allocations: 205.1 kB / 0.5495 GB, free: 3.848 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.551e-05/0.5274, allocations: 80.39 kB / 0.5496 GB, free: 3.781 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.5275, allocations: 70.41 kB / 0.5496 GB, free: 3.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.5277, allocations: 349 kB / 0.55 GB, free: 3.395 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003851/0.5281, allocations: 136.4 kB / 0.5501 GB, free: 3.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004544/0.5285, allocations: 231.7 kB / 0.5503 GB, free: 3.078 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007778/0.5293, allocations: 364.3 kB / 0.5507 GB, free: 2.785 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.5293, allocations: 0 / 0.5507 GB, free: 2.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009773/0.5303, allocations: 424.9 kB / 0.5511 GB, free: 2.469 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.5303, allocations: 4 kB / 0.5511 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.5304, allocations: 7.688 kB / 0.5511 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.5304, allocations: 4 kB / 0.5511 GB, free: 2.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003383/0.5307, allocations: 85.36 kB / 0.5512 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.5307, allocations: 10.23 kB / 0.5512 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003467/0.5311, allocations: 55.03 kB / 0.5512 GB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.5311, allocations: 16.88 kB / 0.5512 GB, free: 2.312 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: 5 (Opening.y,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.000181/0.5313, allocations: 161.8 kB / 0.5514 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.405e-05/0.5314, allocations: 36.78 kB / 0.5514 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002282/0.5337, allocations: 1.901 MB / 0.5533 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-05/0.5338, allocations: 37.19 kB / 0.5533 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.5338, allocations: 3.984 kB / 0.5533 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.5338, allocations: 0 / 0.5533 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.5348, allocations: 1.01 MB / 0.5543 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.483e-06/0.5349, allocations: 7.562 kB / 0.5543 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003009/0.5352, allocations: 67.94 kB / 0.5544 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.5352, allocations: 4 kB / 0.5544 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.407e-05/0.5352, allocations: 8 kB / 0.5544 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.5352, allocations: 3.938 kB / 0.5544 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.5352, allocations: 0 / 0.5544 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001448/0.5367, allocations: 1.08 MB / 0.5554 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.5368, allocations: 163.9 kB / 0.5556 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.294e-05/0.5369, allocations: 24.62 kB / 0.5556 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002949/0.5372, allocations: 43.31 kB / 0.5557 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.5373, allocations: 31.95 kB / 0.5557 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.649e-05/0.5374, allocations: 15.98 kB / 0.5557 GB, free: 14.33 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003653/0.5377, allocations: 323.1 kB / 0.556 GB, free: 14.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5377, allocations: 0 / 0.556 GB, free: 14.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004083/0.5418, allocations: 0.9877 MB / 0.557 GB, free: 13.03 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: 19 ($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,Opening.y) * 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.006392/0.5482, allocations: 1.175 MB / 0.5581 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.55, allocations: 0.5967 MB / 0.5587 GB, free: 11.37 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.55, allocations: 0 / 0.5587 GB, free: 11.37 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007871/0.5508, allocations: 0.5156 MB / 0.5592 GB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/0.5522, allocations: 197.7 kB / 0.5594 GB, free: 10.67 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002336/0.5546, allocations: 1.842 MB / 0.5612 GB, free: 8.801 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004989/0.5551, allocations: 0.9677 MB / 0.5622 GB, free: 7.809 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005157/0.5556, allocations: 277.4 kB / 0.5624 GB, free: 7.547 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.5557, allocations: 43.42 kB / 0.5625 GB, free: 7.504 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5557, allocations: 0 / 0.5625 GB, free: 7.504 MB / 414.1 MB Notification: Performance of Templates: time 0.05672/0.6125, allocations: 38.83 MB / 0.6004 GB, free: 0.8789 MB / 446.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches