Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501.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.Examples.CISE.Simulators.CISESim2States120501,fileNamePrefix="ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim2States120501",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Examples.CISE.Simulators.CISESim2States120501,fileNamePrefix="ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim2States120501",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.0009255/0.0009255, allocations: 185.6 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.024/1.024, 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.0008245/0.0008245, allocations: 91.38 kB / 261.7 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3015/0.3015, allocations: 48.74 MB / 358.4 MB, free: 53.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1006/0.4021, allocations: 66.37 MB / 424.8 MB, free: 8.105 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09941/0.5016, allocations: 60.26 MB / 485.1 MB, free: 11.71 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.833/5.335, allocations: 3.174 GB / 3.648 GB, free: 50.67 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001797/5.335, allocations: 95.48 kB / 3.648 GB, free: 50.58 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: 566 * Number of variables: 566 Notification: Performance of Generate backend data structure: time 1.528/6.863, allocations: 0.5007 GB / 4.149 GB, free: 40.5 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/6.863, allocations: 10.12 kB / 4.149 GB, free: 40.5 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007558/6.871, allocations: 1.018 MB / 4.15 GB, free: 40.35 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008746/6.879, allocations: 2.74 MB / 4.153 GB, free: 39.93 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002385/6.882, allocations: 0.8789 MB / 4.153 GB, free: 39.7 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001444/6.883, allocations: 143.8 kB / 4.154 GB, free: 39.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01424/6.897, allocations: 9.756 MB / 4.163 GB, free: 39.68 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008657/6.906, allocations: 6.269 MB / 4.169 GB, free: 39.34 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.505e-05/6.906, allocations: 3.281 kB / 4.169 GB, free: 39.34 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005463/6.907, allocations: 3.969 kB / 4.169 GB, free: 39.34 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.548e-05/6.907, allocations: 102.9 kB / 4.169 GB, free: 39.33 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04494/6.952, allocations: 36.49 MB / 4.205 GB, free: 23.09 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005399/6.957, allocations: 4.36 MB / 4.209 GB, free: 23.07 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004598/6.962, allocations: 4.058 MB / 4.213 GB, free: 23.05 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3957/7.357, allocations: 122.9 MB / 4.333 GB, free: 121.1 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.833e-05/7.358, allocations: 60.66 kB / 4.333 GB, free: 121 MB / 0.573 GB Notification: Performance of pre-optimization done (n=268): time 5.25e-06/7.358, allocations: 0 / 4.333 GB, free: 121 MB / 0.573 GB Notification: Performance of matching and sorting (n=280): time 0.04636/7.404, allocations: 18.98 MB / 4.352 GB, free: 120.3 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.665e-05/7.404, allocations: 156.7 kB / 4.352 GB, free: 120.1 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001207/7.405, allocations: 0.9244 MB / 4.353 GB, free: 120 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004958/7.406, allocations: 25.7 kB / 4.353 GB, free: 119.9 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002493/7.406, allocations: 0.6115 MB / 4.353 GB, free: 119.7 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009881/7.407, allocations: 0.9329 MB / 4.354 GB, free: 119.2 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004743/7.407, allocations: 0 / 4.354 GB, free: 119.2 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001137/7.408, allocations: 405 kB / 4.355 GB, free: 118.9 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004618/7.412, allocations: 3.842 MB / 4.359 GB, free: 118.8 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004771/7.417, allocations: 4.287 MB / 4.363 GB, free: 118.4 MB / 0.573 GB Notification: The following equation is consistent and got removed from the initialization problem: $DER.Plant.SH.p = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.08352/7.501, allocations: 30.31 MB / 4.392 GB, free: 117.1 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/7.501, allocations: 0 / 4.392 GB, free: 117.1 MB / 0.573 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.02086/7.521, allocations: 11.06 MB / 4.403 GB, free: 116.8 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004143/7.522, allocations: 2.497 MB / 4.406 GB, free: 114.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/7.522, allocations: 7.25 kB / 4.406 GB, free: 114.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05363/7.576, allocations: 21.18 MB / 4.426 GB, free: 112.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03357/7.609, allocations: 6.152 MB / 4.432 GB, free: 111.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01736/7.627, allocations: 12.22 MB / 4.444 GB, free: 108.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00902/7.636, allocations: 1.707 MB / 4.446 GB, free: 108.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008837/7.636, allocations: 239 kB / 4.446 GB, free: 108.3 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 9.347e-06/7.637, allocations: 3.219 kB / 4.446 GB, free: 108.3 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06993/7.706, allocations: 22.7 MB / 4.468 GB, free: 103.1 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-05/7.707, allocations: 4 kB / 4.468 GB, free: 103.1 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03315/7.74, allocations: 15.89 MB / 4.484 GB, free: 92.32 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03318/7.773, allocations: 6.298 MB / 4.49 GB, free: 87.64 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01257/7.785, allocations: 11.52 MB / 4.501 GB, free: 78.04 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009042/7.795, allocations: 1.703 MB / 4.503 GB, free: 76.72 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001095/7.796, allocations: 231.2 kB / 4.503 GB, free: 76.6 MB / 0.573 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.Plant.SH.p = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Plant.ValveOpening:VARIABLE() type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 12 (Plant.Pipe2Valve.fluidState[2].phase,Plant.Pipe2Valve.fluidState[1].phase,Plant.SH.fluidState[5].phase,Plant.SH.fluidState[4].phase,Plant.SH.fluidState[3].phase,Plant.SH.fluidState[2].phase,Plant.SH.fluidState[1].phase,Plant.SH.heatTransfer.dew.phase,Plant.SH.heatTransfer.bubble.phase,Plant.Pipe2SH.fluidState[2].phase,Plant.Pipe2SH.fluidState[1].phase,Plant.Valve.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (234): * Single equations (assignments): 228 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 3,1 8,5 70,2 13} Notification: Performance of prepare postOptimizeDAE: time 0.001502/7.797, allocations: 161.5 kB / 4.503 GB, free: 76.46 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002633/7.8, allocations: 0.8317 MB / 4.504 GB, free: 75.88 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02953/7.829, allocations: 17.22 MB / 4.521 GB, free: 61.49 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02723/7.857, allocations: 15.43 MB / 4.536 GB, free: 48.11 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.737e-05/7.857, allocations: 4 kB / 4.536 GB, free: 48.1 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.031e-05/7.857, allocations: 17.48 kB / 4.536 GB, free: 48.1 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2329/8.09, allocations: 29.97 MB / 4.565 GB, free: 129.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/8.09, allocations: 1.875 kB / 4.565 GB, free: 129.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008506/8.098, allocations: 1.997 MB / 4.567 GB, free: 129.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0219/8.12, allocations: 7.838 MB / 4.575 GB, free: 129.4 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001682/8.122, allocations: 175.4 kB / 4.575 GB, free: 129.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03052/8.152, allocations: 24.04 MB / 4.598 GB, free: 117.8 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/8.152, allocations: 1.875 kB / 4.598 GB, free: 117.8 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0382/8.191, allocations: 20.6 MB / 4.619 GB, free: 117.1 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04314/8.234, allocations: 28.22 MB / 4.646 GB, free: 114.3 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002598/8.236, allocations: 1.399 MB / 4.647 GB, free: 113.5 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008673/8.237, allocations: 18.3 kB / 4.648 GB, free: 113.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007105/8.244, allocations: 1.673 MB / 4.649 GB, free: 113.5 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007225/8.245, allocations: 329.2 kB / 4.649 GB, free: 113.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006003/8.246, allocations: 206 kB / 4.65 GB, free: 113.4 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.000865/8.247, allocations: 0.7034 MB / 4.65 GB, free: 113.1 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01165/8.258, allocations: 3.165 MB / 4.653 GB, free: 112.7 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (Plant.Pipe2SH.p,Plant.Pipe2SH.htilde[1],Plant.SH.htilde[1],Plant.SH.htilde[2],Plant.SH.htilde[3],Plant.SH.htilde[4],Plant.Pipe2Valve.p,Plant.Pipe2Valve.htilde[1],Plant.Pipe2SHWall.Tvol[1],Plant.SHWall.Tvol[1],Plant.SHWall.Tvol[2],Plant.SHWall.Tvol[3],Plant.SHWall.Tvol[4],Plant.Pipe2ValveWall.Tvol[1],Plant.DrumBoiler.Vld,Plant.DrumBoiler.p) * Number of discrete variables: 36 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse24.phase,$cse24.region,$cse29.phase,$cse29.region,$cse36.region3boundary,$cse37.region3boundary) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (255): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 22 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(1,100.0%) 1,(6,72.2%) 13,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 3 {2 7,1 11,1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.007432/8.266, allocations: 2.155 MB / 4.656 GB, free: 112.6 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02023/8.286, allocations: 16.1 MB / 4.671 GB, free: 105.6 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/8.286, allocations: 3.531 kB / 4.671 GB, free: 105.6 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01013/8.296, allocations: 8.052 MB / 4.679 GB, free: 101.6 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004034/8.3, allocations: 0.7812 MB / 4.68 GB, free: 101.4 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01966/8.32, allocations: 11.57 MB / 4.691 GB, free: 97.58 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004064/8.324, allocations: 2.778 MB / 4.694 GB, free: 96.62 MB / 0.573 GB Notification: Performance of SimCode: time 1.603e-06/8.324, allocations: 0 / 4.694 GB, free: 96.62 MB / 0.573 GB (rm -f ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501.pipe ; mkfifo ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501.pipe >> ../files/ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim2States120501_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-07 ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim2States120501.fmu > ThermoPower_ThermoPower.Examples.CISE.Simulators.CISESim2States120501.pipe 2>&1)