Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001053/0.001053, allocations: 98.73 kB / 15.98 MB, free: 5.871 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.001051/0.001051, allocations: 191.1 kB / 16.91 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.411/1.411, allocations: 205.1 MB / 222.8 MB, free: 4.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3433/0.3433, allocations: 43.5 MB / 313.6 MB, free: 8.27 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 67.91 kB / 382.2 MB, free: 8.387 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1389, allocations: 57.79 MB / 440 MB, free: 14.49 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.2599/0.3989, allocations: 28.25 MB / 468.3 MB, free: 34.37 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01272/0.4116, allocations: 13.39 MB / 481.6 MB, free: 25.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00038/0.4121, allocations: 13.72 kB / 481.7 MB, free: 25.95 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007852/0.4129, allocations: 220 kB / 481.9 MB, free: 25.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009469/0.4224, allocations: 3.23 MB / 485.1 MB, free: 24.55 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006493/0.4289, allocations: 2.124 MB / 487.2 MB, free: 23.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001032/0.43, allocations: 0.8954 MB / 488.1 MB, free: 23.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003341/0.4303, allocations: 248.7 kB / 488.4 MB, free: 22.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006559/0.431, allocations: 441 kB / 488.8 MB, free: 22.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002765/0.4312, allocations: 282.4 kB / 489.1 MB, free: 22.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.852e-05/0.4313, allocations: 36 kB / 489.1 MB, free: 22.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01451/0.4458, allocations: 7.116 MB / 496.2 MB, free: 20.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000222/0.4461, allocations: 102.9 kB / 496.3 MB, free: 20.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004134/0.4465, allocations: 218.6 kB / 496.5 MB, free: 20.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01631/0.4628, allocations: 4.417 MB / 0.4892 GB, free: 19.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/0.4629, allocations: 0 / 0.4892 GB, free: 19.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.4629, allocations: 3.938 kB / 0.4892 GB, free: 19.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.4629, allocations: 1.562 kB / 0.4892 GB, free: 19.36 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.006665/0.4696, allocations: 1.236 MB / 0.4904 GB, free: 18.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.668e-05/0.4697, allocations: 13.05 kB / 0.4904 GB, free: 18.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001844/0.4715, allocations: 222.5 kB / 0.4907 GB, free: 18.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006146/0.4722, allocations: 358.7 kB / 0.491 GB, free: 18.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.571e-05/0.4722, allocations: 25.94 kB / 0.491 GB, free: 18.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.446e-05/0.4723, allocations: 26.88 kB / 0.491 GB, free: 18.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/0.474, allocations: 0.5931 MB / 0.4916 GB, free: 17.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.474, allocations: 0.9688 kB / 0.4916 GB, free: 17.95 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.383e-05/0.4741, allocations: 12.44 kB / 0.4916 GB, free: 17.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.4741, allocations: 12.33 kB / 0.4916 GB, free: 17.94 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001723/0.4758, allocations: 0.5462 MB / 0.4922 GB, free: 17.8 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.002984/0.4788, allocations: 2.631 MB / 0.4948 GB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/0.4804, allocations: 466.2 kB / 0.4952 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004798/0.4809, allocations: 202.5 kB / 0.4954 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05004/0.5309, allocations: 24.21 MB / 0.519 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.531e-05/0.531, allocations: 37.56 kB / 0.5191 GB, free: 12.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.894e-06/0.531, allocations: 0 / 0.5191 GB, free: 12.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003034/0.5341, allocations: 0.8113 MB / 0.5199 GB, free: 11.92 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.268e-05/0.5342, allocations: 113.8 kB / 0.52 GB, free: 11.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004221/0.5346, allocations: 315.4 kB / 0.5203 GB, free: 11.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.193e-05/0.5347, allocations: 31.67 kB / 0.5203 GB, free: 11.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.5348, allocations: 206.4 kB / 0.5205 GB, free: 11.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.576e-05/0.5349, allocations: 86.62 kB / 0.5206 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/0.5351, allocations: 80.62 kB / 0.5207 GB, free: 11.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.5353, allocations: 341.5 kB / 0.521 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004168/0.5357, allocations: 153.2 kB / 0.5211 GB, free: 10.81 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005178/0.5362, allocations: 236.1 kB / 0.5213 GB, free: 10.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000881/0.5371, allocations: 381.1 kB / 0.5217 GB, free: 10.35 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.5371, allocations: 0 / 0.5217 GB, free: 10.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001396/0.5385, allocations: 445.6 kB / 0.5221 GB, free: 9.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.5386, allocations: 4 kB / 0.5221 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.5386, allocations: 4.75 kB / 0.5221 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.5386, allocations: 4 kB / 0.5221 GB, free: 9.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005391/0.5392, allocations: 96.11 kB / 0.5222 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.687e-05/0.5392, allocations: 7.938 kB / 0.5222 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005923/0.5398, allocations: 55.66 kB / 0.5223 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.266e-05/0.5399, allocations: 23.92 kB / 0.5223 GB, free: 9.719 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.0002972/0.5402, allocations: 157.8 kB / 0.5225 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.5403, allocations: 36.61 kB / 0.5225 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003662/0.544, allocations: 1.921 MB / 0.5244 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-05/0.544, allocations: 31.89 kB / 0.5244 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.5441, allocations: 0 / 0.5244 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/0.5441, allocations: 3.984 kB / 0.5244 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001602/0.5457, allocations: 1.018 MB / 0.5254 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.5457, allocations: 0 / 0.5254 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005028/0.5462, allocations: 79.92 kB / 0.5255 GB, free: 6.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.844e-06/0.5463, allocations: 0 / 0.5255 GB, free: 6.414 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.384e-05/0.5463, allocations: 8 kB / 0.5255 GB, free: 6.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.999e-05/0.5463, allocations: 3.938 kB / 0.5255 GB, free: 6.402 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.5463, allocations: 4 kB / 0.5255 GB, free: 6.398 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002398/0.5487, allocations: 1.105 MB / 0.5266 GB, free: 5.273 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002802/0.549, allocations: 163.8 kB / 0.5267 GB, free: 5.094 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.5492, allocations: 23.75 kB / 0.5268 GB, free: 5.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005142/0.5497, allocations: 51.77 kB / 0.5268 GB, free: 5.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.5498, allocations: 31.95 kB / 0.5268 GB, free: 4.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.062e-05/0.5499, allocations: 12 kB / 0.5269 GB, free: 4.977 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005537/0.5504, allocations: 327.1 kB / 0.5272 GB, free: 4.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5505, allocations: 0 / 0.5272 GB, free: 4.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.007644/0.5581, allocations: 0.9838 MB / 0.5281 GB, free: 3.676 MB / 398.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.01267/0.5708, allocations: 1.189 MB / 0.5293 GB, free: 2.484 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002573/0.5735, allocations: 0.6264 MB / 0.5299 GB, free: 1.859 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/0.5735, allocations: 4 kB / 0.5299 GB, free: 1.855 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001094/0.5746, allocations: 0.5177 MB / 0.5304 GB, free: 1.336 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00205/0.5767, allocations: 222.6 kB / 0.5306 GB, free: 1.129 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00349/0.5802, allocations: 1.855 MB / 0.5324 GB, free: 15.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007347/0.5809, allocations: 0.9716 MB / 0.5334 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007666/0.5817, allocations: 273.4 kB / 0.5336 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001686/0.5819, allocations: 43.44 kB / 0.5337 GB, free: 13.94 MB / 414.1 MB Notification: Performance of SimCode: time 8.22e-07/0.5819, allocations: 0 / 0.5337 GB, free: 13.94 MB / 414.1 MB Notification: Performance of Templates: time 0.07723/0.6592, allocations: 39.34 MB / 0.5721 GB, free: 6.605 MB / 446.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches