Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.TestPipesAndValves.SeriesPipes13,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") [: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.001126/0.001125, allocations: 195.2 kB / 8.535 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.264/1.264, allocations: 225.5 MB / 234.4 MB, free: 3.492 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008777/0.0008779, allocations: 90.61 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1764/0.1764, allocations: 45.13 MB / 383.3 MB, free: 0.668 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.462e-06/6.572e-06, allocations: 4 kB / 452.6 MB, free: 76.24 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09645/0.09647, allocations: 63.24 MB / 0.5038 GB, free: 13.08 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.94/5.037, allocations: 2.833 GB / 3.336 GB, free: 88.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002712/5.037, allocations: 80.61 kB / 3.337 GB, free: 88.12 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "Mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd: time 3.708/8.746, allocations: 0.8705 GB / 4.207 GB, free: 37.82 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0005234/8.746, allocations: 63.31 kB / 4.207 GB, free: 37.81 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.02017/8.766, allocations: 3.886 MB / 4.211 GB, free: 35.68 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/8.766, allocations: 8.781 kB / 4.211 GB, free: 35.68 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008139/8.775, allocations: 0.886 MB / 4.212 GB, free: 35.46 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01138/8.786, allocations: 2.102 MB / 4.214 GB, free: 34.5 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003389/8.786, allocations: 96.2 kB / 4.214 GB, free: 34.49 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001299/8.788, allocations: 114.2 kB / 4.214 GB, free: 34.49 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006824/8.795, allocations: 2.616 MB / 4.217 GB, free: 33.62 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006473/8.801, allocations: 2.871 MB / 4.219 GB, free: 31.93 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.535e-05/8.801, allocations: 7.938 kB / 4.219 GB, free: 31.92 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002868/8.801, allocations: 8.609 kB / 4.219 GB, free: 31.91 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002502/8.802, allocations: 176.6 kB / 4.22 GB, free: 31.77 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6518/9.454, allocations: 105.8 MB / 4.323 GB, free: 57.01 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002549/9.456, allocations: 1.139 MB / 4.324 GB, free: 56.99 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001671/9.458, allocations: 1.02 MB / 4.325 GB, free: 56.97 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03844/9.496, allocations: 19.32 MB / 4.344 GB, free: 44.18 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002477/9.499, allocations: 1.209 MB / 4.345 GB, free: 44.04 MB / 0.573 GB Notification: Performance of pre-optimization done (n=147): time 4.559e-06/9.499, allocations: 0 / 4.345 GB, free: 44.04 MB / 0.573 GB Notification: Performance of matching and sorting (n=163): time 0.02468/9.524, allocations: 8.411 MB / 4.353 GB, free: 42.59 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001642/9.524, allocations: 385.5 kB / 4.354 GB, free: 42.15 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002118/9.526, allocations: 1.155 MB / 4.355 GB, free: 41.98 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004966/9.527, allocations: 28.89 kB / 4.355 GB, free: 41.95 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008812/9.527, allocations: 0.7729 MB / 4.356 GB, free: 41.61 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007729/9.528, allocations: 0.5377 MB / 4.356 GB, free: 41.33 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/9.528, allocations: 0 / 4.356 GB, free: 41.33 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.000152/9.529, allocations: 384.8 kB / 4.356 GB, free: 41.03 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001751/9.53, allocations: 1.162 MB / 4.358 GB, free: 41.02 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001981/9.532, allocations: 1.608 MB / 4.359 GB, free: 40.52 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00799/9.54, allocations: 2.331 MB / 4.361 GB, free: 40.46 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.832e-05/9.54, allocations: 10.16 kB / 4.361 GB, free: 40.46 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.017/9.557, allocations: 5.345 MB / 4.367 GB, free: 40.26 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001884/9.559, allocations: 4.694 MB / 4.371 GB, free: 35.42 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.46e-05/9.559, allocations: 10.81 kB / 4.371 GB, free: 35.42 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008324/9.568, allocations: 2.153 MB / 4.373 GB, free: 35.36 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001623/9.57, allocations: 310.1 kB / 4.374 GB, free: 35.35 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009507/9.579, allocations: 4.31 MB / 4.378 GB, free: 34.78 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003848/9.583, allocations: 256.7 kB / 4.378 GB, free: 34.75 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006634/9.584, allocations: 105.8 kB / 4.378 GB, free: 34.75 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/9.584, allocations: 6.969 kB / 4.378 GB, free: 34.74 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01236/9.596, allocations: 4.126 MB / 4.382 GB, free: 34.66 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.761e-05/9.596, allocations: 12.28 kB / 4.382 GB, free: 34.66 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006384/9.603, allocations: 1.614 MB / 4.384 GB, free: 34.61 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002042/9.605, allocations: 356.2 kB / 4.384 GB, free: 34.61 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005452/9.61, allocations: 3.009 MB / 4.387 GB, free: 34.04 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003419/9.614, allocations: 239.8 kB / 4.387 GB, free: 34.01 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005944/9.614, allocations: 101.6 kB / 4.387 GB, free: 34.01 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 153 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.001119/9.615, allocations: 198.3 kB / 4.388 GB, free: 33.86 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002698/9.618, allocations: 0.6445 MB / 4.388 GB, free: 33.77 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01274/9.631, allocations: 6.677 MB / 4.395 GB, free: 33.25 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.968e-05/9.631, allocations: 62.02 kB / 4.395 GB, free: 33.24 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.633e-05/9.631, allocations: 2.094 kB / 4.395 GB, free: 33.24 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008591/9.64, allocations: 5.482 MB / 4.4 GB, free: 32.59 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01996/9.66, allocations: 9.263 MB / 4.409 GB, free: 31.76 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.397e-05/9.66, allocations: 7.625 kB / 4.409 GB, free: 31.76 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001673/9.661, allocations: 329.5 kB / 4.41 GB, free: 31.76 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001105/9.663, allocations: 335.1 kB / 4.41 GB, free: 31.71 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002849/9.663, allocations: 52.03 kB / 4.41 GB, free: 31.71 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001872/9.665, allocations: 2.717 MB / 4.413 GB, free: 29.62 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.055e-05/9.665, allocations: 2.156 kB / 4.413 GB, free: 29.62 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01514/9.68, allocations: 7.152 MB / 4.42 GB, free: 29.04 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00301/9.683, allocations: 0.6891 MB / 4.42 GB, free: 28.81 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001183/9.684, allocations: 24.09 kB / 4.42 GB, free: 28.81 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002658/9.687, allocations: 161.4 kB / 4.42 GB, free: 28.79 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003777/9.687, allocations: 131.9 kB / 4.421 GB, free: 28.79 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002534/9.688, allocations: 67.12 kB / 4.421 GB, free: 28.79 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002673/9.69, allocations: 1.116 MB / 4.422 GB, free: 28.68 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01748/9.708, allocations: 2.716 MB / 4.424 GB, free: 28.66 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01818/9.726, allocations: 3.078 MB / 4.427 GB, free: 28.22 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01388/9.74, allocations: 5.58 MB / 4.433 GB, free: 27.99 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/9.74, allocations: 0 / 4.433 GB, free: 27.99 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005181/9.745, allocations: 2.866 MB / 4.436 GB, free: 27.95 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006814/9.752, allocations: 0.7306 MB / 4.436 GB, free: 27.91 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01648/9.769, allocations: 5.937 MB / 4.442 GB, free: 26.66 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005571/9.774, allocations: 2.305 MB / 4.444 GB, free: 41.86 MB / 0.5886 GB Notification: Performance of SimCode: time 2.375e-06/9.774, allocations: 2.438 kB / 4.444 GB, free: 41.86 MB / 0.5886 GB Notification: Performance of Templates: time 0.5806/10.35, allocations: 95.6 MB / 4.538 GB, free: 109 MB / 0.5886 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes13/SeriesPipes13.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches