Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/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: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestBarometricCondenser,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestBarometricCondenser,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser",fmuType="me",version="2.0",platforms={"static"}) [: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.0009656/0.0009656, allocations: 183.4 kB / 8.135 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.061/1.061, allocations: 205.2 MB / 213.7 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.0008567/0.0008567, allocations: 91.95 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3238/0.3238, allocations: 48.75 MB / 358.4 MB, free: 53.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1057/0.4295, allocations: 66.36 MB / 424.8 MB, free: 8.125 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.5319, allocations: 60.26 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.696/5.228, allocations: 2.912 GB / 3.386 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/5.228, allocations: 77.06 kB / 3.386 GB, free: 132.2 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.8932/6.122, allocations: 354.7 MB / 3.732 GB, free: 2.871 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/6.122, allocations: 8 kB / 3.732 GB, free: 2.863 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001061/6.123, allocations: 163.1 kB / 3.732 GB, free: 2.703 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006659/6.124, allocations: 396.8 kB / 3.733 GB, free: 2.277 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/6.124, allocations: 15.44 kB / 3.733 GB, free: 2.266 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.757e-05/6.124, allocations: 20 kB / 3.733 GB, free: 2.246 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003993/6.124, allocations: 241.3 kB / 3.733 GB, free: 2.012 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005001/6.125, allocations: 457.2 kB / 3.733 GB, free: 1.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/6.125, allocations: 0 / 3.733 GB, free: 1.5 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.451e-05/6.125, allocations: 4 kB / 3.733 GB, free: 1.496 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/6.125, allocations: 8 kB / 3.734 GB, free: 1.488 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1799/6.305, allocations: 2.585 MB / 3.736 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002476/6.305, allocations: 190.9 kB / 3.736 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/6.305, allocations: 162.4 kB / 3.736 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1612/6.466, allocations: 93.3 MB / 3.827 GB, free: 45.15 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003666/6.467, allocations: 256.1 kB / 3.828 GB, free: 45.04 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=32): time 2.234e-06/6.467, allocations: 6.656 kB / 3.828 GB, free: 45.04 MB / 0.5105 GB Notification: Performance of matching and sorting (n=36): time 0.003714/6.47, allocations: 1.277 MB / 3.829 GB, free: 44.71 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/6.47, allocations: 139.8 kB / 3.829 GB, free: 44.55 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002884/6.471, allocations: 289.6 kB / 3.829 GB, free: 44.45 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/6.471, allocations: 25.7 kB / 3.829 GB, free: 44.41 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/6.471, allocations: 200.1 kB / 3.83 GB, free: 44.29 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 7.644e-05/6.471, allocations: 113.4 kB / 3.83 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.979e-05/6.471, allocations: 0 / 3.83 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.281e-05/6.471, allocations: 346.2 kB / 3.83 GB, free: 43.92 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/6.471, allocations: 142.2 kB / 3.83 GB, free: 43.92 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/6.471, allocations: 219.8 kB / 3.83 GB, free: 43.84 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005572/6.472, allocations: 201.8 kB / 3.831 GB, free: 43.83 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/6.472, allocations: 0 / 3.831 GB, free: 43.83 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001433/6.473, allocations: 0.6111 MB / 3.831 GB, free: 43.75 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/6.473, allocations: 13.92 kB / 3.831 GB, free: 43.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/6.473, allocations: 0 / 3.831 GB, free: 43.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003463/6.474, allocations: 81.52 kB / 3.831 GB, free: 43.73 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000223/6.474, allocations: 58.91 kB / 3.831 GB, free: 43.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/6.475, allocations: 1.205 MB / 3.832 GB, free: 42.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/6.475, allocations: 29.89 kB / 3.833 GB, free: 42.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.281e-05/6.475, allocations: 17.5 kB / 3.833 GB, free: 42.68 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,steamFlowRate.a,steamFlowRate.b,steamFlowRate.last,$PRE.steamFlowRate.nextEvent,steamFlowRate.nextEvent,steamFlowRate.nextEventScaled,coolingFlowRate.a,coolingFlowRate.b,coolingFlowRate.last,$PRE.coolingFlowRate.nextEvent,coolingFlowRate.nextEvent,coolingFlowRate.nextEventScaled,tank.liquidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 31 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001293/6.476, allocations: 189.3 kB / 3.833 GB, free: 42.51 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002282/6.476, allocations: 105 kB / 3.833 GB, free: 42.49 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002043/6.478, allocations: 1.634 MB / 3.834 GB, free: 42.37 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/6.478, allocations: 17.41 kB / 3.834 GB, free: 42.37 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/6.478, allocations: 4 kB / 3.834 GB, free: 42.37 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/6.478, allocations: 3.406 kB / 3.834 GB, free: 42.37 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005994/6.479, allocations: 0.6499 MB / 3.835 GB, free: 42.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/6.479, allocations: 0 / 3.835 GB, free: 42.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002236/6.479, allocations: 48.47 kB / 3.835 GB, free: 42.19 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004983/6.479, allocations: 377.7 kB / 3.835 GB, free: 42.15 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.501e-05/6.479, allocations: 17.84 kB / 3.835 GB, free: 42.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007454/6.48, allocations: 1.375 MB / 3.837 GB, free: 41.11 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/6.48, allocations: 7.25 kB / 3.837 GB, free: 41.1 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002071/6.482, allocations: 1.765 MB / 3.839 GB, free: 40.95 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002714/6.485, allocations: 2.627 MB / 3.841 GB, free: 40.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002386/6.485, allocations: 191.3 kB / 3.841 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.105e-05/6.485, allocations: 7.531 kB / 3.841 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/6.485, allocations: 27.36 kB / 3.841 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.475e-05/6.486, allocations: 22.31 kB / 3.841 GB, free: 40.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.974e-05/6.486, allocations: 26.08 kB / 3.841 GB, free: 40.26 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001835/6.486, allocations: 223.3 kB / 3.842 GB, free: 40.18 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005155/6.491, allocations: 1.261 MB / 3.843 GB, free: 40.18 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (barometricCondenser.hl,tank.y,tank.h) * Number of discrete variables: 22 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$whenCondition1,$whenCondition2,steamFlowRate.a,steamFlowRate.b,steamFlowRate.last,steamFlowRate.nextEvent,steamFlowRate.nextEventScaled,coolingFlowRate.a,coolingFlowRate.b,coolingFlowRate.last,coolingFlowRate.nextEvent,coolingFlowRate.nextEventScaled) * Number of discrete states: 12 (steamFlowRate.nextEvent,steamFlowRate.last,steamFlowRate.nextEventScaled,steamFlowRate.b,steamFlowRate.a,$whenCondition1,coolingFlowRate.nextEvent,coolingFlowRate.last,coolingFlowRate.nextEventScaled,coolingFlowRate.b,coolingFlowRate.a,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 4 * 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 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.008099/6.499, allocations: 1.92 MB / 3.845 GB, free: 39.99 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001139/6.5, allocations: 0.7848 MB / 3.845 GB, free: 39.91 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/6.5, allocations: 2.625 kB / 3.845 GB, free: 39.91 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000681/6.501, allocations: 0.7216 MB / 3.846 GB, free: 39.85 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007818/6.502, allocations: 128.2 kB / 3.846 GB, free: 39.84 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/6.503, allocations: 1.24 MB / 3.848 GB, free: 39.49 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004011/6.504, allocations: 0.9713 MB / 3.848 GB, free: 38.77 MB / 0.5105 GB Notification: Performance of SimCode: time 3.61e-07/6.504, allocations: 2.906 kB / 3.848 GB, free: 38.77 MB / 0.5105 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe 2>&1)