Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.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.TestValveCompressible,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|V1.minLimiter.y|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.TestValveCompressible") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,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|V1.minLimiter.y|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.TestValveCompressible") [: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.001775/0.001775, allocations: 205.5 kB / 8.54 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 225.5 MB / 234.4 MB, free: 3.449 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001029/0.001029, allocations: 90.17 kB / 286.3 MB, free: 5.211 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2341/0.2341, allocations: 45.14 MB / 383.3 MB, free: 0.582 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.645e-06/7.685e-06, allocations: 0 / 452.6 MB, free: 76.19 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1605, allocations: 63.24 MB / 0.5038 GB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.645/6.806, allocations: 2.777 GB / 3.281 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/6.806, allocations: 84.38 kB / 3.281 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of FrontEnd: time 0.7669/7.573, allocations: 236.1 MB / 3.512 GB, free: 76.98 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.334e-05/7.573, allocations: 15.59 kB / 3.512 GB, free: 76.97 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.005265/7.578, allocations: 1.305 MB / 3.513 GB, free: 76.13 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/7.578, allocations: 12.25 kB / 3.513 GB, free: 76.13 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002203/7.581, allocations: 279 kB / 3.513 GB, free: 76.09 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006777/7.581, allocations: 410.5 kB / 3.514 GB, free: 75.79 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.278e-05/7.581, allocations: 18.59 kB / 3.514 GB, free: 75.79 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.653e-05/7.581, allocations: 26.5 kB / 3.514 GB, free: 75.78 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000526/7.582, allocations: 344.7 kB / 3.514 GB, free: 75.66 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005261/7.583, allocations: 426.3 kB / 3.514 GB, free: 75.43 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/7.583, allocations: 0 / 3.514 GB, free: 75.43 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.26e-05/7.583, allocations: 3.844 kB / 3.514 GB, free: 75.43 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/7.583, allocations: 7.25 kB / 3.514 GB, free: 75.43 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01939/7.602, allocations: 10.9 MB / 3.525 GB, free: 67.84 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007009/7.603, allocations: 291.5 kB / 3.525 GB, free: 67.73 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001957/7.603, allocations: 138.4 kB / 3.525 GB, free: 67.67 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05272/7.656, allocations: 27.18 MB / 3.552 GB, free: 48.84 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/7.656, allocations: 43.31 kB / 3.552 GB, free: 48.79 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=27): time 2.935e-06/7.656, allocations: 0 / 3.552 GB, free: 48.79 MB / 0.5261 GB Notification: Performance of matching and sorting (n=27): time 0.002258/7.658, allocations: 0.5681 MB / 3.553 GB, free: 48.61 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/7.658, allocations: 107.4 kB / 3.553 GB, free: 48.48 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000355/7.659, allocations: 283.5 kB / 3.553 GB, free: 48.32 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/7.659, allocations: 26.52 kB / 3.553 GB, free: 48.29 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/7.659, allocations: 194 kB / 3.553 GB, free: 48.13 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.389e-05/7.659, allocations: 85.98 kB / 3.553 GB, free: 48.07 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-05/7.659, allocations: 4.625 kB / 3.553 GB, free: 48.06 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001453/7.659, allocations: 350.3 kB / 3.554 GB, free: 47.73 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002088/7.659, allocations: 119.4 kB / 3.554 GB, free: 47.68 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002797/7.659, allocations: 250.4 kB / 3.554 GB, free: 47.48 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009862/7.66, allocations: 246.2 kB / 3.554 GB, free: 47.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/7.66, allocations: 0 / 3.554 GB, free: 47.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001928/7.662, allocations: 0.6715 MB / 3.555 GB, free: 47.18 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002456/7.663, allocations: 1.39 MB / 3.556 GB, free: 45.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/7.663, allocations: 4.609 kB / 3.556 GB, free: 45.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/7.663, allocations: 7.656 kB / 3.556 GB, free: 45.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004369/7.663, allocations: 113.9 kB / 3.556 GB, free: 45.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/7.663, allocations: 14.34 kB / 3.556 GB, free: 45.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004896/7.664, allocations: 76.98 kB / 3.556 GB, free: 45.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.202e-05/7.664, allocations: 19.8 kB / 3.556 GB, free: 45.64 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.797e-06/7.664, allocations: 7.094 kB / 3.556 GB, free: 45.64 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001247/7.665, allocations: 402.4 kB / 3.557 GB, free: 45.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/7.665, allocations: 4 kB / 3.557 GB, free: 45.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.694e-06/7.665, allocations: 12.73 kB / 3.557 GB, free: 45.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000406/7.665, allocations: 106.2 kB / 3.557 GB, free: 45.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/7.665, allocations: 8.641 kB / 3.557 GB, free: 45.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003608/7.666, allocations: 60.92 kB / 3.557 GB, free: 45.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.748e-05/7.666, allocations: 27 kB / 3.557 GB, free: 45.23 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (44): * Single equations (assignments): 44 * 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.0001374/7.666, allocations: 113.4 kB / 3.557 GB, free: 45.11 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000575/7.667, allocations: 191.6 kB / 3.557 GB, free: 44.97 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002173/7.669, allocations: 1.773 MB / 3.559 GB, free: 43.38 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.844e-05/7.669, allocations: 24.72 kB / 3.559 GB, free: 43.36 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/7.669, allocations: 0 / 3.559 GB, free: 43.36 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/7.669, allocations: 6.016 kB / 3.559 GB, free: 43.36 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002634/7.671, allocations: 2.344 MB / 3.561 GB, free: 41.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/7.671, allocations: 4 kB / 3.561 GB, free: 41.26 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003211/7.672, allocations: 77.42 kB / 3.561 GB, free: 41.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/7.672, allocations: 0 / 3.561 GB, free: 41.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.617e-05/7.672, allocations: 6.109 kB / 3.561 GB, free: 41.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/7.672, allocations: 12.67 kB / 3.561 GB, free: 41.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/7.672, allocations: 0 / 3.561 GB, free: 41.18 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001932/7.674, allocations: 1.461 MB / 3.563 GB, free: 39.85 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002313/7.674, allocations: 221.4 kB / 3.563 GB, free: 39.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.993e-05/7.674, allocations: 4 kB / 3.563 GB, free: 39.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003552/7.675, allocations: 39.22 kB / 3.563 GB, free: 39.61 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.812e-05/7.675, allocations: 41.58 kB / 3.563 GB, free: 39.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.177e-05/7.675, allocations: 23.88 kB / 3.563 GB, free: 39.57 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0002528/7.675, allocations: 265.8 kB / 3.563 GB, free: 39.32 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005329/7.68, allocations: 1.172 MB / 3.565 GB, free: 38.18 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,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * 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.008269/7.689, allocations: 1.572 MB / 3.566 GB, free: 36.82 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001405/7.69, allocations: 0.9495 MB / 3.567 GB, free: 35.95 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/7.69, allocations: 0 / 3.567 GB, free: 35.95 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005178/7.691, allocations: 0.6919 MB / 3.568 GB, free: 35.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/7.692, allocations: 174.3 kB / 3.568 GB, free: 35.18 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001724/7.693, allocations: 1.169 MB / 3.569 GB, free: 34.08 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004325/7.694, allocations: 0.9972 MB / 3.57 GB, free: 33.16 MB / 0.5261 GB Notification: Performance of SimCode: time 5.71e-07/7.694, allocations: 0 / 3.57 GB, free: 33.16 MB / 0.5261 GB Notification: Performance of Templates: time 0.2596/7.953, allocations: 34.98 MB / 3.604 GB, free: 142.1 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCompressible/TestValveCompressible.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches