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.001329/0.001329, allocations: 113.8 kB / 17.78 MB, free: 5.289 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.001406/0.001407, allocations: 183.1 kB / 18.71 MB, free: 4.371 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.335/1.335, allocations: 222.9 MB / 242.4 MB, free: 15.16 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.2125/0.2125, allocations: 44.19 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 55.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3484/0.3497, allocations: 60.83 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02957/0.3793, allocations: 28.13 MB / 0.5464 GB, free: 13.91 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01708/0.3965, allocations: 13.29 MB / 0.5594 GB, free: 2.512 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004155/0.3969, allocations: 11.88 kB / 0.5594 GB, free: 2.5 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008768/0.3978, allocations: 250.4 kB / 0.5596 GB, free: 2.254 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01203/0.4099, allocations: 3.67 MB / 0.5632 GB, free: 14.58 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007306/0.4172, allocations: 2.372 MB / 0.5655 GB, free: 12.21 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001167/0.4184, allocations: 0.9157 MB / 0.5664 GB, free: 11.3 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003871/0.4188, allocations: 248.8 kB / 0.5666 GB, free: 11.05 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007672/0.4196, allocations: 450.1 kB / 0.5671 GB, free: 10.61 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002912/0.4199, allocations: 274.9 kB / 0.5673 GB, free: 10.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.821e-05/0.42, allocations: 32 kB / 0.5674 GB, free: 10.31 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01329/0.4333, allocations: 7.219 MB / 0.5744 GB, free: 3.082 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.4335, allocations: 103.7 kB / 0.5745 GB, free: 2.98 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003159/0.4338, allocations: 230.9 kB / 0.5747 GB, free: 2.754 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01125/0.445, allocations: 4.405 MB / 0.579 GB, free: 14.34 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.4451, allocations: 0 / 0.579 GB, free: 14.34 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4451, allocations: 0 / 0.579 GB, free: 14.34 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.243e-05/0.4451, allocations: 0 / 0.579 GB, free: 14.34 MB / 446.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.00352/0.4487, allocations: 1.251 MB / 0.5803 GB, free: 13.04 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.4487, allocations: 8.031 kB / 0.5803 GB, free: 13.03 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001849/0.4506, allocations: 212.2 kB / 0.5805 GB, free: 12.82 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000659/0.4512, allocations: 375.2 kB / 0.5808 GB, free: 12.41 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.727e-05/0.4513, allocations: 29.03 kB / 0.5809 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.4e-05/0.4514, allocations: 28.38 kB / 0.5809 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/0.453, allocations: 0.59 MB / 0.5815 GB, free: 11.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.4531, allocations: 4 kB / 0.5815 GB, free: 11.73 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.908e-05/0.4531, allocations: 19.94 kB / 0.5815 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.4531, allocations: 8 kB / 0.5815 GB, free: 11.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00176/0.4549, allocations: 0.5406 MB / 0.582 GB, free: 11.16 MB / 446.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.003092/0.458, allocations: 2.629 MB / 0.5846 GB, free: 8.293 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00171/0.4597, allocations: 466.1 kB / 0.585 GB, free: 7.828 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005151/0.4603, allocations: 196.7 kB / 0.5852 GB, free: 7.633 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04824/0.5085, allocations: 24.31 MB / 0.609 GB, free: 12.43 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.779e-05/0.5086, allocations: 34.56 kB / 0.609 GB, free: 12.38 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 1.993e-06/0.5086, allocations: 0 / 0.609 GB, free: 12.38 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.00316/0.5118, allocations: 0.8323 MB / 0.6098 GB, free: 11.54 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.956e-05/0.5118, allocations: 106.8 kB / 0.6099 GB, free: 11.41 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003669/0.5122, allocations: 312.4 kB / 0.6102 GB, free: 11.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.977e-05/0.5123, allocations: 33.7 kB / 0.6102 GB, free: 11.06 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.5124, allocations: 208.2 kB / 0.6104 GB, free: 10.85 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.277e-05/0.5125, allocations: 82.84 kB / 0.6105 GB, free: 10.77 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.5126, allocations: 69.59 kB / 0.6106 GB, free: 10.69 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.5127, allocations: 350.8 kB / 0.6109 GB, free: 10.34 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004286/0.5132, allocations: 143.9 kB / 0.611 GB, free: 10.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004793/0.5136, allocations: 239 kB / 0.6113 GB, free: 9.926 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008896/0.5145, allocations: 377.1 kB / 0.6116 GB, free: 9.523 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.5146, allocations: 4 kB / 0.6116 GB, free: 9.52 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001104/0.5157, allocations: 449.9 kB / 0.6121 GB, free: 9.074 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.5157, allocations: 12.03 kB / 0.6121 GB, free: 9.062 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.5157, allocations: 0 / 0.6121 GB, free: 9.062 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.5157, allocations: 7.938 kB / 0.6121 GB, free: 9.055 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003626/0.5161, allocations: 91.86 kB / 0.6122 GB, free: 8.965 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.5161, allocations: 4 kB / 0.6122 GB, free: 8.961 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003015/0.5164, allocations: 43.72 kB / 0.6122 GB, free: 8.918 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.101e-05/0.5165, allocations: 16 kB / 0.6122 GB, free: 8.902 MB / 478.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.0001918/0.5167, allocations: 165.7 kB / 0.6124 GB, free: 8.73 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.897e-05/0.5168, allocations: 31.62 kB / 0.6124 GB, free: 8.699 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002537/0.5193, allocations: 1.901 MB / 0.6143 GB, free: 6.785 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.451e-05/0.5194, allocations: 39.88 kB / 0.6143 GB, free: 6.746 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.5194, allocations: 0 / 0.6143 GB, free: 6.746 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.5194, allocations: 11.92 kB / 0.6143 GB, free: 6.734 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/0.5204, allocations: 1.019 MB / 0.6153 GB, free: 5.664 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.5205, allocations: 0 / 0.6153 GB, free: 5.664 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003377/0.5208, allocations: 79.86 kB / 0.6154 GB, free: 5.586 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.5208, allocations: 0 / 0.6154 GB, free: 5.586 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/0.5208, allocations: 11.94 kB / 0.6154 GB, free: 5.574 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.7e-06/0.5209, allocations: 7.938 kB / 0.6154 GB, free: 5.566 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.5209, allocations: 0 / 0.6154 GB, free: 5.566 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.5224, allocations: 1.096 MB / 0.6165 GB, free: 4.453 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.5225, allocations: 152 kB / 0.6166 GB, free: 4.285 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.788e-05/0.5226, allocations: 35.67 kB / 0.6167 GB, free: 4.25 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003027/0.5229, allocations: 35.91 kB / 0.6167 GB, free: 4.215 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.314e-05/0.523, allocations: 35.89 kB / 0.6167 GB, free: 4.18 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.5231, allocations: 12 kB / 0.6168 GB, free: 4.168 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003402/0.5234, allocations: 331.1 kB / 0.6171 GB, free: 3.844 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5234, allocations: 0 / 0.6171 GB, free: 3.844 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002918/0.5263, allocations: 0.9877 MB / 0.618 GB, free: 2.855 MB / 478.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.005038/0.5314, allocations: 1.17 MB / 0.6192 GB, free: 1.688 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.5327, allocations: 0.6156 MB / 0.6198 GB, free: 1.07 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.5327, allocations: 0 / 0.6198 GB, free: 1.07 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007288/0.5334, allocations: 0.5166 MB / 0.6203 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.5346, allocations: 219.5 kB / 0.6205 GB, free: 352 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.5368, allocations: 1.512 MB / 0.622 GB, free: 14.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004959/0.5373, allocations: 0.9638 MB / 0.6229 GB, free: 13.82 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004526/0.5377, allocations: 278.4 kB / 0.6232 GB, free: 13.55 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.5379, allocations: 43.44 kB / 0.6232 GB, free: 13.51 MB / 494.1 MB Notification: Performance of SimCode: time 5.1e-07/0.5379, allocations: 3.938 kB / 0.6232 GB, free: 13.5 MB / 494.1 MB Notification: Performance of Templates: time 0.06048/0.5983, allocations: 39.57 MB / 0.6619 GB, free: 6.012 MB / 0.5137 GB 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