Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.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.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") [: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.001081/0.001081, allocations: 184 kB / 8.52 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.282/1.282, allocations: 221.4 MB / 230.3 MB, free: 7.668 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.0009678/0.0009678, allocations: 84.73 kB / 281.2 MB, free: 5.438 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.1866/0.1866, allocations: 44.15 MB / 376.1 MB, free: 3.195 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.295e-06/8.325e-06, allocations: 4.219 kB / 444.1 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1342, allocations: 61.9 MB / 0.4941 GB, free: 1.598 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8265/0.9607, allocations: 335.7 MB / 0.8219 GB, free: 51.39 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.961, allocations: 82.39 kB / 0.822 GB, free: 51.35 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.5795/1.541, allocations: 145.4 MB / 0.964 GB, free: 148.6 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.9e-05/1.541, allocations: 26.94 kB / 0.964 GB, free: 148.5 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.002943/1.544, allocations: 1.18 MB / 0.9652 GB, free: 147.7 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/1.544, allocations: 9.844 kB / 0.9652 GB, free: 147.7 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004098/1.544, allocations: 112 kB / 0.9653 GB, free: 147.7 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001528/1.546, allocations: 0.6926 MB / 0.966 GB, free: 147.3 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/1.546, allocations: 86.52 kB / 0.966 GB, free: 147.2 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/1.546, allocations: 34.94 kB / 0.9661 GB, free: 147.2 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001574/1.547, allocations: 0.8475 MB / 0.9669 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001691/1.549, allocations: 0.9471 MB / 0.9678 GB, free: 146.5 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.528e-05/1.549, allocations: 4.5 kB / 0.9678 GB, free: 146.5 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.69e-05/1.549, allocations: 3.719 kB / 0.9678 GB, free: 146.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.041e-05/1.549, allocations: 59.12 kB / 0.9679 GB, free: 146.5 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007144/1.556, allocations: 3.911 MB / 0.9717 GB, free: 144.1 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009021/1.557, allocations: 0.5373 MB / 0.9722 GB, free: 143.9 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006222/1.558, allocations: 412.4 kB / 0.9726 GB, free: 143.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003668/1.562, allocations: 2.401 MB / 0.975 GB, free: 141.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000815/1.563, allocations: 496.9 kB / 0.9754 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 2.194e-06/1.563, allocations: 0 / 0.9754 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.007365/1.57, allocations: 2.499 MB / 0.9779 GB, free: 140.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.624e-05/1.57, allocations: 254.4 kB / 0.9781 GB, free: 140.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008129/1.571, allocations: 0.5529 MB / 0.9787 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.377e-05/1.571, allocations: 27.58 kB / 0.9787 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002226/1.571, allocations: 340.6 kB / 0.979 GB, free: 139.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001596/1.571, allocations: 170.3 kB / 0.9792 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.844e-05/1.571, allocations: 1.25 kB / 0.9792 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001245/1.572, allocations: 385.1 kB / 0.9795 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005649/1.572, allocations: 360.8 kB / 0.9799 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007177/1.573, allocations: 0.5943 MB / 0.9805 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002314/1.575, allocations: 0.7627 MB / 0.9812 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/1.575, allocations: 2.031 kB / 0.9812 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003683/1.579, allocations: 1.473 MB / 0.9827 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004562/1.579, allocations: 2.442 MB / 0.985 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/1.579, allocations: 4 kB / 0.985 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006853/1.58, allocations: 317.5 kB / 0.9853 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005937/1.581, allocations: 155.7 kB / 0.9855 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/1.583, allocations: 1.671 MB / 0.9871 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007698/1.583, allocations: 31.98 kB / 0.9872 GB, free: 132.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.221e-05/1.583, allocations: 39.98 kB / 0.9872 GB, free: 132.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.614e-06/1.583, allocations: 6.188 kB / 0.9872 GB, free: 132.3 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002874/1.586, allocations: 1.338 MB / 0.9885 GB, free: 130.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/1.586, allocations: 11.98 kB / 0.9885 GB, free: 130.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006237/1.587, allocations: 309.7 kB / 0.9888 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005578/1.588, allocations: 155.7 kB / 0.989 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001726/1.589, allocations: 1.62 MB / 0.9905 GB, free: 128.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006673/1.59, allocations: 32.08 kB / 0.9906 GB, free: 128.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.136e-05/1.59, allocations: 39.98 kB / 0.9906 GB, free: 128.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002758/1.59, allocations: 170.3 kB / 0.9908 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000142/1.591, allocations: 75.16 kB / 0.9908 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002896/1.593, allocations: 1.22 MB / 0.992 GB, free: 127.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/1.593, allocations: 11.91 kB / 0.992 GB, free: 127.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/1.593, allocations: 0 / 0.992 GB, free: 127.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/1.593, allocations: 3.984 kB / 0.9921 GB, free: 127.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003653/1.597, allocations: 2.004 MB / 0.994 GB, free: 125.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/1.597, allocations: 0 / 0.994 GB, free: 125.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004194/1.598, allocations: 83.89 kB / 0.9941 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000599/1.598, allocations: 305.5 kB / 0.9944 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.671e-05/1.598, allocations: 15.98 kB / 0.9944 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001848/1.6, allocations: 1.639 MB / 0.996 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/1.6, allocations: 48 / 0.996 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002836/1.603, allocations: 1.699 MB / 0.9977 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004202/1.603, allocations: 252.8 kB / 0.9979 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001561/1.604, allocations: 7.984 kB / 0.9979 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005874/1.604, allocations: 43.88 kB / 0.9979 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/1.604, allocations: 48.36 kB / 0.998 GB, free: 121 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.721e-05/1.604, allocations: 23.98 kB / 0.998 GB, free: 121 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0004658/1.605, allocations: 431.1 kB / 0.9984 GB, free: 120.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002482/1.607, allocations: 0.6439 MB / 0.9991 GB, free: 119.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001517/1.609, allocations: 0.623 MB / 0.9997 GB, free: 119.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002509/1.611, allocations: 1.409 MB / 1.001 GB, free: 117.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/1.611, allocations: 8.25 kB / 1.001 GB, free: 117.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0007626/1.612, allocations: 451.1 kB / 1.001 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/1.613, allocations: 266.7 kB / 1.002 GB, free: 117.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002778/1.616, allocations: 1.295 MB / 1.003 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006124/1.617, allocations: 1.111 MB / 1.004 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of SimCode: time 7.22e-07/1.617, allocations: 0 / 1.004 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of Templates: time 0.03139/1.648, allocations: 23.17 MB / 1.027 GB, free: 91.74 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)