Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerStatic.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.TestCoolingTowerStatic,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestCoolingTowerStatic,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerStatic",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.001003/0.001003, allocations: 186.9 kB / 8.138 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.085/1.085, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0008373/0.0008374, allocations: 84.05 kB / 261.7 MB, free: 13.65 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3178/0.3178, allocations: 48.75 MB / 358.5 MB, free: 53.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1034/0.4213, allocations: 66.36 MB / 424.8 MB, free: 8.141 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.5252, allocations: 60.26 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.087/5.612, allocations: 3.2 GB / 3.673 GB, free: 45.77 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/5.613, allocations: 79.95 kB / 3.673 GB, free: 45.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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.6204/6.233, allocations: 212.9 MB / 3.881 GB, free: 42.98 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/6.233, allocations: 15.98 kB / 3.881 GB, free: 42.96 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002247/6.235, allocations: 250.6 kB / 3.882 GB, free: 42.72 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00163/6.237, allocations: 0.6752 MB / 3.882 GB, free: 42.02 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.935e-05/6.237, allocations: 32 kB / 3.882 GB, free: 41.98 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002999/6.237, allocations: 52 kB / 3.882 GB, free: 41.93 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002306/6.24, allocations: 1.37 MB / 3.884 GB, free: 40.56 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002178/6.242, allocations: 1.349 MB / 3.885 GB, free: 39.14 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/6.242, allocations: 4 kB / 3.885 GB, free: 39.13 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/6.242, allocations: 0 / 3.885 GB, free: 39.13 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.912e-05/6.242, allocations: 24 kB / 3.885 GB, free: 39.11 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05401/6.296, allocations: 29.55 MB / 3.914 GB, free: 6.801 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003661/6.3, allocations: 1.78 MB / 3.916 GB, free: 5.02 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001441/6.301, allocations: 0.8853 MB / 3.916 GB, free: 4.137 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1992/6.5, allocations: 24.09 MB / 3.94 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.457e-05/6.501, allocations: 54.83 kB / 3.94 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=177): time 3.626e-06/6.501, allocations: 0 / 3.94 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=177): time 0.007904/6.508, allocations: 2.841 MB / 3.943 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.945e-05/6.509, allocations: 72.69 kB / 3.943 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004243/6.509, allocations: 338.2 kB / 3.943 GB, free: 126.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001162/6.509, allocations: 25.7 kB / 3.943 GB, free: 126.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/6.509, allocations: 238.1 kB / 3.943 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005049/6.51, allocations: 0.5754 MB / 3.944 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.593e-05/6.51, allocations: 3.281 kB / 3.944 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001206/6.51, allocations: 401.2 kB / 3.944 GB, free: 125.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009793/6.511, allocations: 0.7274 MB / 3.945 GB, free: 125.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/6.512, allocations: 0.9205 MB / 3.946 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002651/6.515, allocations: 1.066 MB / 3.947 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/6.515, allocations: 0 / 3.947 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=200) (initialization): time 0.006071/6.521, allocations: 2.965 MB / 3.95 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/6.521, allocations: 3.844 kB / 3.95 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/6.521, allocations: 7.781 kB / 3.95 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008778/6.53, allocations: 2.024 MB / 3.952 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006383/6.53, allocations: 145.3 kB / 3.952 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008497/6.539, allocations: 4.41 MB / 3.956 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/6.54, allocations: 107.9 kB / 3.956 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001719/6.54, allocations: 69.69 kB / 3.957 GB, free: 124.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * 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 {36 108} Notification: Performance of prepare postOptimizeDAE: time 0.0002696/6.54, allocations: 123.7 kB / 3.957 GB, free: 124.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009985/6.541, allocations: 243.5 kB / 3.957 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01015/6.551, allocations: 6.469 MB / 3.963 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.13e-05/6.551, allocations: 63.42 kB / 3.963 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/6.552, allocations: 6.766 kB / 3.963 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.152e-05/6.552, allocations: 12.91 kB / 3.963 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01044/6.562, allocations: 7.569 MB / 3.971 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.858e-06/6.562, allocations: 3.562 kB / 3.971 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003872/6.562, allocations: 78.97 kB / 3.971 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01141/6.574, allocations: 4.042 MB / 3.975 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002726/6.574, allocations: 31 kB / 3.975 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01426/6.588, allocations: 7.454 MB / 3.982 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/6.588, allocations: 5.781 kB / 3.982 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01065/6.599, allocations: 5.419 MB / 3.987 GB, free: 122.4 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01008/6.609, allocations: 5.832 MB / 3.993 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008108/6.61, allocations: 481.6 kB / 3.993 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002794/6.61, allocations: 3.5 kB / 3.993 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009513/6.611, allocations: 34.03 kB / 3.994 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002261/6.612, allocations: 125.5 kB / 3.994 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001499/6.612, allocations: 69.95 kB / 3.994 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003357/6.612, allocations: 285 kB / 3.994 GB, free: 121.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006079/6.618, allocations: 1.22 MB / 3.995 GB, free: 121 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($cse6.phase,$cse6.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse36.phase,$cse36.region,$cse42.phase,$cse42.region,$cse48.phase,$cse48.region,$cse54.phase,$cse54.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 {36 153} Notification: Performance of Backend phase and start with SimCode phase: time 0.00727/6.626, allocations: 1.369 MB / 3.997 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006149/6.632, allocations: 2.978 MB / 3.999 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/6.632, allocations: 3.609 kB / 3.999 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004285/6.636, allocations: 2.282 MB / 4.002 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002986/6.639, allocations: 0.5641 MB / 4.002 GB, free: 119 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00581/6.645, allocations: 3.151 MB / 4.005 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009114/6.646, allocations: 1.402 MB / 4.007 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of SimCode: time 5.31e-07/6.646, allocations: 0 / 4.007 GB, free: 117.2 MB / 0.5105 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerStatic.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerStatic.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerStatic.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerStatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerStatic_fmu --startTime=-50 --stopTime=200 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerStatic.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerStatic.pipe 2>&1)