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.001042/0.001042, allocations: 94.92 kB / 17 MB, free: 6.348 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.0009878/0.0009879, allocations: 182.3 kB / 17.89 MB, free: 5.922 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.319/1.319, allocations: 223.3 MB / 241.9 MB, free: 228 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.2014/0.2014, allocations: 44.24 MB / 337.3 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000287/0.000287, allocations: 8.812 kB / 409.7 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1193, allocations: 61.94 MB / 471.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02732/0.1466, allocations: 26.15 MB / 497.8 MB, free: 3.469 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0156/0.1623, allocations: 12.41 MB / 0.4982 GB, free: 7.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003855/0.1627, allocations: 7.938 kB / 0.4982 GB, free: 7.023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006321/0.1634, allocations: 202.8 kB / 0.4984 GB, free: 6.824 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.008498/0.1719, allocations: 2.852 MB / 0.5012 GB, free: 3.977 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00522/0.1771, allocations: 1.844 MB / 0.503 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001141/0.1783, allocations: 0.986 MB / 0.504 GB, free: 1.148 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003245/0.1786, allocations: 204.9 kB / 0.5041 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000645/0.1792, allocations: 386.3 kB / 0.5045 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003125/0.1796, allocations: 258.9 kB / 0.5048 GB, free: 320 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.1796, allocations: 16 kB / 0.5048 GB, free: 304 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2588/0.4385, allocations: 6.816 MB / 0.5114 GB, free: 15.4 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001891/0.4387, allocations: 76.3 kB / 0.5115 GB, free: 15.4 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001807/0.4389, allocations: 112.2 kB / 0.5116 GB, free: 15.37 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007756/0.4466, allocations: 2.961 MB / 0.5145 GB, free: 15.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.4467, allocations: 0 / 0.5145 GB, free: 15.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.4467, allocations: 0.6875 kB / 0.5145 GB, free: 15.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.4467, allocations: 0 / 0.5145 GB, free: 15.32 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.005023/0.4517, allocations: 1.181 MB / 0.5157 GB, free: 14.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.4518, allocations: 8.281 kB / 0.5157 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001714/0.4535, allocations: 223 kB / 0.5159 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004696/0.454, allocations: 352.1 kB / 0.5162 GB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.256e-05/0.454, allocations: 25.22 kB / 0.5162 GB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.623e-05/0.4541, allocations: 28.62 kB / 0.5163 GB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/0.4556, allocations: 0.6149 MB / 0.5169 GB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.4556, allocations: 1.156 kB / 0.5169 GB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.408e-05/0.4557, allocations: 20.5 kB / 0.5169 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.4557, allocations: 7.406 kB / 0.5169 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001639/0.4573, allocations: 0.5892 MB / 0.5175 GB, free: 14.22 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.00274/0.4601, allocations: 2.64 MB / 0.52 GB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/0.4617, allocations: 0.5007 MB / 0.5205 GB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004673/0.4621, allocations: 215.8 kB / 0.5207 GB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04124/0.5034, allocations: 24.43 MB / 0.5446 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.021e-05/0.5035, allocations: 36.94 kB / 0.5446 GB, free: 10.19 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.134e-06/0.5035, allocations: 0 / 0.5446 GB, free: 10.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002845/0.5063, allocations: 0.8871 MB / 0.5455 GB, free: 9.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.594e-05/0.5064, allocations: 106 kB / 0.5456 GB, free: 9.805 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000358/0.5068, allocations: 308.4 kB / 0.5459 GB, free: 9.641 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.249e-05/0.5069, allocations: 32.12 kB / 0.5459 GB, free: 9.609 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001477/0.507, allocations: 210.4 kB / 0.5461 GB, free: 9.449 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.116e-05/0.5071, allocations: 80.27 kB / 0.5462 GB, free: 9.383 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.53e-05/0.5071, allocations: 7.938 kB / 0.5462 GB, free: 9.379 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.5073, allocations: 345.3 kB / 0.5465 GB, free: 9.047 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003908/0.5077, allocations: 167 kB / 0.5467 GB, free: 8.922 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004369/0.5081, allocations: 257.9 kB / 0.5469 GB, free: 8.676 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003996/0.5085, allocations: 189.6 kB / 0.5471 GB, free: 8.543 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.5085, allocations: 0 / 0.5471 GB, free: 8.543 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009782/0.5095, allocations: 484.1 kB / 0.5476 GB, free: 8.168 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.5095, allocations: 4 kB / 0.5476 GB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/0.5096, allocations: 4.984 kB / 0.5476 GB, free: 8.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.5096, allocations: 4 kB / 0.5476 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003445/0.5099, allocations: 96.67 kB / 0.5477 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.51, allocations: 15.98 kB / 0.5477 GB, free: 8.059 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003907/0.5104, allocations: 59.09 kB / 0.5478 GB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.064e-05/0.5104, allocations: 23.73 kB / 0.5478 GB, free: 7.984 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 (SourceP1.medium.phase,SinkP1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002529/0.5107, allocations: 161.6 kB / 0.5479 GB, free: 7.844 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.948e-05/0.5108, allocations: 37.78 kB / 0.548 GB, free: 7.812 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00281/0.5136, allocations: 1.969 MB / 0.5499 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-05/0.5136, allocations: 33.45 kB / 0.5499 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.5136, allocations: 0.875 kB / 0.5499 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.5137, allocations: 0.5156 kB / 0.5499 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/0.5149, allocations: 1.016 MB / 0.5509 GB, free: 5.719 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.5149, allocations: 0 / 0.5509 GB, free: 5.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003331/0.5153, allocations: 90.66 kB / 0.551 GB, free: 5.637 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.5153, allocations: 4 kB / 0.551 GB, free: 5.633 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.843e-05/0.5153, allocations: 10.48 kB / 0.551 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.5153, allocations: 4 kB / 0.551 GB, free: 5.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.5153, allocations: 0 / 0.551 GB, free: 5.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001494/0.5168, allocations: 1.128 MB / 0.5521 GB, free: 4.789 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002484/0.5171, allocations: 220.3 kB / 0.5523 GB, free: 4.574 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.036e-05/0.5172, allocations: 7.438 kB / 0.5524 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003021/0.5175, allocations: 54.45 kB / 0.5524 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.5176, allocations: 31.27 kB / 0.5524 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.553e-05/0.5176, allocations: 19.08 kB / 0.5525 GB, free: 4.484 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003467/0.518, allocations: 322.5 kB / 0.5528 GB, free: 4.238 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.518, allocations: 0 / 0.5528 GB, free: 4.238 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005268/0.5232, allocations: 0.9901 MB / 0.5537 GB, free: 3.293 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007954/0.5312, allocations: 1.175 MB / 0.5549 GB, free: 2.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.533, allocations: 0.6441 MB / 0.5555 GB, free: 1.797 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.533, allocations: 0 / 0.5555 GB, free: 1.797 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009262/0.5339, allocations: 0.5387 MB / 0.556 GB, free: 1.488 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/0.5355, allocations: 215.2 kB / 0.5562 GB, free: 1.324 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002926/0.5385, allocations: 1.888 MB / 0.5581 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007251/0.5392, allocations: 0.9623 MB / 0.559 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006092/0.5398, allocations: 282.6 kB / 0.5593 GB, free: 14.4 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.54, allocations: 39.81 kB / 0.5593 GB, free: 14.37 MB / 414.1 MB Notification: Performance of SimCode: time 8.41e-07/0.54, allocations: 0 / 0.5593 GB, free: 14.37 MB / 414.1 MB Notification: Performance of Templates: time 0.0676/0.6076, allocations: 39.24 MB / 0.5976 GB, free: 7.414 MB / 446.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