Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001696/0.001696, allocations: 175.8 kB / 8.148 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.716/1.716, allocations: 205.2 MB / 213.8 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00128/0.00128, allocations: 93.41 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2612/0.2612, allocations: 43.48 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.935e-06/8.135e-06, allocations: 0 / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2947, allocations: 58.84 MB / 476.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6882/0.983, allocations: 334.9 MB / 0.7924 GB, free: 2.074 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003771/0.9835, allocations: 89.12 kB / 0.7925 GB, free: 2.027 MB / 474.7 MB Notification: Performance of FrontEnd: time 0.7293/1.713, allocations: 142.4 MB / 0.9315 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.348e-05/1.713, allocations: 20 kB / 0.9315 GB, free: 102.4 MB / 0.4948 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.004625/1.718, allocations: 1.183 MB / 0.9327 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/1.718, allocations: 19.97 kB / 0.9327 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008839/1.719, allocations: 110.9 kB / 0.9328 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002386/1.721, allocations: 0.6834 MB / 0.9335 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/1.721, allocations: 88.69 kB / 0.9336 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/1.721, allocations: 32 kB / 0.9336 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002199/1.723, allocations: 0.8498 MB / 0.9344 GB, free: 99.38 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002148/1.726, allocations: 0.9511 MB / 0.9354 GB, free: 98.38 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.314e-05/1.726, allocations: 4 kB / 0.9354 GB, free: 98.37 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/1.726, allocations: 4 kB / 0.9354 GB, free: 98.37 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.876e-05/1.726, allocations: 57.27 kB / 0.9354 GB, free: 98.31 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009663/1.736, allocations: 3.904 MB / 0.9392 GB, free: 94.27 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/1.737, allocations: 0.5377 MB / 0.9398 GB, free: 93.73 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008571/1.738, allocations: 414 kB / 0.9402 GB, free: 93.32 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00499/1.743, allocations: 2.394 MB / 0.9425 GB, free: 90.69 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009978/1.744, allocations: 499.2 kB / 0.943 GB, free: 90.18 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=48): time 3.206e-06/1.744, allocations: 0 / 0.943 GB, free: 90.18 MB / 0.4948 GB Notification: Performance of matching and sorting (n=53): time 0.01177/1.756, allocations: 2.505 MB / 0.9454 GB, free: 87.62 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.222e-05/1.756, allocations: 247.8 kB / 0.9456 GB, free: 87.32 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/1.757, allocations: 0.5504 MB / 0.9462 GB, free: 86.76 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001013/1.757, allocations: 25.7 kB / 0.9462 GB, free: 86.73 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002336/1.757, allocations: 369.5 kB / 0.9466 GB, free: 86.36 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002089/1.757, allocations: 165.6 kB / 0.9467 GB, free: 86.2 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.661e-05/1.758, allocations: 0 / 0.9467 GB, free: 86.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.052e-05/1.758, allocations: 339.5 kB / 0.947 GB, free: 85.86 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008784/1.759, allocations: 369.3 kB / 0.9474 GB, free: 85.49 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001045/1.76, allocations: 0.5904 MB / 0.948 GB, free: 84.79 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007926/1.768, allocations: 1.103 MB / 0.949 GB, free: 83.69 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.419e-05/1.768, allocations: 7.906 kB / 0.9491 GB, free: 83.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.01033/1.778, allocations: 1.765 MB / 0.9508 GB, free: 81.9 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005039/1.778, allocations: 2.45 MB / 0.9532 GB, free: 79.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/1.779, allocations: 8 kB / 0.9532 GB, free: 79.26 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/1.78, allocations: 313.5 kB / 0.9535 GB, free: 78.95 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/1.781, allocations: 155.7 kB / 0.9536 GB, free: 78.79 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003321/1.784, allocations: 1.655 MB / 0.9552 GB, free: 77.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/1.785, allocations: 35.83 kB / 0.9553 GB, free: 77.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/1.786, allocations: 44.05 kB / 0.9553 GB, free: 77.01 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/1.786, allocations: 4 kB / 0.9553 GB, free: 77 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009804/1.795, allocations: 1.67 MB / 0.957 GB, free: 75.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.015e-05/1.796, allocations: 4 kB / 0.957 GB, free: 75.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001113/1.797, allocations: 317.9 kB / 0.9573 GB, free: 75 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/1.798, allocations: 147.8 kB / 0.9574 GB, free: 74.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003054/1.801, allocations: 1.612 MB / 0.959 GB, free: 73.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/1.802, allocations: 32.05 kB / 0.959 GB, free: 73.16 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/1.802, allocations: 39.98 kB / 0.959 GB, free: 73.12 MB / 0.4948 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.0003636/1.803, allocations: 87.45 kB / 0.9591 GB, free: 73.03 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002611/1.803, allocations: 79.06 kB / 0.9592 GB, free: 72.95 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005229/1.808, allocations: 1.211 MB / 0.9604 GB, free: 71.73 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/1.808, allocations: 4 kB / 0.9604 GB, free: 71.73 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/1.808, allocations: 11.98 kB / 0.9604 GB, free: 71.72 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/1.808, allocations: 4.031 kB / 0.9604 GB, free: 71.71 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006486/1.815, allocations: 2.012 MB / 0.9624 GB, free: 69.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/1.815, allocations: 0 / 0.9624 GB, free: 69.66 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007904/1.816, allocations: 79.89 kB / 0.9624 GB, free: 69.58 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001161/1.817, allocations: 309.5 kB / 0.9627 GB, free: 69.27 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.372e-05/1.817, allocations: 15.92 kB / 0.9628 GB, free: 69.26 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003227/1.82, allocations: 1.639 MB / 0.9644 GB, free: 67.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/1.82, allocations: 0 / 0.9644 GB, free: 67.57 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005463/1.826, allocations: 1.703 MB / 0.966 GB, free: 65.84 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008102/1.827, allocations: 252.8 kB / 0.9663 GB, free: 65.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002409/1.827, allocations: 4 kB / 0.9663 GB, free: 65.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/1.828, allocations: 39.97 kB / 0.9663 GB, free: 65.54 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/1.828, allocations: 52.27 kB / 0.9664 GB, free: 65.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/1.828, allocations: 31.92 kB / 0.9664 GB, free: 65.45 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0007899/1.829, allocations: 431.1 kB / 0.9668 GB, free: 65.04 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00284/1.832, allocations: 0.6401 MB / 0.9674 GB, free: 64.39 MB / 0.4948 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.002171/1.834, allocations: 0.6255 MB / 0.968 GB, free: 63.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00443/1.839, allocations: 1.386 MB / 0.9694 GB, free: 62.41 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/1.839, allocations: 8.25 kB / 0.9694 GB, free: 62.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001457/1.84, allocations: 451.1 kB / 0.9698 GB, free: 61.95 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002433/1.843, allocations: 248 kB / 0.9701 GB, free: 61.71 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004658/1.847, allocations: 1.339 MB / 0.9714 GB, free: 60.33 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009992/1.848, allocations: 1.106 MB / 0.9724 GB, free: 59.2 MB / 0.4948 GB Notification: Performance of SimCode: time 2.345e-06/1.848, allocations: 0 / 0.9724 GB, free: 59.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.04045/1.889, allocations: 22.05 MB / 0.994 GB, free: 37.14 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)