Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00174/0.00174, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002062/0.002062, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2268/0.2268, allocations: 46.11 MB / 344.2 MB, free: 11.53 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003242/0.003242, allocations: 82.11 kB / 417.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.141, allocations: 62.45 MB / 480.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03366/0.1747, allocations: 28.25 MB / 0.4964 GB, free: 8.855 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2401/0.4148, allocations: 13.28 MB / 0.5094 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003856/0.4153, allocations: 17.16 kB / 0.5094 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007595/0.4161, allocations: 250.1 kB / 0.5097 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01016/0.4262, allocations: 3.661 MB / 0.5132 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007488/0.4338, allocations: 2.374 MB / 0.5156 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001729/0.4355, allocations: 0.8909 MB / 0.5164 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005152/0.436, allocations: 249 kB / 0.5167 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001051/0.4371, allocations: 444.7 kB / 0.5171 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004152/0.4375, allocations: 267.2 kB / 0.5173 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.914e-05/0.4376, allocations: 33.72 kB / 0.5174 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0189/0.4565, allocations: 7.069 MB / 0.5243 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000331/0.4569, allocations: 99.95 kB / 0.5244 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007646/0.4577, allocations: 219.1 kB / 0.5246 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01341/0.4711, allocations: 4.421 MB / 0.5289 GB, free: 8.086 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.4711, allocations: 1.656 kB / 0.5289 GB, free: 8.086 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.4711, allocations: 0 / 0.5289 GB, free: 8.086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.155e-05/0.4712, allocations: 3.938 kB / 0.5289 GB, free: 8.082 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.004567/0.4757, allocations: 1.228 MB / 0.5301 GB, free: 7.188 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.4758, allocations: 9.625 kB / 0.5301 GB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001713/0.4775, allocations: 222.3 kB / 0.5303 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004642/0.478, allocations: 359.3 kB / 0.5307 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.534e-05/0.478, allocations: 27.06 kB / 0.5307 GB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.519e-05/0.4781, allocations: 27 kB / 0.5307 GB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/0.4796, allocations: 0.5901 MB / 0.5313 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.4796, allocations: 5.109 kB / 0.5313 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.125e-05/0.4796, allocations: 12.75 kB / 0.5313 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.736e-05/0.4797, allocations: 8.281 kB / 0.5313 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001481/0.4812, allocations: 0.5235 MB / 0.5318 GB, free: 6.098 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.002563/0.4837, allocations: 2.632 MB / 0.5344 GB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001455/0.4852, allocations: 463.6 kB / 0.5348 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003851/0.4856, allocations: 193.5 kB / 0.535 GB, free: 3.277 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05611/0.5417, allocations: 26.76 MB / 0.5612 GB, free: 8.543 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.061e-05/0.5418, allocations: 38.56 kB / 0.5612 GB, free: 8.496 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.164e-06/0.5418, allocations: 0 / 0.5612 GB, free: 8.496 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002917/0.5448, allocations: 0.7863 MB / 0.562 GB, free: 7.703 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.906e-05/0.5449, allocations: 106.8 kB / 0.5621 GB, free: 7.574 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000388/0.5453, allocations: 316.5 kB / 0.5624 GB, free: 7.262 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.5453, allocations: 29.7 kB / 0.5624 GB, free: 7.227 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.5455, allocations: 211.1 kB / 0.5626 GB, free: 7.02 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.07e-05/0.5456, allocations: 86.75 kB / 0.5627 GB, free: 6.934 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001236/0.5457, allocations: 65.62 kB / 0.5627 GB, free: 6.863 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.5459, allocations: 346.8 kB / 0.5631 GB, free: 6.516 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003984/0.5463, allocations: 141.7 kB / 0.5632 GB, free: 6.379 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004835/0.5468, allocations: 233.4 kB / 0.5634 GB, free: 6.113 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008515/0.5477, allocations: 357.1 kB / 0.5638 GB, free: 5.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.5477, allocations: 4 kB / 0.5638 GB, free: 5.727 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001042/0.5487, allocations: 421 kB / 0.5642 GB, free: 5.309 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.5488, allocations: 4 kB / 0.5642 GB, free: 5.305 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.5488, allocations: 4 kB / 0.5642 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.384e-05/0.5488, allocations: 7.984 kB / 0.5642 GB, free: 5.293 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003491/0.5492, allocations: 79.83 kB / 0.5643 GB, free: 5.215 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.5492, allocations: 7.938 kB / 0.5643 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003156/0.5495, allocations: 51.72 kB / 0.5643 GB, free: 5.156 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.753e-05/0.5496, allocations: 23.94 kB / 0.5644 GB, free: 5.133 MB / 414.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.0002281/0.5498, allocations: 157.8 kB / 0.5645 GB, free: 4.969 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.905e-05/0.5499, allocations: 31.62 kB / 0.5645 GB, free: 4.938 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002723/0.5526, allocations: 1.907 MB / 0.5664 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.301e-05/0.5527, allocations: 35.89 kB / 0.5664 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.5527, allocations: 0 / 0.5664 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.5527, allocations: 0 / 0.5664 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.5539, allocations: 1.008 MB / 0.5674 GB, free: 1.945 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.5539, allocations: 3.938 kB / 0.5674 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003137/0.5542, allocations: 75.88 kB / 0.5675 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.5542, allocations: 4 kB / 0.5675 GB, free: 1.863 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.784e-05/0.5543, allocations: 7.984 kB / 0.5675 GB, free: 1.855 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.203e-06/0.5543, allocations: 7.938 kB / 0.5675 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.5543, allocations: 0 / 0.5675 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001634/0.5559, allocations: 1.08 MB / 0.5686 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.5561, allocations: 165.7 kB / 0.5687 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.627e-05/0.5562, allocations: 23.75 kB / 0.5687 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002616/0.5565, allocations: 27.91 kB / 0.5688 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.5566, allocations: 35.95 kB / 0.5688 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.961e-05/0.5566, allocations: 8 kB / 0.5688 GB, free: 492 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004001/0.557, allocations: 327.1 kB / 0.5691 GB, free: 168 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5571, allocations: 0 / 0.5691 GB, free: 168 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.00444/0.5615, allocations: 0.9994 MB / 0.5701 GB, free: 15.16 MB / 430.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.006519/0.568, allocations: 1.185 MB / 0.5713 GB, free: 14.06 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001757/0.5698, allocations: 0.6142 MB / 0.5719 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.5699, allocations: 0 / 0.5719 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007759/0.5706, allocations: 0.5144 MB / 0.5724 GB, free: 12.94 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001341/0.572, allocations: 216.9 kB / 0.5726 GB, free: 12.74 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/0.5744, allocations: 1.528 MB / 0.5741 GB, free: 11.18 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006051/0.575, allocations: 0.9638 MB / 0.575 GB, free: 10.19 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005007/0.5755, allocations: 270.8 kB / 0.5753 GB, free: 9.93 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.5756, allocations: 43.44 kB / 0.5753 GB, free: 9.887 MB / 430.1 MB Notification: Performance of SimCode: time 6.82e-07/0.5756, allocations: 0 / 0.5753 GB, free: 9.887 MB / 430.1 MB Notification: Performance of Templates: time 0.06364/0.6393, allocations: 39.5 MB / 0.6139 GB, free: 2.48 MB / 462.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches