Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001782/0.001782, allocations: 195.8 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.619/1.619, allocations: 225.5 MB / 234.4 MB, free: 3.445 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001389/0.001389, allocations: 90.39 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2724/0.2724, allocations: 45.15 MB / 383.3 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.256e-06/8.286e-06, allocations: 0 / 452.6 MB, free: 76.23 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1611/0.1611, allocations: 63.24 MB / 0.5038 GB, free: 13.06 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.015/1.176, allocations: 336.7 MB / 0.8326 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003142/1.176, allocations: 87.94 kB / 0.8327 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of FrontEnd: time 0.6648/1.841, allocations: 145.2 MB / 0.9745 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.525e-05/1.841, allocations: 17.88 kB / 0.9746 GB, free: 127.3 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.002907/1.844, allocations: 1.192 MB / 0.9757 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/1.844, allocations: 7.531 kB / 0.9757 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004036/1.845, allocations: 114.8 kB / 0.9758 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00137/1.846, allocations: 0.6811 MB / 0.9765 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.702e-05/1.846, allocations: 91.69 kB / 0.9766 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.489e-05/1.846, allocations: 29.53 kB / 0.9766 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001247/1.847, allocations: 0.8467 MB / 0.9775 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/1.849, allocations: 0.9477 MB / 0.9784 GB, free: 126.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/1.849, allocations: 2.625 kB / 0.9784 GB, free: 126.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.65e-05/1.849, allocations: 3.875 kB / 0.9784 GB, free: 126.2 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.374e-05/1.849, allocations: 60.84 kB / 0.9784 GB, free: 126.2 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005776/1.855, allocations: 3.908 MB / 0.9823 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006679/1.855, allocations: 0.5377 MB / 0.9828 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004785/1.856, allocations: 400.5 kB / 0.9832 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002975/1.859, allocations: 2.399 MB / 0.9855 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005968/1.86, allocations: 495.2 kB / 0.986 GB, free: 123 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 2.445e-06/1.86, allocations: 0 / 0.986 GB, free: 123 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.006825/1.866, allocations: 2.506 MB / 0.9884 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.496e-05/1.866, allocations: 242.8 kB / 0.9887 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006999/1.867, allocations: 0.5584 MB / 0.9892 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.114e-05/1.867, allocations: 29.23 kB / 0.9892 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002336/1.868, allocations: 334.6 kB / 0.9896 GB, free: 121.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/1.868, allocations: 175.5 kB / 0.9897 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.58e-05/1.868, allocations: 0 / 0.9897 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001218/1.868, allocations: 384.5 kB / 0.9901 GB, free: 121.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004772/1.868, allocations: 369 kB / 0.9904 GB, free: 121.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006275/1.869, allocations: 0.5936 MB / 0.991 GB, free: 121.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002528/1.872, allocations: 0.8094 MB / 0.9918 GB, free: 121.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/1.872, allocations: 0 / 0.9918 GB, free: 121.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003785/1.875, allocations: 1.539 MB / 0.9933 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006554/1.876, allocations: 2.433 MB / 0.9957 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/1.876, allocations: 9.469 kB / 0.9957 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007754/1.877, allocations: 316.9 kB / 0.996 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006115/1.877, allocations: 149.2 kB / 0.9961 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002112/1.88, allocations: 1.674 MB / 0.9978 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009102/1.881, allocations: 36.12 kB / 0.9978 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/1.881, allocations: 40.73 kB / 0.9978 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/1.881, allocations: 3.875 kB / 0.9979 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003499/1.884, allocations: 1.389 MB / 0.9992 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/1.884, allocations: 9.234 kB / 0.9992 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007087/1.885, allocations: 310.5 kB / 0.9995 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000571/1.885, allocations: 155.7 kB / 0.9997 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/1.887, allocations: 1.616 MB / 1.001 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008945/1.888, allocations: 38.09 kB / 1.001 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-05/1.888, allocations: 39.14 kB / 1.001 GB, free: 116.4 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.000362/1.889, allocations: 166.6 kB / 1.001 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001508/1.889, allocations: 73.5 kB / 1.002 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003091/1.892, allocations: 1.228 MB / 1.003 GB, free: 116.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/1.892, allocations: 7.469 kB / 1.003 GB, free: 116.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.036e-06/1.892, allocations: 7.656 kB / 1.003 GB, free: 116.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/1.892, allocations: 3.609 kB / 1.003 GB, free: 116.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003909/1.896, allocations: 2.001 MB / 1.005 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/1.896, allocations: 3.75 kB / 1.005 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004357/1.896, allocations: 80.11 kB / 1.005 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006865/1.897, allocations: 316.2 kB / 1.005 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.859e-05/1.897, allocations: 10.69 kB / 1.005 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002002/1.899, allocations: 1.642 MB / 1.007 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/1.899, allocations: 3.797 kB / 1.007 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003247/1.902, allocations: 1.689 MB / 1.008 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006931/1.903, allocations: 256.7 kB / 1.009 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/1.903, allocations: 6.594 kB / 1.009 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006649/1.904, allocations: 38.12 kB / 1.009 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/1.904, allocations: 52.44 kB / 1.009 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.994e-05/1.904, allocations: 29.25 kB / 1.009 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0006403/1.905, allocations: 431.3 kB / 1.009 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002678/1.908, allocations: 0.6526 MB / 1.01 GB, free: 114.3 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.001678/1.909, allocations: 0.6371 MB / 1.01 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002923/1.912, allocations: 1.411 MB / 1.012 GB, free: 114 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/1.912, allocations: 3.844 kB / 1.012 GB, free: 114 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008286/1.913, allocations: 457 kB / 1.012 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001404/1.914, allocations: 259.8 kB / 1.012 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003395/1.918, allocations: 1.29 MB / 1.014 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007915/1.919, allocations: 1.108 MB / 1.015 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of SimCode: time 1.452e-06/1.919, allocations: 0 / 1.015 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of Templates: time 0.03796/1.957, allocations: 23.22 MB / 1.037 GB, free: 112 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)