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: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestExpansionTankIdeal,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestExpansionTankIdeal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestExpansionTankIdeal,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestExpansionTankIdeal",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.001108/0.001108, allocations: 184.5 kB / 8.138 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.173/1.173, allocations: 205.2 MB / 213.7 MB, free: 13.93 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.0009072/0.0009072, allocations: 94.89 kB / 261.8 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3308/0.3308, allocations: 48.76 MB / 358.5 MB, free: 53.45 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1154/0.4462, allocations: 66.36 MB / 424.8 MB, free: 8.191 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.5493, allocations: 60.25 MB / 485.1 MB, free: 11.81 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.464/5.014, allocations: 2.907 GB / 3.381 GB, free: 134 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000194/5.014, allocations: 78.8 kB / 3.381 GB, free: 134 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.7138/5.728, allocations: 299.8 MB / 3.674 GB, free: 61.8 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/5.728, allocations: 8 kB / 3.674 GB, free: 61.79 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001058/5.729, allocations: 214.7 kB / 3.674 GB, free: 61.58 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001347/5.73, allocations: 0.6851 MB / 3.675 GB, free: 60.86 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/5.73, allocations: 24 kB / 3.675 GB, free: 60.84 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.575e-05/5.73, allocations: 43.91 kB / 3.675 GB, free: 60.8 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001054/5.731, allocations: 0.7809 MB / 3.676 GB, free: 60.02 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/5.732, allocations: 0.8434 MB / 3.676 GB, free: 59.13 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/5.732, allocations: 0 / 3.676 GB, free: 59.13 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.207e-05/5.733, allocations: 0 / 3.676 GB, free: 59.13 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.058e-05/5.733, allocations: 33.98 kB / 3.677 GB, free: 59.1 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003601/5.736, allocations: 3.877 MB / 3.68 GB, free: 54.93 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007996/5.737, allocations: 0.6188 MB / 3.681 GB, free: 54.3 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002942/5.737, allocations: 274.2 kB / 3.681 GB, free: 54.04 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2518/5.989, allocations: 64.03 MB / 3.744 GB, free: 118.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/5.989, allocations: 40.66 kB / 3.744 GB, free: 118.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=56): time 3.547e-06/5.989, allocations: 0 / 3.744 GB, free: 118.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=56): time 0.002533/5.992, allocations: 0.9067 MB / 3.745 GB, free: 118 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.334e-05/5.992, allocations: 67.22 kB / 3.745 GB, free: 118 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004861/5.992, allocations: 391.5 kB / 3.745 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.343e-05/5.992, allocations: 25.7 kB / 3.745 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/5.993, allocations: 289.7 kB / 3.745 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/5.993, allocations: 193.5 kB / 3.746 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-05/5.993, allocations: 7.109 kB / 3.746 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.08e-05/5.993, allocations: 370.7 kB / 3.746 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003299/5.993, allocations: 247.9 kB / 3.746 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003814/5.994, allocations: 434.6 kB / 3.747 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006861/5.994, allocations: 332.5 kB / 3.747 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/5.994, allocations: 0 / 3.747 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002348/5.997, allocations: 1.189 MB / 3.748 GB, free: 117 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001804/5.997, allocations: 1.05 MB / 3.749 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/5.997, allocations: 3.656 kB / 3.749 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001861/5.999, allocations: 0.5574 MB / 3.75 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002614/5.999, allocations: 72.91 kB / 3.75 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002347/6.001, allocations: 1.663 MB / 3.751 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007194/6.002, allocations: 103.9 kB / 3.751 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.766e-05/6.002, allocations: 27.08 kB / 3.751 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.802e-06/6.002, allocations: 0 / 3.751 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001697/6.004, allocations: 0.8902 MB / 3.752 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/6.004, allocations: 7.844 kB / 3.752 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001651/6.005, allocations: 0.5182 MB / 3.753 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002844/6.006, allocations: 74.64 kB / 3.753 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002165/6.008, allocations: 1.606 MB / 3.754 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006847/6.009, allocations: 96.94 kB / 3.755 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.897e-05/6.009, allocations: 29.42 kB / 3.755 GB, free: 114.8 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.0001958/6.009, allocations: 116.1 kB / 3.755 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007063/6.01, allocations: 271.5 kB / 3.755 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002527/6.012, allocations: 2.208 MB / 3.757 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/6.012, allocations: 19.02 kB / 3.757 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/6.012, allocations: 3.688 kB / 3.757 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/6.012, allocations: 3.422 kB / 3.757 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/6.013, allocations: 1.04 MB / 3.758 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/6.013, allocations: 0 / 3.758 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/6.015, allocations: 178.2 kB / 3.758 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005266/6.015, allocations: 133.8 kB / 3.758 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.076e-05/6.015, allocations: 14.89 kB / 3.758 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002311/6.017, allocations: 3.95 MB / 3.762 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/6.017, allocations: 0 / 3.762 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003704/6.021, allocations: 2.546 MB / 3.765 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004435/6.026, allocations: 3.575 MB / 3.768 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003189/6.026, allocations: 216.1 kB / 3.768 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/6.026, allocations: 6.906 kB / 3.768 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005326/6.027, allocations: 58.59 kB / 3.769 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.14e-05/6.027, allocations: 38.31 kB / 3.769 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.517e-05/6.027, allocations: 24.98 kB / 3.769 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003038/6.027, allocations: 298.1 kB / 3.769 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005945/6.033, allocations: 1.372 MB / 3.77 GB, free: 109.6 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.006567/6.04, allocations: 1.498 MB / 3.772 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00241/6.042, allocations: 1.646 MB / 3.773 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/6.042, allocations: 0 / 3.773 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001949/6.044, allocations: 1.282 MB / 3.775 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/6.045, allocations: 234.1 kB / 3.775 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002817/6.048, allocations: 1.952 MB / 3.777 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006445/6.049, allocations: 1.166 MB / 3.778 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of SimCode: time 2.91e-07/6.049, allocations: 0 / 3.778 GB, free: 108.2 MB / 0.5105 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestExpansionTankIdeal_fmu --startTime=0 --stopTime=500 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestExpansionTankIdeal.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe 2>&1)