Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.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.TestExpansionTankIdeal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal") translateModel(ThermoPower.Test.WaterComponents.TestExpansionTankIdeal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal") [: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.0009759/0.000976, allocations: 194 kB / 8.137 MB, free: 2.184 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.21/1.21, 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.0009278/0.0009278, allocations: 94.3 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.3641/0.3641, allocations: 48.75 MB / 358.4 MB, free: 53.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.825e-06/7.845e-06, allocations: 4 kB / 424.7 MB, free: 8.223 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1291, allocations: 60.27 MB / 485 MB, free: 11.82 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.085/5.215, allocations: 2.907 GB / 3.381 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001992/5.215, allocations: 82.27 kB / 3.381 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of FrontEnd: time 0.7126/5.927, allocations: 298.4 MB / 3.672 GB, free: 63.48 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.671e-05/5.928, allocations: 24 kB / 3.672 GB, free: 63.45 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: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.004591/5.932, allocations: 1.459 MB / 3.674 GB, free: 61.95 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 2.969e-05/5.932, allocations: 8.031 kB / 3.674 GB, free: 61.95 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009985/5.933, allocations: 210.7 kB / 3.674 GB, free: 61.74 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001344/5.934, allocations: 0.6836 MB / 3.675 GB, free: 61.03 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/5.935, allocations: 20 kB / 3.675 GB, free: 61.01 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/5.935, allocations: 47.91 kB / 3.675 GB, free: 60.96 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001047/5.936, allocations: 0.7848 MB / 3.676 GB, free: 60.18 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/5.937, allocations: 0.8355 MB / 3.676 GB, free: 59.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/5.937, allocations: 4 kB / 3.676 GB, free: 59.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.477e-05/5.937, allocations: 0 / 3.676 GB, free: 59.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.965e-05/5.937, allocations: 37.98 kB / 3.676 GB, free: 59.26 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003537/5.94, allocations: 3.859 MB / 3.68 GB, free: 55.1 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007948/5.941, allocations: 0.6263 MB / 3.681 GB, free: 54.47 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002922/5.942, allocations: 270.3 kB / 3.681 GB, free: 54.2 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2413/6.183, allocations: 64.03 MB / 3.744 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/6.183, allocations: 46.38 kB / 3.744 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=56): time 1.993e-06/6.183, allocations: 0 / 3.744 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=56): time 0.002261/6.185, allocations: 0.9049 MB / 3.745 GB, free: 118.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.118e-05/6.185, allocations: 59.84 kB / 3.745 GB, free: 118.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003891/6.186, allocations: 391.8 kB / 3.745 GB, free: 118.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.298e-05/6.186, allocations: 25.7 kB / 3.745 GB, free: 118 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/6.186, allocations: 295.8 kB / 3.745 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/6.186, allocations: 196.1 kB / 3.745 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.165e-05/6.186, allocations: 0 / 3.745 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.904e-05/6.186, allocations: 365.6 kB / 3.746 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002951/6.186, allocations: 252.3 kB / 3.746 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003511/6.187, allocations: 437.1 kB / 3.746 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006276/6.187, allocations: 325.4 kB / 3.747 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/6.187, allocations: 3.906 kB / 3.747 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002162/6.189, allocations: 1.187 MB / 3.748 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001395/6.19, allocations: 1.055 MB / 3.749 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/6.19, allocations: 3.969 kB / 3.749 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001787/6.191, allocations: 0.5581 MB / 3.749 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002528/6.192, allocations: 62.81 kB / 3.75 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002163/6.194, allocations: 1.677 MB / 3.751 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006196/6.195, allocations: 102.3 kB / 3.751 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.115e-05/6.195, allocations: 29.52 kB / 3.751 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.56e-06/6.195, allocations: 6.062 kB / 3.751 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00159/6.196, allocations: 0.8864 MB / 3.752 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/6.196, allocations: 2.875 kB / 3.752 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001563/6.198, allocations: 0.5213 MB / 3.753 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002567/6.198, allocations: 78.48 kB / 3.753 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/6.2, allocations: 1.605 MB / 3.754 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005413/6.201, allocations: 97.97 kB / 3.754 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.837e-05/6.201, allocations: 31.56 kB / 3.754 GB, free: 115 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (heater.fluidState[2].phase,heater.fluidState[1].phase,boiler.fluidState[2].phase,boiler.fluidState[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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 37} Notification: Performance of prepare postOptimizeDAE: time 0.0001319/6.201, allocations: 115.8 kB / 3.755 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000612/6.201, allocations: 274.6 kB / 3.755 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002259/6.204, allocations: 2.206 MB / 3.757 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/6.204, allocations: 21.55 kB / 3.757 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/6.204, allocations: 3.281 kB / 3.757 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/6.204, allocations: 3.328 kB / 3.757 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009015/6.205, allocations: 1.037 MB / 3.758 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/6.205, allocations: 3.688 kB / 3.758 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/6.206, allocations: 167.8 kB / 3.758 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005165/6.206, allocations: 141.4 kB / 3.758 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.98e-05/6.206, allocations: 10.61 kB / 3.758 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002193/6.208, allocations: 3.952 MB / 3.762 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/6.208, allocations: 3.703 kB / 3.762 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003491/6.212, allocations: 2.543 MB / 3.765 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002828/6.212, allocations: 219.8 kB / 3.765 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.167e-05/6.212, allocations: 8.203 kB / 3.765 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004856/6.213, allocations: 55.16 kB / 3.765 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.37e-05/6.213, allocations: 36.3 kB / 3.765 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.276e-05/6.213, allocations: 24.88 kB / 3.765 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0002923/6.213, allocations: 299.9 kB / 3.765 GB, free: 110.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004569/6.218, allocations: 1.193 MB / 3.766 GB, free: 110.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (boiler.p,boiler.htilde[1],heater.p,heater.htilde[1]) * Number of discrete variables: 8 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00391/6.222, allocations: 1.505 MB / 3.768 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002218/6.224, allocations: 1.649 MB / 3.77 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/6.224, allocations: 0 / 3.77 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001853/6.226, allocations: 1.285 MB / 3.771 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001083/6.227, allocations: 222.9 kB / 3.771 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002407/6.229, allocations: 1.95 MB / 3.773 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000543/6.23, allocations: 1.153 MB / 3.774 GB, free: 109 MB / 0.5105 GB Notification: Performance of SimCode: time 2.91e-07/6.23, allocations: 0 / 3.774 GB, free: 109 MB / 0.5105 GB Notification: Performance of Templates: time 0.04123/6.271, allocations: 39.78 MB / 3.813 GB, free: 108.1 MB / 0.5105 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe 2>&1)