Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") [: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 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 174.8 kB / 8.518 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 221.4 MB / 230.3 MB, free: 7.707 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 80.8 kB / 281.2 MB, free: 5.449 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2563/0.2563, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.866e-06/8.896e-06, allocations: 4.219 kB / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.1787, allocations: 61.91 MB / 0.4941 GB, free: 1.609 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.705/1.884, allocations: 0.5607 GB / 1.055 GB, free: 43.88 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003181/1.884, allocations: 79.95 kB / 1.055 GB, free: 43.8 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.609/4.493, allocations: 0.5606 GB / 1.615 GB, free: 48.37 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004548/4.493, allocations: 66.64 kB / 1.616 GB, free: 48.36 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01491/4.508, allocations: 2.961 MB / 1.618 GB, free: 46.89 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.937e-05/4.508, allocations: 13.81 kB / 1.618 GB, free: 46.89 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005155/4.513, allocations: 464.1 kB / 1.619 GB, free: 46.76 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00935/4.523, allocations: 2.018 MB / 1.621 GB, free: 46.26 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002282/4.523, allocations: 57.66 kB / 1.621 GB, free: 46.26 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001395/4.524, allocations: 105.4 kB / 1.621 GB, free: 46.26 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007233/4.532, allocations: 2.279 MB / 1.623 GB, free: 45.62 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009982/4.542, allocations: 2.541 MB / 1.626 GB, free: 44.52 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-05/4.542, allocations: 6.312 kB / 1.626 GB, free: 44.51 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003342/4.542, allocations: 6.312 kB / 1.626 GB, free: 44.51 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003716/4.543, allocations: 171.2 kB / 1.626 GB, free: 44.49 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0204/4.563, allocations: 12.02 MB / 1.638 GB, free: 35.89 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002889/4.566, allocations: 1.139 MB / 1.639 GB, free: 35.48 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002452/4.568, allocations: 1.086 MB / 1.64 GB, free: 35.09 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001216/4.57, allocations: 0.5049 MB / 1.64 GB, free: 34.61 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002953/4.573, allocations: 1.275 MB / 1.642 GB, free: 34.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=167): time 2.274e-05/4.573, allocations: 0 / 1.642 GB, free: 34.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=192): time 0.05187/4.625, allocations: 9.871 MB / 1.651 GB, free: 30.69 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001884/4.625, allocations: 364.1 kB / 1.652 GB, free: 30.25 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002926/4.628, allocations: 1.106 MB / 1.653 GB, free: 29.25 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008979/4.629, allocations: 30.41 kB / 1.653 GB, free: 29.22 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001124/4.63, allocations: 0.6763 MB / 1.653 GB, free: 28.62 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00146/4.631, allocations: 0.6299 MB / 1.654 GB, free: 28.04 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005665/4.632, allocations: 4 kB / 1.654 GB, free: 28.04 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002856/4.632, allocations: 389.4 kB / 1.654 GB, free: 27.68 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002509/4.635, allocations: 1.062 MB / 1.655 GB, free: 26.72 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002938/4.638, allocations: 1.527 MB / 1.657 GB, free: 25.16 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01199/4.65, allocations: 2.344 MB / 1.659 GB, free: 23.43 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.049e-05/4.65, allocations: 4 kB / 1.659 GB, free: 23.43 MB / 0.5261 GB Notification: Performance of matching and sorting (n=279) (initialization): time 0.0193/4.669, allocations: 4.144 MB / 1.663 GB, free: 20.04 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001341/4.67, allocations: 4.187 MB / 1.667 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-05/4.671, allocations: 12 kB / 1.667 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009852/4.672, allocations: 283.1 kB / 1.668 GB, free: 15.42 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003239/4.675, allocations: 0.5567 MB / 1.668 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002209/4.677, allocations: 3.063 MB / 1.671 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004122/4.681, allocations: 175.4 kB / 1.671 GB, free: 11.74 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001076/4.682, allocations: 203.1 kB / 1.671 GB, free: 11.55 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/4.682, allocations: 4 kB / 1.671 GB, free: 11.55 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01658/4.699, allocations: 3.584 MB / 1.675 GB, free: 8.648 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.658e-05/4.699, allocations: 15.94 kB / 1.675 GB, free: 8.633 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009091/4.7, allocations: 281.6 kB / 1.675 GB, free: 8.387 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003257/4.703, allocations: 0.5448 MB / 1.676 GB, free: 7.922 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002386/4.706, allocations: 3.075 MB / 1.679 GB, free: 4.816 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003995/4.71, allocations: 170.8 kB / 1.679 GB, free: 4.691 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00103/4.711, allocations: 199.5 kB / 1.679 GB, free: 4.508 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (258): * Single equations (assignments): 251 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001869/4.713, allocations: 230.3 kB / 1.679 GB, free: 4.27 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001322/4.714, allocations: 201.6 kB / 1.68 GB, free: 4.07 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02487/4.739, allocations: 6.308 MB / 1.686 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.15e-05/4.739, allocations: 23.94 kB / 1.686 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.662e-05/4.739, allocations: 3.906 kB / 1.686 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01803/4.757, allocations: 3.828 MB / 1.689 GB, free: 9.891 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03005/4.787, allocations: 7.376 MB / 1.697 GB, free: 2.352 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.984e-05/4.787, allocations: 15.97 kB / 1.697 GB, free: 2.336 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002865/4.79, allocations: 449.9 kB / 1.697 GB, free: 1.898 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009968/4.791, allocations: 291.5 kB / 1.697 GB, free: 1.602 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007383/4.792, allocations: 87.94 kB / 1.697 GB, free: 1.516 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00359/4.796, allocations: 3.731 MB / 1.701 GB, free: 13.56 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.735e-05/4.796, allocations: 11.94 kB / 1.701 GB, free: 13.55 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02229/4.818, allocations: 5.765 MB / 1.707 GB, free: 7.523 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002674/4.821, allocations: 0.5296 MB / 1.707 GB, free: 6.973 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001243/4.822, allocations: 27.98 kB / 1.707 GB, free: 6.945 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002784/4.825, allocations: 103.3 kB / 1.707 GB, free: 6.848 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005452/4.826, allocations: 168.8 kB / 1.708 GB, free: 6.688 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000591/4.826, allocations: 191.9 kB / 1.708 GB, free: 6.5 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.002245/4.828, allocations: 0.8095 MB / 1.709 GB, free: 5.695 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01091/4.839, allocations: 1.725 MB / 1.71 GB, free: 3.969 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T,junctionVolume.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01071/4.85, allocations: 2.521 MB / 1.713 GB, free: 1.734 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.4113/5.261, allocations: 4.257 MB / 1.717 GB, free: 120.8 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-05/5.262, allocations: 7.719 kB / 1.717 GB, free: 120.8 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0023/5.264, allocations: 1.521 MB / 1.718 GB, free: 120.7 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0047/5.269, allocations: 0.8918 MB / 1.719 GB, free: 120.6 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009719/5.278, allocations: 4.311 MB / 1.723 GB, free: 119.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003574/5.282, allocations: 2.336 MB / 1.726 GB, free: 119 MB / 0.5573 GB Notification: Performance of SimCode: time 1.413e-06/5.282, allocations: 0 / 1.726 GB, free: 119 MB / 0.5573 GB Notification: Performance of Templates: time 0.1256/5.408, allocations: 77.37 MB / 1.801 GB, free: 115.4 MB / 0.5573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1)