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.0008643/0.0008644, allocations: 95.64 kB / 16.98 MB, free: 5.938 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.0008427/0.0008427, allocations: 186.9 kB / 17.88 MB, free: 5.594 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.344/1.344, allocations: 223.2 MB / 241.8 MB, free: 368 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.2003/0.2003, allocations: 44.23 MB / 337.1 MB, free: 2.906 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000308/0.0003081, allocations: 8 kB / 409.5 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1264, allocations: 61.93 MB / 471.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.0259/0.1524, allocations: 23.78 MB / 495.2 MB, free: 5.902 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0142/0.1666, allocations: 11.38 MB / 0.4947 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006711/0.1673, allocations: 7.938 kB / 0.4947 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008879/0.1682, allocations: 207.1 kB / 0.4949 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01016/0.1784, allocations: 2.831 MB / 0.4977 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00638/0.1848, allocations: 1.919 MB / 0.4996 GB, free: 5.547 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.186, allocations: 0.5354 MB / 0.5001 GB, free: 5.012 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003823/0.1864, allocations: 205 kB / 0.5003 GB, free: 4.809 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008123/0.1872, allocations: 406.6 kB / 0.5007 GB, free: 4.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002405/0.1874, allocations: 207.1 kB / 0.5009 GB, free: 4.207 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.028e-05/0.1875, allocations: 16 kB / 0.5009 GB, free: 4.191 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2846/0.4721, allocations: 7.001 MB / 0.5077 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002826/0.4725, allocations: 77.8 kB / 0.5078 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000293/0.4728, allocations: 105.6 kB / 0.5079 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.4829, allocations: 2.95 MB / 0.5108 GB, free: 15.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.483, allocations: 0 / 0.5108 GB, free: 15.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.886e-06/0.483, allocations: 0.6562 kB / 0.5108 GB, free: 15.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.876e-06/0.483, allocations: 2.031 kB / 0.5108 GB, free: 15.8 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.007127/0.4901, allocations: 1.182 MB / 0.512 GB, free: 15.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.4902, allocations: 9.688 kB / 0.512 GB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001869/0.4921, allocations: 216.6 kB / 0.5122 GB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005826/0.4927, allocations: 357.4 kB / 0.5125 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.821e-05/0.4927, allocations: 26.56 kB / 0.5125 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.493e-05/0.4928, allocations: 28.89 kB / 0.5126 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/0.4945, allocations: 0.6056 MB / 0.5132 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.4945, allocations: 8.656 kB / 0.5132 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.643e-05/0.4946, allocations: 21.41 kB / 0.5132 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.4946, allocations: 7.375 kB / 0.5132 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.4963, allocations: 0.5841 MB / 0.5138 GB, free: 14.72 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.002971/0.4993, allocations: 2.643 MB / 0.5163 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/0.5011, allocations: 0.5017 MB / 0.5168 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05132/0.5525, allocations: 24.43 MB / 0.5407 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.884e-05/0.5526, allocations: 35.84 kB / 0.5407 GB, free: 12.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.545e-06/0.5526, allocations: 0 / 0.5407 GB, free: 12.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002985/0.5556, allocations: 0.8864 MB / 0.5416 GB, free: 12.1 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.934e-05/0.5557, allocations: 106.6 kB / 0.5417 GB, free: 11.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003504/0.556, allocations: 307.8 kB / 0.542 GB, free: 11.83 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.605e-05/0.5561, allocations: 28.95 kB / 0.542 GB, free: 11.8 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.5562, allocations: 207.9 kB / 0.5422 GB, free: 11.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.722e-05/0.5563, allocations: 89.34 kB / 0.5423 GB, free: 11.6 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.552e-05/0.5563, allocations: 3.188 kB / 0.5423 GB, free: 11.6 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.5564, allocations: 346.9 kB / 0.5426 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003974/0.5568, allocations: 167.7 kB / 0.5428 GB, free: 11.24 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004201/0.5573, allocations: 253.1 kB / 0.543 GB, free: 11.1 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004152/0.5577, allocations: 186.4 kB / 0.5432 GB, free: 11.06 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.5577, allocations: 3.781 kB / 0.5432 GB, free: 11.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001005/0.5587, allocations: 482.5 kB / 0.5437 GB, free: 10.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.5588, allocations: 3.812 kB / 0.5437 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.5588, allocations: 3.719 kB / 0.5437 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.5588, allocations: 6.984 kB / 0.5437 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003496/0.5591, allocations: 99.5 kB / 0.5438 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.5592, allocations: 11.83 kB / 0.5438 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003786/0.5595, allocations: 60.09 kB / 0.5438 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.226e-05/0.5596, allocations: 23.78 kB / 0.5439 GB, free: 10.88 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.0002077/0.5598, allocations: 166.6 kB / 0.544 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.112e-05/0.5599, allocations: 30.41 kB / 0.5441 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002311/0.5622, allocations: 1.972 MB / 0.546 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-05/0.5622, allocations: 32.11 kB / 0.546 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.5622, allocations: 0 / 0.546 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.5622, allocations: 0 / 0.546 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009788/0.5632, allocations: 1.021 MB / 0.547 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.747e-06/0.5632, allocations: 6.188 kB / 0.547 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00035/0.5636, allocations: 89.88 kB / 0.5471 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.5636, allocations: 4 kB / 0.5471 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.11e-05/0.5636, allocations: 6.484 kB / 0.5471 GB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.5637, allocations: 7.984 kB / 0.5471 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.5637, allocations: 2.938 kB / 0.5471 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001501/0.5652, allocations: 1.119 MB / 0.5482 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000222/0.5654, allocations: 225.2 kB / 0.5484 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.331e-05/0.5655, allocations: 11.56 kB / 0.5484 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003339/0.5658, allocations: 51.77 kB / 0.5485 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.519e-05/0.5659, allocations: 34.58 kB / 0.5485 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.5659, allocations: 11.98 kB / 0.5485 GB, free: 8.617 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003435/0.5663, allocations: 329.9 kB / 0.5489 GB, free: 8.371 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5663, allocations: 0 / 0.5489 GB, free: 8.371 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006332/0.5726, allocations: 0.9923 MB / 0.5498 GB, free: 7.422 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.009511/0.5822, allocations: 1.175 MB / 0.551 GB, free: 6.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.5838, allocations: 0.643 MB / 0.5516 GB, free: 5.926 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.5838, allocations: 3.984 kB / 0.5516 GB, free: 5.922 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006701/0.5844, allocations: 0.5347 MB / 0.5521 GB, free: 5.617 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/0.5856, allocations: 195.5 kB / 0.5523 GB, free: 5.465 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002319/0.588, allocations: 1.89 MB / 0.5542 GB, free: 3.789 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005101/0.5885, allocations: 0.9797 MB / 0.5551 GB, free: 2.785 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005579/0.5891, allocations: 273.8 kB / 0.5554 GB, free: 2.527 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.5892, allocations: 42.69 kB / 0.5554 GB, free: 2.492 MB / 398.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5892, allocations: 0 / 0.5554 GB, free: 2.492 MB / 398.1 MB Notification: Performance of Templates: time 0.05888/0.6481, allocations: 39.23 MB / 0.5937 GB, free: 11.56 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","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches