Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.WaterPump.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.WaterPump,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.WaterPump,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_WaterPump",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.0009852/0.0009853, allocations: 189.5 kB / 8.138 MB, free: 2.207 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.1/1.1, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0009021/0.0009021, allocations: 95.66 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3363/0.3363, allocations: 48.76 MB / 358.5 MB, free: 53.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1166/0.4529, allocations: 66.37 MB / 424.8 MB, free: 8.113 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09583/0.5488, allocations: 60.24 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.729/5.278, allocations: 2.887 GB / 3.361 GB, free: 135.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/5.278, allocations: 84.12 kB / 3.361 GB, free: 135.6 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.5994/5.878, allocations: 219.4 MB / 3.575 GB, free: 86.45 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/5.878, allocations: 7.656 kB / 3.575 GB, free: 86.45 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002217/5.878, allocations: 53.88 kB / 3.575 GB, free: 86.43 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008807/5.879, allocations: 398.6 kB / 3.575 GB, free: 86.18 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.393e-05/5.879, allocations: 44.86 kB / 3.575 GB, free: 86.15 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.427e-05/5.879, allocations: 15.75 kB / 3.576 GB, free: 86.15 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003314/5.879, allocations: 175.1 kB / 3.576 GB, free: 86.15 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003768/5.88, allocations: 288.3 kB / 3.576 GB, free: 86.04 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/5.88, allocations: 0 / 3.576 GB, free: 86.04 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.011e-05/5.88, allocations: 4.844 kB / 3.576 GB, free: 86.03 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/5.88, allocations: 7.906 kB / 3.576 GB, free: 86.03 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001327/5.881, allocations: 1.314 MB / 3.577 GB, free: 85.06 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003132/5.881, allocations: 149.3 kB / 3.577 GB, free: 85.04 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/5.881, allocations: 70.39 kB / 3.577 GB, free: 85.03 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05792/5.939, allocations: 32.14 MB / 3.609 GB, free: 64.24 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/5.939, allocations: 40.45 kB / 3.609 GB, free: 64.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=20): time 2.505e-06/5.939, allocations: 2.875 kB / 3.609 GB, free: 64.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=20): time 0.00103/5.94, allocations: 267.8 kB / 3.609 GB, free: 64.15 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.651e-05/5.941, allocations: 58.38 kB / 3.609 GB, free: 64.08 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/5.941, allocations: 205.2 kB / 3.609 GB, free: 63.98 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/5.941, allocations: 25.7 kB / 3.609 GB, free: 63.95 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.197e-05/5.941, allocations: 151.2 kB / 3.61 GB, free: 63.84 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.027e-05/5.941, allocations: 66.16 kB / 3.61 GB, free: 63.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.516e-05/5.941, allocations: 0 / 3.61 GB, free: 63.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 5.036e-05/5.941, allocations: 334.2 kB / 3.61 GB, free: 63.48 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.964e-05/5.941, allocations: 57.59 kB / 3.61 GB, free: 63.48 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/5.941, allocations: 91.31 kB / 3.61 GB, free: 63.45 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002112/5.941, allocations: 65.17 kB / 3.61 GB, free: 63.45 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/5.941, allocations: 0 / 3.61 GB, free: 63.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0008571/5.942, allocations: 311.6 kB / 3.61 GB, free: 63.38 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.584e-05/5.942, allocations: 369.4 kB / 3.611 GB, free: 63.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/5.942, allocations: 0 / 3.611 GB, free: 63.01 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00054/5.943, allocations: 107.9 kB / 3.611 GB, free: 63 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002777/5.943, allocations: 62.75 kB / 3.611 GB, free: 63 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006841/5.944, allocations: 0.7029 MB / 3.612 GB, free: 62.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003556/5.944, allocations: 57.17 kB / 3.612 GB, free: 62.46 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.548e-05/5.944, allocations: 11.38 kB / 3.612 GB, free: 62.46 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.635e-06/5.944, allocations: 9.75 kB / 3.612 GB, free: 62.46 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006159/5.945, allocations: 205.1 kB / 3.612 GB, free: 62.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.915e-06/5.945, allocations: 0 / 3.612 GB, free: 62.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002553/5.945, allocations: 74.94 kB / 3.612 GB, free: 62.44 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002643/5.946, allocations: 61.41 kB / 3.612 GB, free: 62.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003873/5.946, allocations: 0.632 MB / 3.613 GB, free: 61.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003139/5.946, allocations: 47.77 kB / 3.613 GB, free: 61.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.895e-05/5.946, allocations: 16.66 kB / 3.613 GB, free: 61.9 MB / 0.5105 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Pump.w:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate (total)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (Pump.int_Np,Pump.inletFluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001345/5.946, allocations: 112.9 kB / 3.613 GB, free: 61.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/5.947, allocations: 47.92 kB / 3.613 GB, free: 61.77 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007542/5.947, allocations: 0.5565 MB / 3.613 GB, free: 61.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/5.947, allocations: 7.406 kB / 3.613 GB, free: 61.69 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/5.947, allocations: 3.281 kB / 3.613 GB, free: 61.69 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/5.947, allocations: 0 / 3.613 GB, free: 61.69 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003723/5.948, allocations: 344.3 kB / 3.614 GB, free: 61.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/5.948, allocations: 0 / 3.614 GB, free: 61.53 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002658/5.948, allocations: 63.39 kB / 3.614 GB, free: 61.52 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005024/5.949, allocations: 372.2 kB / 3.614 GB, free: 61.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/5.949, allocations: 7.219 kB / 3.614 GB, free: 61.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006264/5.949, allocations: 0.8576 MB / 3.615 GB, free: 60.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/5.949, allocations: 0 / 3.615 GB, free: 60.96 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008051/5.95, allocations: 0.6523 MB / 3.616 GB, free: 60.8 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001113/5.951, allocations: 1.179 MB / 3.617 GB, free: 60.25 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/5.951, allocations: 124.8 kB / 3.617 GB, free: 60.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.1e-05/5.951, allocations: 0 / 3.617 GB, free: 60.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003097/5.952, allocations: 49.27 kB / 3.617 GB, free: 60.12 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.425e-05/5.952, allocations: 17.52 kB / 3.617 GB, free: 60.12 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/5.952, allocations: 14.72 kB / 3.617 GB, free: 60.12 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001033/5.952, allocations: 159.8 kB / 3.617 GB, free: 60.04 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005383/5.957, allocations: 1.084 MB / 3.618 GB, free: 59.89 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (Pump.h) * Number of discrete variables: 2 ($cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.006621/5.964, allocations: 1.398 MB / 3.62 GB, free: 59.58 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0008059/5.965, allocations: 380.8 kB / 3.62 GB, free: 59.57 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/5.965, allocations: 0 / 3.62 GB, free: 59.57 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003638/5.965, allocations: 230.2 kB / 3.62 GB, free: 59.56 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006182/5.966, allocations: 100.2 kB / 3.62 GB, free: 59.55 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/5.967, allocations: 0.535 MB / 3.621 GB, free: 59.36 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003166/5.967, allocations: 0.8354 MB / 3.622 GB, free: 58.64 MB / 0.5105 GB Notification: Performance of SimCode: time 3.1e-07/5.967, allocations: 3.906 kB / 3.622 GB, free: 58.64 MB / 0.5105 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.WaterPump.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.WaterPump.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.WaterPump.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_WaterPump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_WaterPump.fmu > ThermoPower_ThermoPower.Test.WaterComponents.WaterPump.pipe 2>&1)