Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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_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_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 3.2.3+maint.om/package.mo): time 0.0008843/0.0008843, allocations: 187.4 kB / 7.804 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9934/0.9934, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007808/0.0007808, allocations: 87.7 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1444/0.1444, allocations: 43.5 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.452e-06/6.462e-06, allocations: 4 kB / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2219/0.2219, allocations: 58.84 MB / 476.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4193/0.6412, allocations: 334.9 MB / 0.7924 GB, free: 15.43 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/0.6415, allocations: 88.67 kB / 0.7925 GB, free: 15.38 MB / 490.7 MB Notification: Performance of FrontEnd: time 0.4148/1.056, allocations: 142.4 MB / 0.9315 GB, free: 99.57 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.923e-05/1.056, allocations: 20 kB / 0.9316 GB, free: 99.55 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.002143/1.059, allocations: 1.186 MB / 0.9327 GB, free: 98.32 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 2.695e-05/1.059, allocations: 11.97 kB / 0.9327 GB, free: 98.31 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003484/1.059, allocations: 110.8 kB / 0.9328 GB, free: 98.2 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/1.06, allocations: 0.6874 MB / 0.9335 GB, free: 97.48 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.575e-05/1.06, allocations: 88.7 kB / 0.9336 GB, free: 97.39 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.629e-05/1.06, allocations: 35.91 kB / 0.9336 GB, free: 97.35 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001002/1.061, allocations: 0.842 MB / 0.9344 GB, free: 96.51 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/1.062, allocations: 0.9551 MB / 0.9354 GB, free: 95.5 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/1.062, allocations: 0 / 0.9354 GB, free: 95.5 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.686e-05/1.062, allocations: 4 kB / 0.9354 GB, free: 95.5 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.224e-05/1.062, allocations: 53.27 kB / 0.9354 GB, free: 95.45 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004726/1.067, allocations: 3.91 MB / 0.9392 GB, free: 91.4 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005675/1.068, allocations: 0.5384 MB / 0.9398 GB, free: 90.85 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003961/1.068, allocations: 410 kB / 0.9402 GB, free: 90.45 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002483/1.071, allocations: 2.4 MB / 0.9425 GB, free: 87.82 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004845/1.071, allocations: 495.3 kB / 0.943 GB, free: 87.31 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=48): time 2.224e-06/1.071, allocations: 0 / 0.943 GB, free: 87.31 MB / 0.4948 GB Notification: Performance of matching and sorting (n=53): time 0.006071/1.077, allocations: 2.505 MB / 0.9454 GB, free: 84.74 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.054e-05/1.077, allocations: 239.8 kB / 0.9457 GB, free: 84.45 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005321/1.078, allocations: 0.5541 MB / 0.9462 GB, free: 83.89 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.391e-05/1.078, allocations: 33.7 kB / 0.9462 GB, free: 83.85 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/1.078, allocations: 343 kB / 0.9466 GB, free: 83.51 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/1.078, allocations: 161.7 kB / 0.9467 GB, free: 83.35 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.386e-05/1.078, allocations: 0 / 0.9467 GB, free: 83.35 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.39e-05/1.078, allocations: 390.7 kB / 0.9471 GB, free: 82.96 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004007/1.079, allocations: 365.4 kB / 0.9474 GB, free: 82.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004809/1.079, allocations: 0.5944 MB / 0.948 GB, free: 81.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003898/1.083, allocations: 1.096 MB / 0.9491 GB, free: 80.8 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/1.083, allocations: 4 kB / 0.9491 GB, free: 80.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004895/1.088, allocations: 1.811 MB / 0.9509 GB, free: 78.97 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003137/1.088, allocations: 2.446 MB / 0.9532 GB, free: 76.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/1.088, allocations: 8.062 kB / 0.9533 GB, free: 76.33 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006163/1.089, allocations: 321.4 kB / 0.9536 GB, free: 76.01 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005491/1.089, allocations: 151.7 kB / 0.9537 GB, free: 75.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001761/1.091, allocations: 1.667 MB / 0.9553 GB, free: 74.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006908/1.092, allocations: 35.83 kB / 0.9554 GB, free: 74.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.996e-05/1.092, allocations: 39.98 kB / 0.9554 GB, free: 74.07 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.12e-06/1.092, allocations: 4 kB / 0.9554 GB, free: 74.07 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004713/1.097, allocations: 1.674 MB / 0.957 GB, free: 72.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/1.097, allocations: 8 kB / 0.957 GB, free: 72.38 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000564/1.097, allocations: 309.8 kB / 0.9573 GB, free: 72.07 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005201/1.098, allocations: 147.8 kB / 0.9575 GB, free: 71.92 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001548/1.099, allocations: 1.62 MB / 0.9591 GB, free: 70.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005986/1.1, allocations: 40.03 kB / 0.9591 GB, free: 70.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.958e-05/1.1, allocations: 43.97 kB / 0.9591 GB, free: 70.17 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.0001977/1.1, allocations: 170.1 kB / 0.9593 GB, free: 70 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/1.1, allocations: 79.06 kB / 0.9594 GB, free: 69.92 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00259/1.103, allocations: 1.223 MB / 0.9606 GB, free: 68.68 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/1.103, allocations: 4 kB / 0.9606 GB, free: 68.68 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/1.103, allocations: 0 / 0.9606 GB, free: 68.68 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/1.103, allocations: 3.984 kB / 0.9606 GB, free: 68.68 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003069/1.106, allocations: 2.008 MB / 0.9625 GB, free: 66.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/1.106, allocations: 0 / 0.9625 GB, free: 66.63 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003833/1.107, allocations: 83.89 kB / 0.9626 GB, free: 66.55 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005799/1.107, allocations: 305.5 kB / 0.9629 GB, free: 66.24 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.034e-05/1.107, allocations: 19.92 kB / 0.9629 GB, free: 66.22 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001627/1.109, allocations: 1.635 MB / 0.9645 GB, free: 64.54 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/1.109, allocations: 4.031 kB / 0.9645 GB, free: 64.53 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002544/1.111, allocations: 1.703 MB / 0.9662 GB, free: 62.81 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003672/1.112, allocations: 256.8 kB / 0.9664 GB, free: 62.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001456/1.112, allocations: 4 kB / 0.9664 GB, free: 62.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005713/1.113, allocations: 39.97 kB / 0.9665 GB, free: 62.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/1.113, allocations: 48.36 kB / 0.9665 GB, free: 62.45 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.313e-05/1.113, allocations: 23.98 kB / 0.9666 GB, free: 62.43 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0003732/1.113, allocations: 435 kB / 0.967 GB, free: 62 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001705/1.115, allocations: 0.6401 MB / 0.9676 GB, free: 61.36 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.001105/1.116, allocations: 0.6267 MB / 0.9682 GB, free: 60.77 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002097/1.118, allocations: 1.409 MB / 0.9696 GB, free: 59.35 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/1.118, allocations: 4.375 kB / 0.9696 GB, free: 59.34 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006979/1.119, allocations: 455.1 kB / 0.97 GB, free: 58.89 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/1.12, allocations: 265.7 kB / 0.9703 GB, free: 58.64 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002329/1.122, allocations: 1.292 MB / 0.9715 GB, free: 57.31 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005493/1.123, allocations: 1.115 MB / 0.9726 GB, free: 56.16 MB / 0.4948 GB Notification: Performance of SimCode: time 3e-07/1.123, allocations: 0 / 0.9726 GB, free: 56.16 MB / 0.4948 GB Notification: Performance of Templates: time 0.02718/1.15, allocations: 23.17 MB / 0.9953 GB, free: 33.08 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)