Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001628/0.001628, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 225.5 MB / 234.4 MB, free: 3.352 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009183/0.0009184, allocations: 89.78 kB / 286.3 MB, free: 3.398 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.242/0.242, allocations: 45.15 MB / 383.4 MB, free: 14.26 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 9.427e-06/9.467e-06, allocations: 0 / 452.6 MB, free: 93.78 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1445, allocations: 63.24 MB / 0.5038 GB, free: 30.79 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.66/6.805, allocations: 2.76 GB / 3.263 GB, free: 158.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/6.805, allocations: 80.16 kB / 3.263 GB, free: 158.6 MB / 0.5261 GB Notification: Performance of FrontEnd: time 0.8254/7.63, allocations: 215.7 MB / 3.474 GB, free: 92.82 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.357e-05/7.63, allocations: 9.719 kB / 3.474 GB, free: 92.82 MB / 0.5261 GB 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.005506/7.636, allocations: 1.2 MB / 3.475 GB, free: 92.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/7.636, allocations: 7 kB / 3.475 GB, free: 92.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001845/7.638, allocations: 243.3 kB / 3.476 GB, free: 92.18 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006448/7.638, allocations: 367.9 kB / 3.476 GB, free: 91.96 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.594e-05/7.638, allocations: 15.72 kB / 3.476 GB, free: 91.96 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.376e-05/7.639, allocations: 17.81 kB / 3.476 GB, free: 91.96 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000519/7.639, allocations: 299.2 kB / 3.476 GB, free: 91.95 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000498/7.64, allocations: 381.7 kB / 3.477 GB, free: 91.82 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/7.64, allocations: 2.625 kB / 3.477 GB, free: 91.82 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.917e-05/7.64, allocations: 0 / 3.477 GB, free: 91.82 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/7.64, allocations: 7.656 kB / 3.477 GB, free: 91.82 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0177/7.657, allocations: 10.8 MB / 3.487 GB, free: 84.68 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003233/7.658, allocations: 222 kB / 3.487 GB, free: 84.65 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/7.658, allocations: 124.2 kB / 3.487 GB, free: 84.64 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04856/7.706, allocations: 27.17 MB / 3.514 GB, free: 67.28 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.402e-05/7.707, allocations: 33.44 kB / 3.514 GB, free: 67.24 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=24): time 3.076e-06/7.707, allocations: 3.531 kB / 3.514 GB, free: 67.24 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24): time 0.002007/7.709, allocations: 0.4953 MB / 3.514 GB, free: 67.19 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/7.709, allocations: 106.5 kB / 3.515 GB, free: 67.07 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003137/7.709, allocations: 233.9 kB / 3.515 GB, free: 66.96 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.351e-05/7.709, allocations: 29.64 kB / 3.515 GB, free: 66.93 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.346e-05/7.709, allocations: 183.4 kB / 3.515 GB, free: 66.81 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.288e-05/7.709, allocations: 74.41 kB / 3.515 GB, free: 66.76 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.647e-05/7.709, allocations: 0 / 3.515 GB, free: 66.76 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.372e-05/7.709, allocations: 341.4 kB / 3.515 GB, free: 66.45 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/7.71, allocations: 112 kB / 3.516 GB, free: 66.45 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002087/7.71, allocations: 194.9 kB / 3.516 GB, free: 66.34 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007179/7.71, allocations: 189.1 kB / 3.516 GB, free: 66.33 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/7.71, allocations: 3.031 kB / 3.516 GB, free: 66.33 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001588/7.712, allocations: 0.564 MB / 3.516 GB, free: 66.27 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/7.712, allocations: 7.75 kB / 3.516 GB, free: 66.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/7.712, allocations: 0 / 3.516 GB, free: 66.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.942e-05/7.712, allocations: 7.312 kB / 3.516 GB, free: 66.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004413/7.713, allocations: 109.5 kB / 3.517 GB, free: 66.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/7.713, allocations: 3.969 kB / 3.517 GB, free: 66.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004335/7.713, allocations: 70.28 kB / 3.517 GB, free: 66.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.574e-05/7.713, allocations: 15.06 kB / 3.517 GB, free: 66.25 MB / 0.5261 GB 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 () * 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.000109/7.713, allocations: 123.7 kB / 3.517 GB, free: 66.13 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005569/7.714, allocations: 184 kB / 3.517 GB, free: 66.12 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002008/7.716, allocations: 1.675 MB / 3.519 GB, free: 65.95 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.42e-05/7.716, allocations: 26.16 kB / 3.519 GB, free: 65.95 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/7.716, allocations: 4 kB / 3.519 GB, free: 65.95 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/7.716, allocations: 0 / 3.519 GB, free: 65.95 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002473/7.718, allocations: 2.244 MB / 3.521 GB, free: 65.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/7.718, allocations: 0 / 3.521 GB, free: 65.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003352/7.719, allocations: 85.78 kB / 3.521 GB, free: 65.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/7.719, allocations: 3.906 kB / 3.521 GB, free: 65.59 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.623e-05/7.719, allocations: 7.719 kB / 3.521 GB, free: 65.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/7.719, allocations: 11.69 kB / 3.521 GB, free: 65.58 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/7.719, allocations: 0 / 3.521 GB, free: 65.58 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001768/7.721, allocations: 1.39 MB / 3.522 GB, free: 65.34 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001775/7.721, allocations: 166.6 kB / 3.522 GB, free: 65.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.734e-05/7.721, allocations: 0 / 3.522 GB, free: 65.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003618/7.721, allocations: 50.81 kB / 3.522 GB, free: 65.19 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/7.721, allocations: 41.33 kB / 3.522 GB, free: 65.19 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.153e-05/7.721, allocations: 17.59 kB / 3.523 GB, free: 65.19 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0002287/7.722, allocations: 235.8 kB / 3.523 GB, free: 65.11 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005662/7.727, allocations: 1.021 MB / 3.524 GB, free: 64.94 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01028/7.738, allocations: 1.512 MB / 3.525 GB, free: 64.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001249/7.739, allocations: 0.7046 MB / 3.526 GB, free: 64.58 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/7.739, allocations: 0 / 3.526 GB, free: 64.58 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0007418/7.74, allocations: 0.6816 MB / 3.527 GB, free: 64.28 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001263/7.741, allocations: 156.6 kB / 3.527 GB, free: 64.25 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00209/7.743, allocations: 1.083 MB / 3.528 GB, free: 63.73 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000643/7.744, allocations: 0.9726 MB / 3.529 GB, free: 63.01 MB / 0.5261 GB Notification: Performance of SimCode: time 1.903e-06/7.744, allocations: 0 / 3.529 GB, free: 63.01 MB / 0.5261 GB Notification: Performance of Templates: time 0.05745/7.801, allocations: 31.89 MB / 3.56 GB, free: 60.76 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches