Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.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.ValveZeroFlow2,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.ValveZeroFlow2,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2",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.0009506/0.0009508, allocations: 180.6 kB / 8.134 MB, free: 2.133 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.007/1.007, 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.0007901/0.0007902, allocations: 86.62 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.2802/0.2802, allocations: 48.75 MB / 358.5 MB, free: 53.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09055/0.3708, allocations: 66.37 MB / 424.8 MB, free: 8.086 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08572/0.4566, allocations: 60.25 MB / 485.1 MB, free: 11.71 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.289/4.746, allocations: 2.905 GB / 3.379 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002207/4.746, allocations: 83.75 kB / 3.379 GB, free: 131.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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.7559/5.502, allocations: 295.6 MB / 3.668 GB, free: 46.47 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.659e-05/5.502, allocations: 13.41 kB / 3.668 GB, free: 46.46 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005661/5.503, allocations: 93.17 kB / 3.668 GB, free: 46.42 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000849/5.504, allocations: 355.2 kB / 3.668 GB, free: 46.1 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/5.504, allocations: 7.469 kB / 3.668 GB, free: 46.1 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.427e-05/5.504, allocations: 19.75 kB / 3.668 GB, free: 46.1 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004598/5.504, allocations: 238.9 kB / 3.669 GB, free: 46 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004695/5.505, allocations: 359.6 kB / 3.669 GB, free: 45.72 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/5.505, allocations: 0 / 3.669 GB, free: 45.72 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.196e-05/5.505, allocations: 3.188 kB / 3.669 GB, free: 45.72 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/5.505, allocations: 6 kB / 3.669 GB, free: 45.72 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/5.507, allocations: 2.107 MB / 3.671 GB, free: 43.68 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003656/5.507, allocations: 187 kB / 3.671 GB, free: 43.58 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/5.507, allocations: 88.48 kB / 3.671 GB, free: 43.54 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05893/5.566, allocations: 32.01 MB / 3.702 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.194e-05/5.566, allocations: 34.5 kB / 3.702 GB, free: 13.52 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 3.878e-06/5.566, allocations: 0 / 3.702 GB, free: 13.52 MB / 0.5105 GB Notification: Performance of matching and sorting (n=33): time 0.003914/5.57, allocations: 1.147 MB / 3.704 GB, free: 12.32 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.614e-05/5.57, allocations: 59.34 kB / 3.704 GB, free: 12.25 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002416/5.57, allocations: 219.5 kB / 3.704 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/5.57, allocations: 25.7 kB / 3.704 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.818e-05/5.571, allocations: 176.2 kB / 3.704 GB, free: 11.81 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 7.081e-05/5.571, allocations: 114.3 kB / 3.704 GB, free: 11.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.648e-05/5.571, allocations: 3.938 kB / 3.704 GB, free: 11.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.666e-05/5.571, allocations: 342.7 kB / 3.705 GB, free: 11.35 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/5.571, allocations: 108 kB / 3.705 GB, free: 11.25 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/5.571, allocations: 162.2 kB / 3.705 GB, free: 11.07 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003558/5.571, allocations: 127.7 kB / 3.705 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/5.571, allocations: 4 kB / 3.705 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001097/5.573, allocations: 476.5 kB / 3.705 GB, free: 10.47 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001606/5.573, allocations: 0.5215 MB / 3.706 GB, free: 9.906 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/5.573, allocations: 4 kB / 3.706 GB, free: 9.902 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004385/5.573, allocations: 85.62 kB / 3.706 GB, free: 9.812 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003765/5.574, allocations: 87.8 kB / 3.706 GB, free: 9.727 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009154/5.575, allocations: 1.148 MB / 3.707 GB, free: 8.527 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000402/5.575, allocations: 31.97 kB / 3.707 GB, free: 8.496 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.082e-05/5.575, allocations: 15.98 kB / 3.707 GB, free: 8.48 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/5.575, allocations: 4 kB / 3.707 GB, free: 8.477 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007747/5.576, allocations: 325.3 kB / 3.708 GB, free: 8.152 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/5.576, allocations: 4 kB / 3.708 GB, free: 8.148 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003796/5.576, allocations: 85.8 kB / 3.708 GB, free: 8.059 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002946/5.576, allocations: 79.89 kB / 3.708 GB, free: 7.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008878/5.577, allocations: 1.148 MB / 3.709 GB, free: 6.781 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003532/5.578, allocations: 28.06 kB / 3.709 GB, free: 6.754 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.656e-05/5.578, allocations: 16 kB / 3.709 GB, free: 6.738 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (Valve.fluidState.phase,Tank2.liquidState.phase,Tank1.liquidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * 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: 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001247/5.578, allocations: 120.8 kB / 3.709 GB, free: 6.613 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002547/5.578, allocations: 95.55 kB / 3.709 GB, free: 6.52 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001527/5.58, allocations: 1.251 MB / 3.71 GB, free: 5.254 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/5.58, allocations: 15.97 kB / 3.71 GB, free: 5.238 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/5.58, allocations: 4 kB / 3.71 GB, free: 5.234 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/5.58, allocations: 0 / 3.71 GB, free: 5.234 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006371/5.58, allocations: 0.5985 MB / 3.711 GB, free: 4.605 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/5.58, allocations: 0 / 3.711 GB, free: 4.605 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003308/5.581, allocations: 67.91 kB / 3.711 GB, free: 4.539 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004959/5.581, allocations: 137.5 kB / 3.711 GB, free: 4.398 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.141e-05/5.581, allocations: 11.92 kB / 3.711 GB, free: 4.387 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000799/5.582, allocations: 1.265 MB / 3.712 GB, free: 3.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/5.582, allocations: 4.094 kB / 3.712 GB, free: 3.066 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001592/5.584, allocations: 1.428 MB / 3.714 GB, free: 1.613 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.191/5.775, allocations: 2.185 MB / 3.716 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002518/5.775, allocations: 149.6 kB / 3.716 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.641e-05/5.775, allocations: 3.594 kB / 3.716 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003479/5.775, allocations: 19.55 kB / 3.716 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.211e-05/5.776, allocations: 20.41 kB / 3.716 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-05/5.776, allocations: 12.91 kB / 3.716 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001499/5.776, allocations: 169.5 kB / 3.716 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00575/5.781, allocations: 1.118 MB / 3.717 GB, free: 117.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Tank1.y,Tank1.h,Tank2.y,Tank2.h) * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006644/5.788, allocations: 1.49 MB / 3.719 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001476/5.79, allocations: 0.8197 MB / 3.72 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/5.79, allocations: 2.688 kB / 3.72 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006626/5.79, allocations: 0.5614 MB / 3.72 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008898/5.791, allocations: 144.7 kB / 3.72 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/5.793, allocations: 1.09 MB / 3.721 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003932/5.793, allocations: 0.9133 MB / 3.722 GB, free: 116.7 MB / 0.5105 GB Notification: Performance of SimCode: time 3.51e-07/5.793, allocations: 0 / 3.722 GB, free: 116.7 MB / 0.5105 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2.fmu > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe 2>&1)