Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_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 3.2.1+maint.om/package.mo): time 0.004399/0.004399, allocations: 171.7 kB / 7.445 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.729/1.729, allocations: 170.6 MB / 178.4 MB, free: 15.4 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001948/0.001948, allocations: 119.8 kB / 217.7 MB, free: 8.16 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2496/0.2496, allocations: 37.97 MB / 294.8 MB, free: 9.621 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.211e-05/1.214e-05, allocations: 1.156 kB / 349.5 MB, free: 37.14 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1574, allocations: 48.71 MB / 398.2 MB, free: 5.688 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.193/2.351, allocations: 0.6477 GB / 1.037 GB, free: 71.79 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/2.351, allocations: 78.66 kB / 1.037 GB, free: 71.71 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.168/5.519, allocations: 0.5996 GB / 1.636 GB, free: 33.45 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005135/5.52, allocations: 65.12 kB / 1.636 GB, free: 33.45 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 448 * Number of variables: 448 Notification: Performance of Generate backend data structure: time 0.0184/5.538, allocations: 3.173 MB / 1.639 GB, free: 32.25 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.154e-05/5.538, allocations: 7.594 kB / 1.639 GB, free: 32.25 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005134/5.543, allocations: 465.2 kB / 1.64 GB, free: 32.11 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009113/5.553, allocations: 2.007 MB / 1.642 GB, free: 31.69 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/5.553, allocations: 62.56 kB / 1.642 GB, free: 31.69 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00133/5.554, allocations: 102.8 kB / 1.642 GB, free: 31.69 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006492/5.561, allocations: 2.25 MB / 1.644 GB, free: 31.68 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007823/5.569, allocations: 2.502 MB / 1.647 GB, free: 31.22 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.085e-05/5.569, allocations: 6.531 kB / 1.647 GB, free: 31.22 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006562/5.569, allocations: 5.531 kB / 1.647 GB, free: 31.22 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002468/5.57, allocations: 167 kB / 1.647 GB, free: 31.22 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02196/5.592, allocations: 11.9 MB / 1.658 GB, free: 24.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002027/5.594, allocations: 1.1 MB / 1.659 GB, free: 24.47 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001417/5.595, allocations: 1.039 MB / 1.66 GB, free: 24.46 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001115/5.596, allocations: 456.6 kB / 1.661 GB, free: 24.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001804/5.598, allocations: 1.138 MB / 1.662 GB, free: 24.05 MB / 458.7 MB Notification: Performance of pre-optimization done (n=163): time 5.28e-06/5.598, allocations: 0 / 1.662 GB, free: 24.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=188): time 0.04543/5.643, allocations: 10.3 MB / 1.672 GB, free: 23.09 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/5.644, allocations: 256.5 kB / 1.672 GB, free: 22.81 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002632/5.646, allocations: 1.106 MB / 1.673 GB, free: 22.64 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004024/5.647, allocations: 28.95 kB / 1.673 GB, free: 22.61 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008506/5.648, allocations: 0.6913 MB / 1.674 GB, free: 22.21 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008272/5.648, allocations: 0.6171 MB / 1.675 GB, free: 21.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002551/5.649, allocations: 0 / 1.675 GB, free: 21.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001882/5.649, allocations: 395.3 kB / 1.675 GB, free: 21.49 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001802/5.651, allocations: 1.036 MB / 1.676 GB, free: 21.48 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002222/5.653, allocations: 1.507 MB / 1.678 GB, free: 21.01 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01085/5.664, allocations: 2.467 MB / 1.68 GB, free: 20.99 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.403e-05/5.664, allocations: 3.844 kB / 1.68 GB, free: 20.99 MB / 458.7 MB Notification: Performance of matching and sorting (n=281) (initialization): time 0.01688/5.681, allocations: 4.249 MB / 1.684 GB, free: 20.77 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001547/5.682, allocations: 4.717 MB / 1.689 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.723e-05/5.682, allocations: 10.44 kB / 1.689 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008591/5.683, allocations: 281.3 kB / 1.689 GB, free: 15.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002924/5.686, allocations: 0.5637 MB / 1.69 GB, free: 15.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002166/5.689, allocations: 3.067 MB / 1.693 GB, free: 13.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003509/5.692, allocations: 170.1 kB / 1.693 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007295/5.693, allocations: 202.7 kB / 1.693 GB, free: 13.32 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/5.693, allocations: 6 kB / 1.693 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01466/5.707, allocations: 3.717 MB / 1.697 GB, free: 13.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.317e-05/5.708, allocations: 12.97 kB / 1.697 GB, free: 13.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008312/5.708, allocations: 276 kB / 1.697 GB, free: 13.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002722/5.711, allocations: 0.5616 MB / 1.697 GB, free: 13.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002416/5.714, allocations: 3.063 MB / 1.7 GB, free: 26.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003342/5.717, allocations: 172.4 kB / 1.701 GB, free: 26.58 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006354/5.718, allocations: 198.7 kB / 1.701 GB, free: 26.58 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (262): * Single equations (assignments): 255 * 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.001335/5.719, allocations: 226.1 kB / 1.701 GB, free: 26.41 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008664/5.72, allocations: 202 kB / 1.701 GB, free: 26.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01886/5.739, allocations: 4.759 MB / 1.706 GB, free: 26.14 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.798e-05/5.739, allocations: 27.5 kB / 1.706 GB, free: 26.14 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.658e-05/5.739, allocations: 2.156 kB / 1.706 GB, free: 26.14 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0151/5.754, allocations: 3.801 MB / 1.71 GB, free: 25.61 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02474/5.779, allocations: 7.302 MB / 1.717 GB, free: 24.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.884e-05/5.779, allocations: 6.812 kB / 1.717 GB, free: 24.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002504/5.782, allocations: 452 kB / 1.717 GB, free: 24.64 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009034/5.782, allocations: 289.8 kB / 1.717 GB, free: 24.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004625/5.783, allocations: 82.89 kB / 1.717 GB, free: 24.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003325/5.786, allocations: 3.727 MB / 1.721 GB, free: 21.33 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.668e-06/5.786, allocations: 17.14 kB / 1.721 GB, free: 21.33 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01742/5.804, allocations: 5.698 MB / 1.727 GB, free: 20.27 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001922/5.806, allocations: 0.5152 MB / 1.727 GB, free: 20.07 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000879/5.807, allocations: 33.61 kB / 1.727 GB, free: 20.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002207/5.809, allocations: 93.97 kB / 1.727 GB, free: 20.06 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003593/5.809, allocations: 163.6 kB / 1.727 GB, free: 20.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003952/5.81, allocations: 173.3 kB / 1.728 GB, free: 20.05 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001775/5.811, allocations: 0.7997 MB / 1.728 GB, free: 19.95 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01016/5.822, allocations: 1.882 MB / 1.73 GB, free: 19.69 MB / 474.7 MB 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: 10 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 191 * 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.009951/5.832, allocations: 2.859 MB / 1.733 GB, free: 19.09 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01143/5.843, allocations: 4.177 MB / 1.737 GB, free: 18.91 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.764e-05/5.843, allocations: 1.031 kB / 1.737 GB, free: 18.91 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004317/5.847, allocations: 1.465 MB / 1.739 GB, free: 18.74 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008065/5.856, allocations: 0.8772 MB / 1.739 GB, free: 18.71 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02555/5.881, allocations: 5.847 MB / 1.745 GB, free: 17.76 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007709/5.889, allocations: 2.222 MB / 1.747 GB, free: 16.93 MB / 474.7 MB Notification: Performance of SimCode: time 3.496e-06/5.889, allocations: 0 / 1.747 GB, free: 16.93 MB / 474.7 MB Notification: Performance of Templates: time 0.5123/6.401, allocations: 77.69 MB / 1.823 GB, free: 84.78 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1)