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.001177/0.001177, allocations: 96.86 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 167.6 kB / 16.57 MB, free: 6.047 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.468/1.468, allocations: 205.4 MB / 222.8 MB, free: 5.883 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.3893/0.3893, allocations: 43.56 MB / 314.6 MB, free: 8.637 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.000547/0.0005476, allocations: 20 kB / 384 MB, free: 8.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1402, allocations: 58.87 MB / 442.8 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.2877/0.4279, allocations: 26.16 MB / 469 MB, free: 35.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0132/0.4412, allocations: 12.4 MB / 481.4 MB, free: 27.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004882/0.4417, allocations: 10.47 kB / 481.4 MB, free: 27.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006848/0.4424, allocations: 209.3 kB / 481.6 MB, free: 27.86 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.009054/0.4515, allocations: 2.846 MB / 484.4 MB, free: 26.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006438/0.4579, allocations: 1.832 MB / 486.3 MB, free: 25.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001561/0.4595, allocations: 0.989 MB / 487.3 MB, free: 25.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004884/0.46, allocations: 198.8 kB / 487.4 MB, free: 25.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001012/0.461, allocations: 389.8 kB / 487.8 MB, free: 25.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005586/0.4616, allocations: 259.4 kB / 488.1 MB, free: 24.94 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.158e-05/0.4617, allocations: 16.59 kB / 488.1 MB, free: 24.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01612/0.4778, allocations: 6.815 MB / 494.9 MB, free: 23.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002557/0.4781, allocations: 75.42 kB / 495 MB, free: 23.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002746/0.4784, allocations: 103.2 kB / 495.1 MB, free: 23.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008471/0.4869, allocations: 2.958 MB / 498 MB, free: 22.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.577e-06/0.4869, allocations: 5.188 kB / 498.1 MB, free: 22.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.4869, allocations: 0 / 498.1 MB, free: 22.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.568e-05/0.487, allocations: 0 / 498.1 MB, free: 22.7 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.006259/0.4932, allocations: 1.179 MB / 499.2 MB, free: 21.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.4933, allocations: 9.172 kB / 499.2 MB, free: 21.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001996/0.4953, allocations: 218.8 kB / 499.5 MB, free: 21.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007674/0.4961, allocations: 356.8 kB / 499.8 MB, free: 21.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.776e-05/0.4962, allocations: 29.92 kB / 499.8 MB, free: 21.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.984e-05/0.4962, allocations: 27.25 kB / 499.9 MB, free: 21.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001839/0.4981, allocations: 0.6114 MB / 0.4887 GB, free: 21.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.4981, allocations: 4.969 kB / 0.4887 GB, free: 21.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.412e-05/0.4982, allocations: 12.31 kB / 0.4888 GB, free: 21.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.716e-05/0.4982, allocations: 11.25 kB / 0.4888 GB, free: 21.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001858/0.5001, allocations: 0.5935 MB / 0.4893 GB, free: 21.18 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.003732/0.5038, allocations: 2.64 MB / 0.4919 GB, free: 18.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001572/0.5054, allocations: 0.4967 MB / 0.4924 GB, free: 18.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004621/0.5059, allocations: 218.7 kB / 0.4926 GB, free: 18.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04577/0.5517, allocations: 24.42 MB / 0.5165 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.437e-05/0.5518, allocations: 41.12 kB / 0.5165 GB, free: 15.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.245e-06/0.5518, allocations: 0 / 0.5165 GB, free: 15.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.00327/0.5551, allocations: 0.8828 MB / 0.5174 GB, free: 15.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.305e-05/0.5552, allocations: 109.7 kB / 0.5175 GB, free: 15.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004598/0.5556, allocations: 316.4 kB / 0.5178 GB, free: 14.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.121e-05/0.5557, allocations: 31.27 kB / 0.5178 GB, free: 14.87 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002353/0.556, allocations: 199.6 kB / 0.518 GB, free: 14.69 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.5561, allocations: 85.36 kB / 0.5181 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.791e-05/0.5561, allocations: 10.44 kB / 0.5181 GB, free: 14.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.5563, allocations: 346.1 kB / 0.5184 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004213/0.5567, allocations: 164.1 kB / 0.5186 GB, free: 14.2 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004823/0.5572, allocations: 262.5 kB / 0.5188 GB, free: 14.01 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004295/0.5576, allocations: 181.9 kB / 0.519 GB, free: 13.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.5577, allocations: 3.938 kB / 0.519 GB, free: 13.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001088/0.5587, allocations: 485.1 kB / 0.5195 GB, free: 13.69 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.5588, allocations: 6.031 kB / 0.5195 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.5588, allocations: 1.844 kB / 0.5195 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/0.5588, allocations: 3.75 kB / 0.5195 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003475/0.5592, allocations: 98.27 kB / 0.5196 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.613e-05/0.5592, allocations: 8.938 kB / 0.5196 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004437/0.5597, allocations: 71.66 kB / 0.5196 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.304e-05/0.5597, allocations: 22.88 kB / 0.5197 GB, free: 13.61 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.0002442/0.56, allocations: 162.3 kB / 0.5198 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.5601, allocations: 40.66 kB / 0.5199 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002698/0.5628, allocations: 1.961 MB / 0.5218 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.289e-05/0.5628, allocations: 31.89 kB / 0.5218 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.5628, allocations: 0 / 0.5218 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.5628, allocations: 10.67 kB / 0.5218 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.5641, allocations: 1.018 MB / 0.5228 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.5641, allocations: 0 / 0.5228 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000336/0.5644, allocations: 91.92 kB / 0.5229 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.5645, allocations: 0 / 0.5229 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.5645, allocations: 8 kB / 0.5229 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.5645, allocations: 4 kB / 0.5229 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.5645, allocations: 3.938 kB / 0.5229 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001624/0.5661, allocations: 1.133 MB / 0.524 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000309/0.5665, allocations: 219.4 kB / 0.5242 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.69e-05/0.5665, allocations: 8 kB / 0.5242 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003508/0.5669, allocations: 47.95 kB / 0.5243 GB, free: 9.582 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.567, allocations: 35.94 kB / 0.5243 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.578e-05/0.567, allocations: 12 kB / 0.5243 GB, free: 9.535 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003734/0.5674, allocations: 319.1 kB / 0.5246 GB, free: 9.227 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5674, allocations: 4 kB / 0.5246 GB, free: 9.223 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006043/0.5735, allocations: 0.9993 MB / 0.5256 GB, free: 8.223 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.01129/0.5848, allocations: 1.165 MB / 0.5268 GB, free: 7.055 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.5864, allocations: 0.643 MB / 0.5274 GB, free: 6.414 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.5865, allocations: 0 / 0.5274 GB, free: 6.414 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00108/0.5876, allocations: 0.5412 MB / 0.5279 GB, free: 5.871 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001447/0.589, allocations: 201 kB / 0.5281 GB, free: 5.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002896/0.5919, allocations: 1.881 MB / 0.5299 GB, free: 3.773 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006402/0.5926, allocations: 0.9641 MB / 0.5309 GB, free: 2.785 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006552/0.5933, allocations: 282.7 kB / 0.5311 GB, free: 2.504 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.5934, allocations: 43.42 kB / 0.5312 GB, free: 2.465 MB / 398.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5935, allocations: 0 / 0.5312 GB, free: 2.465 MB / 398.1 MB Notification: Performance of Templates: time 0.06968/0.6631, allocations: 39.19 MB / 0.5695 GB, free: 11.27 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