Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.WaterPumpMech.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.WaterPumpMech,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_WaterPumpMech",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.WaterPumpMech,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_WaterPumpMech",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.001095/0.001095, allocations: 183.4 kB / 8.13 MB, free: 2.219 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.171/1.171, 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.001159/0.001159, allocations: 95.34 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3571/0.3571, allocations: 48.75 MB / 358.4 MB, free: 53.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1094/0.4665, allocations: 66.38 MB / 424.8 MB, free: 8.117 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.5842, allocations: 60.25 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.357/4.942, allocations: 2.885 GB / 3.359 GB, free: 143.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/4.942, allocations: 91.62 kB / 3.359 GB, free: 143.7 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.6031/5.545, allocations: 222.6 MB / 3.576 GB, free: 83.03 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/5.545, allocations: 11.34 kB / 3.576 GB, free: 83.03 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003139/5.545, allocations: 77.11 kB / 3.576 GB, free: 83 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/5.546, allocations: 479.7 kB / 3.577 GB, free: 82.78 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.506e-05/5.547, allocations: 50.73 kB / 3.577 GB, free: 82.74 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.855e-05/5.547, allocations: 31.16 kB / 3.577 GB, free: 82.74 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005464/5.547, allocations: 314.5 kB / 3.577 GB, free: 82.74 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006282/5.548, allocations: 455.2 kB / 3.578 GB, free: 82.62 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.43e-05/5.548, allocations: 7.562 kB / 3.578 GB, free: 82.62 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.592e-05/5.548, allocations: 3.562 kB / 3.578 GB, free: 82.62 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/5.548, allocations: 11.31 kB / 3.578 GB, free: 82.62 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002462/5.55, allocations: 1.927 MB / 3.58 GB, free: 81.61 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000296/5.551, allocations: 195.6 kB / 3.58 GB, free: 81.6 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001983/5.551, allocations: 135.2 kB / 3.58 GB, free: 81.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0562/5.607, allocations: 32.02 MB / 3.611 GB, free: 62.19 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/5.607, allocations: 47.03 kB / 3.611 GB, free: 62.14 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=35): time 2.154e-06/5.607, allocations: 0 / 3.611 GB, free: 62.14 MB / 0.5105 GB Notification: Performance of matching and sorting (n=38): time 0.002456/5.61, allocations: 1.146 MB / 3.612 GB, free: 61.59 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.653e-05/5.61, allocations: 59 kB / 3.612 GB, free: 61.53 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/5.61, allocations: 245.1 kB / 3.613 GB, free: 61.43 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.556e-05/5.61, allocations: 25.7 kB / 3.613 GB, free: 61.39 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.131e-05/5.61, allocations: 224.1 kB / 3.613 GB, free: 61.24 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.225e-05/5.61, allocations: 130.5 kB / 3.613 GB, free: 61.16 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.94e-05/5.61, allocations: 0 / 3.613 GB, free: 61.16 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 5.108e-05/5.61, allocations: 351.3 kB / 3.613 GB, free: 60.84 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/5.61, allocations: 101.2 kB / 3.613 GB, free: 60.84 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/5.611, allocations: 154.1 kB / 3.613 GB, free: 60.79 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/5.611, allocations: 122.3 kB / 3.614 GB, free: 60.79 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/5.611, allocations: 0 / 3.614 GB, free: 60.79 MB / 0.5105 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007849/5.612, allocations: 422.5 kB / 3.614 GB, free: 60.72 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.798e-05/5.612, allocations: 0.6208 MB / 3.615 GB, free: 60.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/5.612, allocations: 2.469 kB / 3.615 GB, free: 60.08 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000493/5.612, allocations: 107.7 kB / 3.615 GB, free: 60.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004189/5.613, allocations: 99.17 kB / 3.615 GB, free: 60.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006589/5.613, allocations: 0.6895 MB / 3.615 GB, free: 59.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003625/5.614, allocations: 36.92 kB / 3.616 GB, free: 59.54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/5.614, allocations: 24.53 kB / 3.616 GB, free: 59.54 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.562e-06/5.614, allocations: 3.188 kB / 3.616 GB, free: 59.54 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007262/5.614, allocations: 322.8 kB / 3.616 GB, free: 59.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/5.614, allocations: 3.406 kB / 3.616 GB, free: 59.52 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002336/5.615, allocations: 76.28 kB / 3.616 GB, free: 59.51 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003614/5.615, allocations: 103.1 kB / 3.616 GB, free: 59.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003533/5.615, allocations: 0.6178 MB / 3.617 GB, free: 58.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003267/5.616, allocations: 37.2 kB / 3.617 GB, free: 58.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.918e-05/5.616, allocations: 22.33 kB / 3.617 GB, free: 58.98 MB / 0.5105 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Pump.dp:VARIABLE(unit = "Pa" ) "Outlet pressure minus inlet pressure" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (41): * Single equations (assignments): 40 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001307/5.616, allocations: 112.7 kB / 3.617 GB, free: 58.86 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/5.616, allocations: 59.86 kB / 3.617 GB, free: 58.84 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008756/5.617, allocations: 0.6593 MB / 3.617 GB, free: 58.75 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/5.617, allocations: 5.625 kB / 3.618 GB, free: 58.75 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/5.617, allocations: 3.875 kB / 3.618 GB, free: 58.75 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/5.617, allocations: 3.891 kB / 3.618 GB, free: 58.75 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001512/5.619, allocations: 1.278 MB / 3.619 GB, free: 58.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/5.619, allocations: 3.938 kB / 3.619 GB, free: 58.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003846/5.619, allocations: 85.89 kB / 3.619 GB, free: 58.38 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004753/5.619, allocations: 370.7 kB / 3.619 GB, free: 58.36 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/5.619, allocations: 3.875 kB / 3.619 GB, free: 58.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005563/5.62, allocations: 0.8635 MB / 3.62 GB, free: 57.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/5.62, allocations: 3.75 kB / 3.62 GB, free: 57.82 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001041/5.621, allocations: 0.8857 MB / 3.621 GB, free: 57.54 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001423/5.623, allocations: 1.472 MB / 3.622 GB, free: 56.89 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/5.623, allocations: 145.1 kB / 3.622 GB, free: 56.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.327e-05/5.623, allocations: 6.797 kB / 3.622 GB, free: 56.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003412/5.623, allocations: 37.97 kB / 3.623 GB, free: 56.77 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.388e-05/5.623, allocations: 34.33 kB / 3.623 GB, free: 56.76 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.874e-05/5.623, allocations: 14.22 kB / 3.623 GB, free: 56.76 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001473/5.623, allocations: 191.2 kB / 3.623 GB, free: 56.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005361/5.629, allocations: 1.115 MB / 3.624 GB, free: 56.55 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (Pump.h,SimpleMotor1.L.i,SimpleMotor1.Damper.phi_rel,SimpleMotor1.Damper.w_rel) * Number of discrete variables: 2 ($cse2.phase,$cse2.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 31 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.006407/5.635, allocations: 1.392 MB / 3.625 GB, free: 56.28 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001218/5.636, allocations: 0.5616 MB / 3.626 GB, free: 56.25 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.299e-06/5.636, allocations: 0.625 kB / 3.626 GB, free: 56.25 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004677/5.637, allocations: 286 kB / 3.626 GB, free: 56.23 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007381/5.638, allocations: 110 kB / 3.626 GB, free: 56.22 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/5.639, allocations: 0.9276 MB / 3.627 GB, free: 55.82 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004379/5.64, allocations: 0.9139 MB / 3.628 GB, free: 55.11 MB / 0.5105 GB Notification: Performance of SimCode: time 2.7e-07/5.64, allocations: 0 / 3.628 GB, free: 55.11 MB / 0.5105 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.WaterPumpMech.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.WaterPumpMech.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.WaterPumpMech.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.WaterPumpMech.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_WaterPumpMech_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_WaterPumpMech.fmu > ThermoPower_ThermoPower.Test.WaterComponents.WaterPumpMech.pipe 2>&1)