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: translateModel(ThermoPower.Test.WaterComponents.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.WaterPump") translateModel(ThermoPower.Test.WaterComponents.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.WaterPump") [: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.0009505/0.0009507, allocations: 191.9 kB / 8.137 MB, free: 2.195 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.123/1.123, allocations: 205.2 MB / 213.7 MB, free: 13.77 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.0009507/0.0009509, allocations: 91.12 kB / 261.7 MB, free: 13.45 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3463/0.3463, allocations: 48.76 MB / 358.4 MB, free: 53.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.182e-06/6.212e-06, allocations: 0 / 424.7 MB, free: 8.297 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1188, allocations: 60.27 MB / 485 MB, free: 11.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.167/5.285, allocations: 2.887 GB / 3.361 GB, free: 143.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/5.286, allocations: 79.59 kB / 3.361 GB, free: 143.2 MB / 0.5105 GB Notification: Performance of FrontEnd: time 0.6938/5.979, allocations: 218.3 MB / 3.574 GB, free: 84.17 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.178e-05/5.98, allocations: 13.17 kB / 3.574 GB, free: 84.17 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.004472/5.984, allocations: 1.016 MB / 3.575 GB, free: 83.71 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/5.984, allocations: 7.625 kB / 3.575 GB, free: 83.71 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003157/5.984, allocations: 51.8 kB / 3.575 GB, free: 83.7 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/5.986, allocations: 411 kB / 3.575 GB, free: 83.46 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.241e-05/5.986, allocations: 41.48 kB / 3.575 GB, free: 83.43 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.399e-05/5.986, allocations: 15.72 kB / 3.575 GB, free: 83.43 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004044/5.986, allocations: 171.9 kB / 3.576 GB, free: 83.43 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004563/5.987, allocations: 286.8 kB / 3.576 GB, free: 83.32 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/5.987, allocations: 0 / 3.576 GB, free: 83.32 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.895e-05/5.987, allocations: 3.25 kB / 3.576 GB, free: 83.32 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/5.987, allocations: 3.625 kB / 3.576 GB, free: 83.32 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/5.989, allocations: 1.322 MB / 3.577 GB, free: 82.35 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000377/5.989, allocations: 143.7 kB / 3.577 GB, free: 82.32 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/5.989, allocations: 76.23 kB / 3.577 GB, free: 82.32 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05962/6.049, allocations: 32.13 MB / 3.609 GB, free: 61.53 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/6.049, allocations: 39.44 kB / 3.609 GB, free: 61.48 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=20): time 2.514e-06/6.049, allocations: 0 / 3.609 GB, free: 61.48 MB / 0.5105 GB Notification: Performance of matching and sorting (n=20): time 0.001182/6.05, allocations: 264.8 kB / 3.609 GB, free: 61.43 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/6.05, allocations: 53.5 kB / 3.609 GB, free: 61.37 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002716/6.051, allocations: 206.8 kB / 3.609 GB, free: 61.27 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/6.051, allocations: 25.7 kB / 3.609 GB, free: 61.24 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.557e-05/6.051, allocations: 161 kB / 3.609 GB, free: 61.12 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.345e-05/6.051, allocations: 62.06 kB / 3.61 GB, free: 61.08 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.627e-05/6.051, allocations: 1.406 kB / 3.61 GB, free: 61.08 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.453e-05/6.051, allocations: 334.5 kB / 3.61 GB, free: 60.77 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/6.051, allocations: 56.97 kB / 3.61 GB, free: 60.77 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001288/6.051, allocations: 87.19 kB / 3.61 GB, free: 60.73 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002488/6.051, allocations: 72.53 kB / 3.61 GB, free: 60.73 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/6.051, allocations: 0 / 3.61 GB, free: 60.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000971/6.052, allocations: 305 kB / 3.61 GB, free: 60.67 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.898e-05/6.053, allocations: 369.1 kB / 3.611 GB, free: 60.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/6.053, allocations: 1.156 kB / 3.611 GB, free: 60.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005835/6.053, allocations: 117.4 kB / 3.611 GB, free: 60.29 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002943/6.053, allocations: 59.38 kB / 3.611 GB, free: 60.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007768/6.054, allocations: 0.6976 MB / 3.612 GB, free: 59.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003922/6.055, allocations: 55.81 kB / 3.612 GB, free: 59.75 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.305e-05/6.055, allocations: 20.02 kB / 3.612 GB, free: 59.75 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/6.055, allocations: 3.812 kB / 3.612 GB, free: 59.75 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000668/6.055, allocations: 206.1 kB / 3.612 GB, free: 59.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-06/6.055, allocations: 1.469 kB / 3.612 GB, free: 59.74 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002712/6.056, allocations: 75.38 kB / 3.612 GB, free: 59.73 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002846/6.056, allocations: 63.2 kB / 3.612 GB, free: 59.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000433/6.056, allocations: 0.6261 MB / 3.613 GB, free: 59.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003537/6.057, allocations: 50.69 kB / 3.613 GB, free: 59.19 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/6.057, allocations: 18.84 kB / 3.613 GB, free: 59.18 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.0001787/6.057, allocations: 107.6 kB / 3.613 GB, free: 59.07 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/6.057, allocations: 49.5 kB / 3.613 GB, free: 59.06 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009384/6.058, allocations: 0.5636 MB / 3.613 GB, free: 58.99 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/6.058, allocations: 6.125 kB / 3.613 GB, free: 58.98 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/6.058, allocations: 1.156 kB / 3.613 GB, free: 58.98 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/6.058, allocations: 4 kB / 3.613 GB, free: 58.98 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004546/6.059, allocations: 350.7 kB / 3.614 GB, free: 58.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/6.059, allocations: 0 / 3.614 GB, free: 58.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002857/6.059, allocations: 61.3 kB / 3.614 GB, free: 58.81 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000625/6.06, allocations: 367.1 kB / 3.614 GB, free: 58.79 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/6.06, allocations: 4.906 kB / 3.614 GB, free: 58.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007136/6.06, allocations: 0.8589 MB / 3.615 GB, free: 58.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/6.06, allocations: 1.812 kB / 3.615 GB, free: 58.25 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009651/6.061, allocations: 0.6488 MB / 3.616 GB, free: 58.08 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/6.061, allocations: 127.2 kB / 3.616 GB, free: 57.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.578e-05/6.062, allocations: 0 / 3.616 GB, free: 57.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003162/6.062, allocations: 45 kB / 3.616 GB, free: 57.96 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.66e-05/6.062, allocations: 19.41 kB / 3.616 GB, free: 57.96 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.316e-05/6.062, allocations: 9.594 kB / 3.616 GB, free: 57.96 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.000136/6.062, allocations: 158.9 kB / 3.616 GB, free: 57.88 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004822/6.067, allocations: 0.9293 MB / 3.617 GB, free: 57.72 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.009068/6.076, allocations: 1.394 MB / 3.618 GB, free: 57.41 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001588/6.078, allocations: 384.8 kB / 3.619 GB, free: 57.41 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/6.078, allocations: 0 / 3.619 GB, free: 57.41 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000535/6.078, allocations: 219.2 kB / 3.619 GB, free: 57.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008751/6.079, allocations: 105.1 kB / 3.619 GB, free: 57.38 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001685/6.081, allocations: 0.5354 MB / 3.619 GB, free: 57.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004398/6.081, allocations: 0.8285 MB / 3.62 GB, free: 56.48 MB / 0.5105 GB Notification: Performance of SimCode: time 7.92e-07/6.081, allocations: 1.969 kB / 3.62 GB, free: 56.48 MB / 0.5105 GB Notification: Performance of Templates: time 0.04279/6.124, allocations: 28.28 MB / 3.648 GB, free: 54.9 MB / 0.5105 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.WaterPump.makefile (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 & ./ThermoPower_ThermoPower.Test.WaterComponents.WaterPump -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.WaterPump.pipe 2>&1)