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.000837/0.0008369, allocations: 93.8 kB / 17.35 MB, free: 6.371 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.0009412/0.0009415, allocations: 172.6 kB / 18.25 MB, free: 5.523 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.304/1.304, allocations: 223.3 MB / 242.3 MB, free: 224 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.2005/0.2005, allocations: 44.25 MB / 337.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004149/0.000415, allocations: 12.72 kB / 410.3 MB, free: 27.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.12, allocations: 61.92 MB / 472.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03186/0.1519, allocations: 28.29 MB / 0.4888 GB, free: 0.9609 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01763/0.1696, allocations: 14.06 MB / 0.5025 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005153/0.1701, allocations: 11.88 kB / 0.5026 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007444/0.1709, allocations: 214.9 kB / 0.5028 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2543/0.4252, allocations: 2.914 MB / 0.5056 GB, free: 13.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008278/0.4335, allocations: 1.974 MB / 0.5075 GB, free: 13.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002305/0.4359, allocations: 1.138 MB / 0.5086 GB, free: 13.1 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005619/0.4364, allocations: 213.5 kB / 0.5089 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001053/0.4375, allocations: 396.5 kB / 0.5092 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004989/0.438, allocations: 272.4 kB / 0.5095 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.03e-05/0.4381, allocations: 18.92 kB / 0.5095 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01873/0.4568, allocations: 7.113 MB / 0.5165 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002343/0.4571, allocations: 91.84 kB / 0.5165 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005052/0.4576, allocations: 225.8 kB / 0.5168 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01402/0.4716, allocations: 4.38 MB / 0.521 GB, free: 12.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.4717, allocations: 1.406 kB / 0.521 GB, free: 12.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.4717, allocations: 0 / 0.521 GB, free: 12.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.4717, allocations: 0 / 0.521 GB, free: 12.73 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.004766/0.4765, allocations: 1.18 MB / 0.5222 GB, free: 11.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.4765, allocations: 13.5 kB / 0.5222 GB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001662/0.4782, allocations: 216.5 kB / 0.5224 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004744/0.4787, allocations: 369.5 kB / 0.5228 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.856e-05/0.4787, allocations: 29.75 kB / 0.5228 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.728e-05/0.4788, allocations: 34.44 kB / 0.5228 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/0.4804, allocations: 0.6181 MB / 0.5234 GB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.4804, allocations: 0 / 0.5234 GB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.253e-05/0.4804, allocations: 13.81 kB / 0.5234 GB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.4805, allocations: 7.5 kB / 0.5234 GB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001674/0.4821, allocations: 0.5952 MB / 0.524 GB, free: 11.2 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.002653/0.4848, allocations: 2.642 MB / 0.5266 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001511/0.4863, allocations: 0.4973 MB / 0.5271 GB, free: 8.871 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000464/0.4868, allocations: 223.9 kB / 0.5273 GB, free: 8.816 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04778/0.5346, allocations: 24.43 MB / 0.5512 GB, free: 3.691 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/0.5347, allocations: 45.23 kB / 0.5512 GB, free: 3.641 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.094e-06/0.5347, allocations: 0 / 0.5512 GB, free: 3.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003169/0.5379, allocations: 0.8856 MB / 0.5521 GB, free: 2.906 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.302e-05/0.538, allocations: 114.8 kB / 0.5522 GB, free: 2.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004047/0.5384, allocations: 306.5 kB / 0.5525 GB, free: 2.523 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.921e-05/0.5385, allocations: 33.64 kB / 0.5525 GB, free: 2.488 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.5386, allocations: 207.9 kB / 0.5527 GB, free: 2.332 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.095e-05/0.5387, allocations: 86.31 kB / 0.5528 GB, free: 2.262 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.24e-05/0.5388, allocations: 33.52 kB / 0.5528 GB, free: 2.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.539, allocations: 341.9 kB / 0.5531 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000444/0.5394, allocations: 167.9 kB / 0.5533 GB, free: 1.777 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005137/0.5399, allocations: 260.8 kB / 0.5536 GB, free: 1.527 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009539/0.5409, allocations: 418.7 kB / 0.5539 GB, free: 1.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.5409, allocations: 4 kB / 0.554 GB, free: 1.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001134/0.542, allocations: 482 kB / 0.5544 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.472e-05/0.5421, allocations: 4 kB / 0.5544 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.5421, allocations: 4 kB / 0.5544 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.579e-05/0.5421, allocations: 7.984 kB / 0.5544 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000368/0.5425, allocations: 100 kB / 0.5545 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.5425, allocations: 11.16 kB / 0.5545 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003891/0.5429, allocations: 65.33 kB / 0.5546 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.609e-05/0.543, allocations: 16.12 kB / 0.5546 GB, free: 0.625 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.0001889/0.5432, allocations: 160.4 kB / 0.5548 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.787e-05/0.5432, allocations: 32.56 kB / 0.5548 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002613/0.5459, allocations: 1.972 MB / 0.5567 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.183e-05/0.5459, allocations: 30.83 kB / 0.5568 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.5459, allocations: 4 kB / 0.5568 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.5459, allocations: 4.859 kB / 0.5568 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.5471, allocations: 1.016 MB / 0.5578 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.5471, allocations: 0 / 0.5578 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003649/0.5475, allocations: 96.84 kB / 0.5578 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.5475, allocations: 3.844 kB / 0.5578 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.275e-05/0.5475, allocations: 7.688 kB / 0.5579 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.5475, allocations: 6.5 kB / 0.5579 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.5475, allocations: 0 / 0.5579 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001687/0.5492, allocations: 1.134 MB / 0.559 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002371/0.5495, allocations: 219.4 kB / 0.5592 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.035e-05/0.5496, allocations: 11.98 kB / 0.5592 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003382/0.5499, allocations: 47.91 kB / 0.5592 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.55, allocations: 35.94 kB / 0.5593 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.55, allocations: 12 kB / 0.5593 GB, free: 12.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000366/0.5504, allocations: 327.1 kB / 0.5596 GB, free: 12.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5504, allocations: 0 / 0.5596 GB, free: 12.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00422/0.5547, allocations: 0.9916 MB / 0.5606 GB, free: 11.65 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.00602/0.5607, allocations: 1.169 MB / 0.5617 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.5622, allocations: 0.6469 MB / 0.5623 GB, free: 9.949 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.5622, allocations: 4 kB / 0.5623 GB, free: 9.945 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008281/0.563, allocations: 0.5402 MB / 0.5629 GB, free: 9.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.5644, allocations: 203.9 kB / 0.5631 GB, free: 9.215 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002411/0.5668, allocations: 1.899 MB / 0.5649 GB, free: 7.285 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005319/0.5674, allocations: 0.9628 MB / 0.5659 GB, free: 6.305 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005105/0.5679, allocations: 270.9 kB / 0.5661 GB, free: 6.047 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.568, allocations: 47.42 kB / 0.5662 GB, free: 6 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.568, allocations: 0 / 0.5662 GB, free: 6 MB / 414.1 MB Notification: Performance of Templates: time 0.05609/0.6241, allocations: 38.88 MB / 0.6041 GB, free: 15.32 MB / 462.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