Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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.BranchingPipes16,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|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.BranchingPipes16") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|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.BranchingPipes16") [: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.002294/0.002294, allocations: 179.8 kB / 8.519 MB, free: 1.855 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.431/1.431, allocations: 221.4 MB / 230.3 MB, free: 7.684 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.000986/0.0009863, allocations: 82.36 kB / 281.2 MB, free: 5.504 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.2463/0.2463, allocations: 44.15 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.117e-05/1.173e-05, allocations: 4.219 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1886/0.1887, allocations: 61.91 MB / 0.4941 GB, free: 1.617 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.682/1.871, allocations: 0.5606 GB / 1.055 GB, free: 44.36 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003244/1.871, allocations: 78.25 kB / 1.055 GB, free: 44.28 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.484/4.356, allocations: 0.5036 GB / 1.558 GB, free: 51.11 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004438/4.356, allocations: 62.5 kB / 1.558 GB, free: 51.1 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: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01438/4.37, allocations: 2.815 MB / 1.561 GB, free: 49.98 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.02e-05/4.371, allocations: 7.719 kB / 1.561 GB, free: 49.98 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005107/4.376, allocations: 448 kB / 1.562 GB, free: 49.86 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009517/4.385, allocations: 1.948 MB / 1.564 GB, free: 49.42 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002398/4.385, allocations: 59.27 kB / 1.564 GB, free: 49.42 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00149/4.387, allocations: 102.8 kB / 1.564 GB, free: 49.41 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007102/4.394, allocations: 2.197 MB / 1.566 GB, free: 49.41 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008516/4.403, allocations: 2.429 MB / 1.568 GB, free: 48.98 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001082/4.403, allocations: 8.844 kB / 1.568 GB, free: 48.98 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009057/4.404, allocations: 7.25 kB / 1.568 GB, free: 48.98 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002735/4.404, allocations: 163.3 kB / 1.568 GB, free: 48.98 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02574/4.43, allocations: 11.78 MB / 1.58 GB, free: 42.17 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002457/4.432, allocations: 1.044 MB / 1.581 GB, free: 42.14 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001987/4.434, allocations: 1.009 MB / 1.582 GB, free: 42.12 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001075/4.436, allocations: 0.5067 MB / 1.582 GB, free: 41.66 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002443/4.438, allocations: 1.181 MB / 1.584 GB, free: 41.49 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=153): time 9.047e-06/4.438, allocations: 0 / 1.584 GB, free: 41.49 MB / 0.5261 GB Notification: Performance of matching and sorting (n=173): time 0.04588/4.484, allocations: 9.044 MB / 1.592 GB, free: 40.6 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000208/4.484, allocations: 360 kB / 1.593 GB, free: 40.19 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003177/4.487, allocations: 1.089 MB / 1.594 GB, free: 40.02 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006689/4.488, allocations: 31.48 kB / 1.594 GB, free: 39.98 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001071/4.489, allocations: 0.6539 MB / 1.594 GB, free: 39.61 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001058/4.49, allocations: 0.56 MB / 1.595 GB, free: 39.23 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003935/4.491, allocations: 2.344 kB / 1.595 GB, free: 39.23 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000249/4.491, allocations: 386.9 kB / 1.595 GB, free: 38.93 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002259/4.493, allocations: 1.01 MB / 1.596 GB, free: 38.92 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002619/4.496, allocations: 1.437 MB / 1.598 GB, free: 38.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01112/4.507, allocations: 2.28 MB / 1.6 GB, free: 38.49 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.519e-05/4.507, allocations: 7.188 kB / 1.6 GB, free: 38.49 MB / 0.5261 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01869/4.526, allocations: 3.927 MB / 1.604 GB, free: 38.29 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001404/4.527, allocations: 3.654 MB / 1.607 GB, free: 34.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.584e-05/4.527, allocations: 11.61 kB / 1.607 GB, free: 34.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005568/4.528, allocations: 167.7 kB / 1.608 GB, free: 34.53 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003021/4.531, allocations: 0.5337 MB / 1.608 GB, free: 34.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/4.533, allocations: 2.369 MB / 1.61 GB, free: 32.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00381/4.537, allocations: 164.5 kB / 1.611 GB, free: 32.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008933/4.537, allocations: 186.6 kB / 1.611 GB, free: 32.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/4.538, allocations: 3.5 kB / 1.611 GB, free: 32.45 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01411/4.552, allocations: 3.386 MB / 1.614 GB, free: 32.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.364e-05/4.552, allocations: 9.562 kB / 1.614 GB, free: 32.37 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004333/4.552, allocations: 169.7 kB / 1.614 GB, free: 32.34 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002708/4.555, allocations: 0.5235 MB / 1.615 GB, free: 32.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001718/4.557, allocations: 2.368 MB / 1.617 GB, free: 30.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003316/4.56, allocations: 164.9 kB / 1.617 GB, free: 30.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006982/4.561, allocations: 184.5 kB / 1.617 GB, free: 30.25 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (243): * Single equations (assignments): 237 * 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: 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 prepare postOptimizeDAE: time 0.001431/4.562, allocations: 233.9 kB / 1.618 GB, free: 30.07 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001044/4.563, allocations: 191.3 kB / 1.618 GB, free: 29.98 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01932/4.583, allocations: 5.11 MB / 1.623 GB, free: 29.79 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.947e-05/4.583, allocations: 15.5 kB / 1.623 GB, free: 29.79 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.33e-05/4.583, allocations: 0 / 1.623 GB, free: 29.79 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01405/4.597, allocations: 3.505 MB / 1.626 GB, free: 29.28 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02927/4.626, allocations: 6.829 MB / 1.633 GB, free: 28.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.159e-05/4.626, allocations: 10.78 kB / 1.633 GB, free: 28.32 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00254/4.629, allocations: 405.9 kB / 1.633 GB, free: 28.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005744/4.629, allocations: 171.6 kB / 1.633 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005101/4.63, allocations: 70.19 kB / 1.633 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002318/4.632, allocations: 3.03 MB / 1.636 GB, free: 25.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.401e-05/4.632, allocations: 7.875 kB / 1.636 GB, free: 25.54 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02066/4.653, allocations: 5.304 MB / 1.642 GB, free: 24.03 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00295/4.656, allocations: 0.5094 MB / 1.642 GB, free: 23.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001449/4.657, allocations: 26.62 kB / 1.642 GB, free: 23.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003086/4.661, allocations: 95.17 kB / 1.642 GB, free: 23.72 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005848/4.661, allocations: 144 kB / 1.642 GB, free: 23.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007437/4.662, allocations: 150.2 kB / 1.643 GB, free: 23.68 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002711/4.665, allocations: 0.8054 MB / 1.643 GB, free: 23.35 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0145/4.679, allocations: 1.637 MB / 1.645 GB, free: 23.06 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (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) * 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 (183): * Single equations (assignments): 177 * 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: 4 * 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: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009118/4.688, allocations: 2.371 MB / 1.647 GB, free: 22.53 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009412/4.698, allocations: 3.991 MB / 1.651 GB, free: 19.85 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.821e-05/4.698, allocations: 7.938 kB / 1.651 GB, free: 19.84 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002495/4.7, allocations: 1.381 MB / 1.652 GB, free: 18.56 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005097/4.706, allocations: 0.7478 MB / 1.653 GB, free: 18.05 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.012/4.718, allocations: 4.059 MB / 1.657 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004847/4.722, allocations: 2.233 MB / 1.659 GB, free: 12.92 MB / 0.5261 GB Notification: Performance of SimCode: time 2.624e-06/4.723, allocations: 0 / 1.659 GB, free: 12.92 MB / 0.5261 GB Notification: Performance of Templates: time 0.524/5.246, allocations: 71.16 MB / 1.729 GB, free: 117.9 MB / 0.5573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1)