Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.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.TestCoolingTowerClosed,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerClosed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestCoolingTowerClosed,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerClosed",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.0009649/0.0009649, allocations: 183.4 kB / 8.135 MB, free: 2.223 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.162/1.162, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0007949/0.0007949, allocations: 85.34 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.354/0.354, allocations: 48.75 MB / 358.4 MB, free: 53.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1112/0.4653, allocations: 66.37 MB / 424.8 MB, free: 8.117 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.5793, allocations: 60.26 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.152/5.731, allocations: 3.313 GB / 3.786 GB, free: 133.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001883/5.731, allocations: 76.62 kB / 3.786 GB, free: 133.3 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: 419 * Number of variables: 419 Notification: Performance of Generate backend data structure: time 0.7963/6.528, allocations: 337.5 MB / 4.116 GB, free: 9.762 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/6.528, allocations: 11.98 kB / 4.116 GB, free: 9.75 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002945/6.531, allocations: 449.4 kB / 4.116 GB, free: 9.309 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00321/6.534, allocations: 1.237 MB / 4.118 GB, free: 8.047 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.408e-05/6.534, allocations: 48 kB / 4.118 GB, free: 8 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000544/6.534, allocations: 103.9 kB / 4.118 GB, free: 7.898 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003102/6.538, allocations: 2.411 MB / 4.12 GB, free: 5.484 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002709/6.54, allocations: 2.293 MB / 4.122 GB, free: 3.078 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.249e-05/6.54, allocations: 0 / 4.122 GB, free: 3.078 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001634/6.541, allocations: 7.984 kB / 4.122 GB, free: 3.07 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-05/6.541, allocations: 83.12 kB / 4.122 GB, free: 2.988 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3072/6.848, allocations: 95.61 MB / 4.216 GB, free: 45.96 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002102/6.85, allocations: 1.526 MB / 4.217 GB, free: 45.93 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00126/6.851, allocations: 1.084 MB / 4.218 GB, free: 45.91 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3698/7.221, allocations: 133.4 MB / 4.349 GB, free: 100.2 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.725e-05/7.221, allocations: 57.47 kB / 4.349 GB, free: 100.2 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=206): time 3.356e-06/7.221, allocations: 3.688 kB / 4.349 GB, free: 100.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=207): time 0.01474/7.236, allocations: 6.371 MB / 4.355 GB, free: 99.57 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.82e-05/7.236, allocations: 82.84 kB / 4.355 GB, free: 99.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006401/7.237, allocations: 0.5531 MB / 4.355 GB, free: 99.38 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001216/7.237, allocations: 29.52 kB / 4.356 GB, free: 99.34 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/7.237, allocations: 451.4 kB / 4.356 GB, free: 99.12 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004197/7.237, allocations: 0.6856 MB / 4.357 GB, free: 98.76 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/7.237, allocations: 0 / 4.357 GB, free: 98.76 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001207/7.238, allocations: 436.9 kB / 4.357 GB, free: 98.45 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/7.239, allocations: 0.9595 MB / 4.358 GB, free: 98.45 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001246/7.24, allocations: 1.217 MB / 4.359 GB, free: 98.21 MB / 0.5417 GB Notification: The following equation is consistent and got removed from the initialization problem: $DER.cooledFlow.p = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.01573/7.256, allocations: 4.065 MB / 4.363 GB, free: 97.96 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/7.256, allocations: 3.969 kB / 4.363 GB, free: 97.96 MB / 0.5417 GB Notification: Performance of matching and sorting (n=245) (initialization): time 0.008438/7.264, allocations: 4.083 MB / 4.367 GB, free: 97.8 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002617/7.264, allocations: 1.663 MB / 4.369 GB, free: 96.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/7.264, allocations: 7.094 kB / 4.369 GB, free: 96.06 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009552/7.274, allocations: 2.792 MB / 4.371 GB, free: 95.95 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006702/7.275, allocations: 169.1 kB / 4.372 GB, free: 95.95 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0097/7.284, allocations: 5.698 MB / 4.377 GB, free: 95.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001539/7.286, allocations: 124 kB / 4.377 GB, free: 95.26 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001837/7.286, allocations: 82.92 kB / 4.377 GB, free: 95.26 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/7.286, allocations: 4.688 kB / 4.377 GB, free: 95.26 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006505/7.293, allocations: 3.515 MB / 4.381 GB, free: 95.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/7.293, allocations: 9.344 kB / 4.381 GB, free: 95.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009566/7.302, allocations: 2.821 MB / 4.384 GB, free: 95.09 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007327/7.303, allocations: 159.3 kB / 4.384 GB, free: 95.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009896/7.313, allocations: 5.713 MB / 4.389 GB, free: 94.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/7.314, allocations: 104.7 kB / 4.389 GB, free: 94.41 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001771/7.315, allocations: 89.08 kB / 4.39 GB, free: 94.41 MB / 0.5417 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.cooledFlow.p = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 (cooledFlow.fluidState[6].phase,cooledFlow.fluidState[5].phase,cooledFlow.fluidState[4].phase,cooledFlow.fluidState[3].phase,cooledFlow.fluidState[2].phase,cooledFlow.fluidState[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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 {30 141} Notification: Performance of prepare postOptimizeDAE: time 0.000367/7.315, allocations: 139 kB / 4.39 GB, free: 94.3 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001472/7.316, allocations: 0.5119 MB / 4.39 GB, free: 94.24 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01038/7.327, allocations: 8.875 MB / 4.399 GB, free: 93.59 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.063e-05/7.327, allocations: 83.17 kB / 4.399 GB, free: 93.59 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/7.327, allocations: 7.906 kB / 4.399 GB, free: 93.59 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-05/7.327, allocations: 14.95 kB / 4.399 GB, free: 93.59 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01302/7.34, allocations: 10.43 MB / 4.409 GB, free: 92.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/7.34, allocations: 4.219 kB / 4.409 GB, free: 92.88 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/7.341, allocations: 216.4 kB / 4.409 GB, free: 92.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007728/7.349, allocations: 3.07 MB / 4.412 GB, free: 92.69 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002109/7.349, allocations: 50.97 kB / 4.412 GB, free: 92.69 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01205/7.361, allocations: 12.66 MB / 4.425 GB, free: 85.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/7.361, allocations: 5.875 kB / 4.425 GB, free: 85.52 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01368/7.375, allocations: 9.421 MB / 4.434 GB, free: 84.75 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01656/7.391, allocations: 12.33 MB / 4.446 GB, free: 81.17 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001054/7.393, allocations: 0.5295 MB / 4.446 GB, free: 80.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000286/7.393, allocations: 13.72 kB / 4.446 GB, free: 80.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/7.394, allocations: 82.23 kB / 4.447 GB, free: 80.85 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002495/7.394, allocations: 141.2 kB / 4.447 GB, free: 80.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001596/7.394, allocations: 77.88 kB / 4.447 GB, free: 80.82 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0005415/7.395, allocations: 461.9 kB / 4.447 GB, free: 80.61 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007527/7.403, allocations: 2.186 MB / 4.449 GB, free: 80.25 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (cooledFlow.htilde[1],cooledFlow.htilde[2],cooledFlow.htilde[3],cooledFlow.htilde[4],cooledFlow.htilde[5],tubeWalls.Tvol[1],tubeWalls.Tvol[2],tubeWalls.Tvol[3],tubeWalls.Tvol[4],tubeWalls.Tvol[5]) * Number of discrete variables: 34 ($cse5.phase,$cse5.region,$cse11.phase,$cse11.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse29.phase,$cse29.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.phase,$cse39.region,$cse40.phase,$cse40.region,$cse41.phase,$cse41.region,$cse42.phase,$cse42.region,$cse43.phase,$cse43.region,$cse44.phase,$cse44.region,$cse45.phase,$cse45.region,$cse46.phase,$cse46.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {1 5,20 98} Notification: Performance of Backend phase and start with SimCode phase: time 0.006044/7.409, allocations: 1.912 MB / 4.451 GB, free: 79.93 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009769/7.418, allocations: 5.899 MB / 4.457 GB, free: 75.39 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/7.418, allocations: 0.625 kB / 4.457 GB, free: 75.39 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004017/7.422, allocations: 3.717 MB / 4.461 GB, free: 71.93 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00299/7.425, allocations: 0.6166 MB / 4.461 GB, free: 71.5 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00716/7.433, allocations: 5.653 MB / 4.467 GB, free: 66.55 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001288/7.434, allocations: 1.936 MB / 4.469 GB, free: 64.95 MB / 0.5417 GB Notification: Performance of SimCode: time 6.11e-07/7.434, allocations: 3.188 kB / 4.469 GB, free: 64.95 MB / 0.5417 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerClosed_fmu --startTime=-50 --stopTime=200 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestCoolingTowerClosed.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestCoolingTowerClosed.pipe 2>&1)