Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001562/0.001562, allocations: 108 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001925/0.001925, allocations: 205.8 kB / 18.27 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2227/0.2227, allocations: 46.11 MB / 343.8 MB, free: 11.76 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 73.86 kB / 417 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1321, allocations: 62.45 MB / 479.5 MB, free: 5.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03445/0.1666, allocations: 28.38 MB / 0.496 GB, free: 9.141 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2567/0.4234, allocations: 13.38 MB / 0.509 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004281/0.4238, allocations: 11.69 kB / 0.5091 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007899/0.4247, allocations: 225.9 kB / 0.5093 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01015/0.4348, allocations: 3.24 MB / 0.5124 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006497/0.4414, allocations: 2.124 MB / 0.5145 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001368/0.4427, allocations: 0.8967 MB / 0.5154 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004184/0.4432, allocations: 246.2 kB / 0.5156 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008012/0.444, allocations: 447.1 kB / 0.516 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003397/0.4443, allocations: 282.7 kB / 0.5163 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.341e-05/0.4444, allocations: 34.38 kB / 0.5163 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01471/0.4591, allocations: 7.13 MB / 0.5233 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000231/0.4594, allocations: 97.88 kB / 0.5234 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005614/0.46, allocations: 224.2 kB / 0.5236 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01217/0.4721, allocations: 4.444 MB / 0.528 GB, free: 8.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.4722, allocations: 6.031 kB / 0.528 GB, free: 8.676 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4722, allocations: 3.844 kB / 0.528 GB, free: 8.676 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.103e-05/0.4722, allocations: 0 / 0.528 GB, free: 8.676 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.004288/0.4765, allocations: 1.239 MB / 0.5292 GB, free: 7.816 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.4766, allocations: 12.84 kB / 0.5292 GB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00188/0.4785, allocations: 218 kB / 0.5294 GB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005382/0.479, allocations: 359.5 kB / 0.5297 GB, free: 7.402 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.367e-05/0.4791, allocations: 26.44 kB / 0.5298 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.351e-05/0.4791, allocations: 27.19 kB / 0.5298 GB, free: 7.383 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.4808, allocations: 0.5932 MB / 0.5304 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.4808, allocations: 2.156 kB / 0.5304 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.631e-05/0.4809, allocations: 12.12 kB / 0.5304 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.4809, allocations: 8.656 kB / 0.5304 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/0.4826, allocations: 0.5496 MB / 0.5309 GB, free: 6.738 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.002713/0.4853, allocations: 2.618 MB / 0.5335 GB, free: 4.277 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.4868, allocations: 467.4 kB / 0.5339 GB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004399/0.4873, allocations: 199.8 kB / 0.5341 GB, free: 3.945 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05085/0.5382, allocations: 26.78 MB / 0.5603 GB, free: 9.148 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.534e-05/0.5382, allocations: 34.56 kB / 0.5603 GB, free: 9.105 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.375e-06/0.5383, allocations: 4 kB / 0.5603 GB, free: 9.102 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003098/0.5414, allocations: 0.8127 MB / 0.5611 GB, free: 8.285 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.719e-05/0.5415, allocations: 110.8 kB / 0.5612 GB, free: 8.152 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003848/0.5419, allocations: 316.5 kB / 0.5615 GB, free: 7.84 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.63e-05/0.5419, allocations: 25.7 kB / 0.5615 GB, free: 7.809 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.5421, allocations: 210.4 kB / 0.5617 GB, free: 7.602 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.304e-05/0.5421, allocations: 84.8 kB / 0.5618 GB, free: 7.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.5423, allocations: 69.59 kB / 0.5619 GB, free: 7.445 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.5424, allocations: 338.8 kB / 0.5622 GB, free: 7.105 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004441/0.5429, allocations: 149.7 kB / 0.5623 GB, free: 6.961 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005069/0.5434, allocations: 251.8 kB / 0.5626 GB, free: 6.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000896/0.5443, allocations: 378.1 kB / 0.5629 GB, free: 6.285 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.5443, allocations: 0 / 0.5629 GB, free: 6.285 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001126/0.5454, allocations: 448.8 kB / 0.5634 GB, free: 5.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.5455, allocations: 4 kB / 0.5634 GB, free: 5.836 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.5455, allocations: 7.688 kB / 0.5634 GB, free: 5.832 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.5455, allocations: 7.844 kB / 0.5634 GB, free: 5.828 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003768/0.5459, allocations: 87.81 kB / 0.5635 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.138e-06/0.5459, allocations: 8.25 kB / 0.5635 GB, free: 5.734 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003618/0.5463, allocations: 63.64 kB / 0.5635 GB, free: 5.672 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.604e-05/0.5463, allocations: 16 kB / 0.5636 GB, free: 5.656 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: 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.0001992/0.5465, allocations: 161.7 kB / 0.5637 GB, free: 5.488 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.148e-05/0.5466, allocations: 35.62 kB / 0.5638 GB, free: 5.453 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002579/0.5492, allocations: 1.924 MB / 0.5656 GB, free: 3.527 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.188e-05/0.5492, allocations: 35.88 kB / 0.5657 GB, free: 3.492 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.5492, allocations: 0 / 0.5657 GB, free: 3.492 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.5493, allocations: 4 kB / 0.5657 GB, free: 3.488 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.5503, allocations: 1.009 MB / 0.5667 GB, free: 2.438 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.5503, allocations: 0 / 0.5667 GB, free: 2.438 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003547/0.5507, allocations: 83.86 kB / 0.5667 GB, free: 2.355 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.5507, allocations: 0 / 0.5667 GB, free: 2.355 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.5507, allocations: 8 kB / 0.5667 GB, free: 2.348 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.5507, allocations: 3.938 kB / 0.5667 GB, free: 2.344 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.5508, allocations: 4 kB / 0.5667 GB, free: 2.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/0.5524, allocations: 1.1 MB / 0.5678 GB, free: 1.223 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.5526, allocations: 159.8 kB / 0.568 GB, free: 1.047 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.51e-05/0.5526, allocations: 26.5 kB / 0.568 GB, free: 1.023 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000336/0.553, allocations: 55.77 kB / 0.5681 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.758e-05/0.5531, allocations: 31.95 kB / 0.5681 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-05/0.5531, allocations: 15.98 kB / 0.5681 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003732/0.5535, allocations: 323.1 kB / 0.5684 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.044e-06/0.5535, allocations: 0 / 0.5684 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003579/0.5571, allocations: 1.003 MB / 0.5694 GB, free: 15.61 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: 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.005869/0.563, allocations: 1.179 MB / 0.5705 GB, free: 14.52 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00176/0.5648, allocations: 0.6341 MB / 0.5712 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.5648, allocations: 0 / 0.5712 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007564/0.5656, allocations: 0.5206 MB / 0.5717 GB, free: 13.37 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001258/0.5668, allocations: 208.9 kB / 0.5719 GB, free: 13.17 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002373/0.5692, allocations: 1.863 MB / 0.5737 GB, free: 11.28 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005881/0.5698, allocations: 0.9599 MB / 0.5746 GB, free: 10.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004989/0.5703, allocations: 275.2 kB / 0.5749 GB, free: 10.04 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.5704, allocations: 47.38 kB / 0.5749 GB, free: 9.988 MB / 430.1 MB Notification: Performance of SimCode: time 6.71e-07/0.5704, allocations: 0 / 0.5749 GB, free: 9.988 MB / 430.1 MB Notification: Performance of Templates: time 0.0541/0.6246, allocations: 39.44 MB / 0.6134 GB, free: 2.648 MB / 462.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches