Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008774/0.0008774, allocations: 174 kB / 17.41 MB, free: 4.25 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 225.7 MB / 243.9 MB, free: 10.2 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007684/0.0007685, allocations: 96.45 kB / 295.1 MB, free: 9.715 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3174/0.3174, allocations: 44.31 MB / 390.5 MB, free: 38.31 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003001/0.0003, allocations: 15.94 kB / 463.2 MB, free: 472 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3149, allocations: 61.89 MB / 0.5127 GB, free: 38.06 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.0242/0.3392, allocations: 32.2 MB / 0.5442 GB, free: 12.98 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01582/0.3551, allocations: 19.98 MB / 0.5637 GB, free: 11.85 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004438/0.3555, allocations: 10.91 kB / 0.5637 GB, free: 11.84 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008114/0.3564, allocations: 221.4 kB / 0.5639 GB, free: 11.73 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009438/0.3658, allocations: 2.915 MB / 0.5668 GB, free: 10.44 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006867/0.3727, allocations: 1.975 MB / 0.5687 GB, free: 9.379 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001751/0.3745, allocations: 1.142 MB / 0.5698 GB, free: 8.945 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005406/0.375, allocations: 210 kB / 0.57 GB, free: 8.867 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001098/0.3761, allocations: 397.3 kB / 0.5704 GB, free: 8.711 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006416/0.3768, allocations: 274.7 kB / 0.5707 GB, free: 8.598 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.3769, allocations: 16.19 kB / 0.5707 GB, free: 8.598 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01723/0.3941, allocations: 6.863 MB / 0.5774 GB, free: 6.336 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002813/0.3945, allocations: 85.47 kB / 0.5774 GB, free: 6.273 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005246/0.395, allocations: 228.2 kB / 0.5777 GB, free: 6.129 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01353/0.4085, allocations: 4.385 MB / 0.5819 GB, free: 3.344 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.049e-05/0.4086, allocations: 0 / 0.5819 GB, free: 3.344 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.707e-06/0.4087, allocations: 1.344 kB / 0.582 GB, free: 3.344 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.778e-05/0.4087, allocations: 0 / 0.582 GB, free: 3.344 MB / 394.7 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.005617/0.4143, allocations: 1.177 MB / 0.5831 GB, free: 2.484 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.4144, allocations: 9 kB / 0.5831 GB, free: 2.484 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001917/0.4163, allocations: 226.2 kB / 0.5833 GB, free: 2.395 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000696/0.417, allocations: 355.2 kB / 0.5837 GB, free: 2.059 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.521e-05/0.4171, allocations: 26.03 kB / 0.5837 GB, free: 2.047 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.273e-05/0.4172, allocations: 39.31 kB / 0.5837 GB, free: 2.027 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001756/0.4189, allocations: 0.6136 MB / 0.5843 GB, free: 1.637 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.419, allocations: 4.75 kB / 0.5843 GB, free: 1.633 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.978e-05/0.419, allocations: 16.12 kB / 0.5843 GB, free: 1.621 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.335e-05/0.419, allocations: 7.469 kB / 0.5844 GB, free: 1.621 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00174/0.4208, allocations: 0.594 MB / 0.5849 GB, free: 1.051 MB / 394.7 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.003323/0.4241, allocations: 2.644 MB / 0.5875 GB, free: 14.17 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001596/0.4257, allocations: 0.4943 MB / 0.588 GB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004883/0.4262, allocations: 223.3 kB / 0.5882 GB, free: 13.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04631/0.4726, allocations: 24.43 MB / 0.6121 GB, free: 2.133 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.313e-05/0.4727, allocations: 34.5 kB / 0.6121 GB, free: 2.09 MB / 426.7 MB Notification: Performance of pre-optimization done (n=25): time 2.003e-06/0.4727, allocations: 0 / 0.6121 GB, free: 2.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.003066/0.4757, allocations: 0.8911 MB / 0.613 GB, free: 1.191 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.025e-05/0.4758, allocations: 106.8 kB / 0.6131 GB, free: 1.062 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003781/0.4762, allocations: 308.5 kB / 0.6134 GB, free: 0.7539 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.452e-05/0.4763, allocations: 29.7 kB / 0.6134 GB, free: 0.7188 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.4764, allocations: 204.2 kB / 0.6136 GB, free: 0.5117 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.541e-05/0.4765, allocations: 90.73 kB / 0.6137 GB, free: 432 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.62e-05/0.4765, allocations: 4 kB / 0.6137 GB, free: 428 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.4767, allocations: 342.8 kB / 0.614 GB, free: 76 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004729/0.4772, allocations: 171.8 kB / 0.6142 GB, free: 15.91 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005152/0.4777, allocations: 267 kB / 0.6144 GB, free: 15.61 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008675/0.4786, allocations: 415.5 kB / 0.6148 GB, free: 15.17 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.4786, allocations: 0 / 0.6148 GB, free: 15.17 MB / 442.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001128/0.4797, allocations: 482.5 kB / 0.6153 GB, free: 14.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.4798, allocations: 4 kB / 0.6153 GB, free: 14.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.4798, allocations: 4 kB / 0.6153 GB, free: 14.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/0.4798, allocations: 7.938 kB / 0.6153 GB, free: 14.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003788/0.4802, allocations: 91.88 kB / 0.6154 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.4802, allocations: 12.14 kB / 0.6154 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004639/0.4807, allocations: 63.66 kB / 0.6155 GB, free: 14.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.4e-05/0.4807, allocations: 19.98 kB / 0.6155 GB, free: 14.49 MB / 442.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002177/0.481, allocations: 162.2 kB / 0.6156 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.454e-05/0.4811, allocations: 35.53 kB / 0.6157 GB, free: 14.29 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002599/0.4837, allocations: 1.959 MB / 0.6176 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.235e-05/0.4837, allocations: 31.89 kB / 0.6176 GB, free: 12.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.4837, allocations: 8 kB / 0.6176 GB, free: 12.28 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.4838, allocations: 0 / 0.6176 GB, free: 12.28 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/0.4849, allocations: 1.012 MB / 0.6186 GB, free: 11.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.4849, allocations: 0 / 0.6186 GB, free: 11.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003478/0.4853, allocations: 91.88 kB / 0.6187 GB, free: 11.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.4853, allocations: 4 kB / 0.6187 GB, free: 11.13 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/0.4853, allocations: 7.984 kB / 0.6187 GB, free: 11.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.015e-06/0.4853, allocations: 7.938 kB / 0.6187 GB, free: 11.11 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4853, allocations: 0 / 0.6187 GB, free: 11.11 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.4869, allocations: 1.129 MB / 0.6198 GB, free: 9.969 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/0.4871, allocations: 219.5 kB / 0.62 GB, free: 9.734 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.527e-05/0.4872, allocations: 8 kB / 0.62 GB, free: 9.727 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003468/0.4876, allocations: 59.83 kB / 0.6201 GB, free: 9.668 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.4877, allocations: 31.95 kB / 0.6201 GB, free: 9.637 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.869e-05/0.4877, allocations: 15.97 kB / 0.6201 GB, free: 9.621 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003603/0.4881, allocations: 323.1 kB / 0.6204 GB, free: 9.301 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4881, allocations: 0 / 0.6204 GB, free: 9.301 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003448/0.4916, allocations: 0.9955 MB / 0.6214 GB, free: 8.305 MB / 442.7 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.005982/0.4975, allocations: 1.181 MB / 0.6226 GB, free: 7.121 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.4989, allocations: 0.638 MB / 0.6232 GB, free: 6.484 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.4989, allocations: 0 / 0.6232 GB, free: 6.484 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007483/0.4997, allocations: 0.541 MB / 0.6237 GB, free: 5.945 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001232/0.5009, allocations: 214.4 kB / 0.6239 GB, free: 5.742 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002301/0.5032, allocations: 1.879 MB / 0.6258 GB, free: 3.832 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005331/0.5038, allocations: 0.9754 MB / 0.6267 GB, free: 2.828 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000492/0.5043, allocations: 278.8 kB / 0.627 GB, free: 2.559 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.5044, allocations: 43.44 kB / 0.627 GB, free: 2.516 MB / 442.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5044, allocations: 0 / 0.627 GB, free: 2.516 MB / 442.7 MB Notification: Performance of Templates: time 0.05202/0.5564, allocations: 38.87 MB / 0.665 GB, free: 11.69 MB / 490.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches