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.000928/0.0009279, allocations: 98.92 kB / 17.35 MB, free: 6.367 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.0008932/0.0008932, allocations: 172.3 kB / 18.25 MB, free: 5.527 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.307/1.307, allocations: 223.3 MB / 242.3 MB, free: 264 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.19/0.19, allocations: 44.25 MB / 337.7 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00029/0.00029, allocations: 15.98 kB / 410.3 MB, free: 27.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09956/0.09987, allocations: 61.92 MB / 472.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02893/0.1289, allocations: 28.28 MB / 0.4888 GB, free: 0.9961 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01701/0.1459, allocations: 14.04 MB / 0.5025 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003699/0.1463, allocations: 7.938 kB / 0.5025 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006537/0.147, allocations: 222.8 kB / 0.5027 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2159/0.3629, allocations: 2.912 MB / 0.5056 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005996/0.3689, allocations: 1.979 MB / 0.5075 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001451/0.3704, allocations: 1.132 MB / 0.5086 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004059/0.3708, allocations: 208.5 kB / 0.5088 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007819/0.3716, allocations: 395.3 kB / 0.5092 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003325/0.372, allocations: 267.4 kB / 0.5095 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.372, allocations: 15.5 kB / 0.5095 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01335/0.3854, allocations: 7.127 MB / 0.5164 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002483/0.3857, allocations: 81.58 kB / 0.5165 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004682/0.3862, allocations: 233.5 kB / 0.5167 GB, free: 13.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01144/0.3976, allocations: 4.373 MB / 0.521 GB, free: 12.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3976, allocations: 0 / 0.521 GB, free: 12.83 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.917e-06/0.3977, allocations: 0 / 0.521 GB, free: 12.83 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.748e-05/0.3977, allocations: 1.75 kB / 0.521 GB, free: 12.83 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.003903/0.4016, allocations: 1.162 MB / 0.5221 GB, free: 12.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.4016, allocations: 13.56 kB / 0.5221 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001674/0.4033, allocations: 215.5 kB / 0.5224 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004611/0.4038, allocations: 368.8 kB / 0.5227 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.779e-05/0.4038, allocations: 28.5 kB / 0.5227 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.898e-05/0.4039, allocations: 36.12 kB / 0.5228 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.4055, allocations: 0.5982 MB / 0.5234 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.4055, allocations: 4.188 kB / 0.5234 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.805e-05/0.4056, allocations: 17.31 kB / 0.5234 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.4056, allocations: 9.203 kB / 0.5234 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/0.4072, allocations: 0.5644 MB / 0.5239 GB, free: 11.31 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.002576/0.4098, allocations: 2.633 MB / 0.5265 GB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001449/0.4112, allocations: 0.4883 MB / 0.527 GB, free: 8.996 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003963/0.4116, allocations: 197.8 kB / 0.5272 GB, free: 8.957 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04716/0.4588, allocations: 24.43 MB / 0.551 GB, free: 3.922 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.29e-05/0.4589, allocations: 40.78 kB / 0.5511 GB, free: 3.879 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.144e-06/0.4589, allocations: 0 / 0.5511 GB, free: 3.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003023/0.4619, allocations: 0.8486 MB / 0.5519 GB, free: 3.176 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.069e-05/0.462, allocations: 110.8 kB / 0.552 GB, free: 3.043 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003577/0.4624, allocations: 309.7 kB / 0.5523 GB, free: 2.797 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/0.4624, allocations: 31.55 kB / 0.5523 GB, free: 2.766 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.4626, allocations: 204.4 kB / 0.5525 GB, free: 2.609 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.472e-05/0.4627, allocations: 80.59 kB / 0.5526 GB, free: 2.543 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.071e-05/0.4627, allocations: 32.69 kB / 0.5526 GB, free: 2.516 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.4628, allocations: 351.9 kB / 0.553 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003897/0.4632, allocations: 148.1 kB / 0.5531 GB, free: 2.07 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004467/0.4637, allocations: 248.6 kB / 0.5533 GB, free: 1.832 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008419/0.4646, allocations: 396.6 kB / 0.5537 GB, free: 1.512 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.4646, allocations: 0 / 0.5537 GB, free: 1.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001038/0.4656, allocations: 449.6 kB / 0.5542 GB, free: 1.168 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.4656, allocations: 8 kB / 0.5542 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.4657, allocations: 4 kB / 0.5542 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.4657, allocations: 4 kB / 0.5542 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003427/0.466, allocations: 90.36 kB / 0.5543 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.466, allocations: 11.98 kB / 0.5543 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003626/0.4664, allocations: 64.34 kB / 0.5543 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.276e-05/0.4665, allocations: 15.44 kB / 0.5543 GB, free: 0.9961 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.0002035/0.4667, allocations: 160.4 kB / 0.5545 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.713e-05/0.4668, allocations: 37.67 kB / 0.5545 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002455/0.4692, allocations: 1.942 MB / 0.5564 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.801e-05/0.4693, allocations: 34.81 kB / 0.5565 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.403e-06/0.4693, allocations: 4.75 kB / 0.5565 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.4693, allocations: 0 / 0.5565 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.4703, allocations: 1.01 MB / 0.5574 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.4704, allocations: 0 / 0.5574 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003265/0.4707, allocations: 86.22 kB / 0.5575 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.4707, allocations: 1.641 kB / 0.5575 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.51e-05/0.4707, allocations: 7.375 kB / 0.5575 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.4707, allocations: 6.438 kB / 0.5575 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.4708, allocations: 4.922 kB / 0.5576 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.4722, allocations: 1.102 MB / 0.5586 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002099/0.4725, allocations: 215.6 kB / 0.5588 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.202e-05/0.4725, allocations: 8 kB / 0.5588 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003238/0.4729, allocations: 51.75 kB / 0.5589 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.473, allocations: 39.59 kB / 0.5589 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.764e-05/0.473, allocations: 12 kB / 0.5589 GB, free: 13.42 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003492/0.4734, allocations: 327.1 kB / 0.5593 GB, free: 13.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4734, allocations: 1.531 kB / 0.5593 GB, free: 13.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004164/0.4776, allocations: 0.9916 MB / 0.5602 GB, free: 12.11 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.007267/0.4849, allocations: 1.184 MB / 0.5614 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.4863, allocations: 0.6149 MB / 0.562 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.4864, allocations: 4 kB / 0.562 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000829/0.4872, allocations: 0.5272 MB / 0.5625 GB, free: 9.902 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.4886, allocations: 205.5 kB / 0.5627 GB, free: 9.707 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/0.4911, allocations: 1.882 MB / 0.5645 GB, free: 7.793 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005463/0.4917, allocations: 0.9638 MB / 0.5655 GB, free: 6.809 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004718/0.4922, allocations: 271.8 kB / 0.5657 GB, free: 6.551 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.4923, allocations: 39.44 kB / 0.5658 GB, free: 6.512 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4923, allocations: 0 / 0.5658 GB, free: 6.512 MB / 414.1 MB Notification: Performance of Templates: time 0.05954/0.5518, allocations: 38.76 MB / 0.6036 GB, free: 15.94 MB / 462.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