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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002416/0.002416, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.785/1.785, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001133/0.001133, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3222/0.3222, allocations: 48.77 MB / 364.3 MB, free: 6.875 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.239e-05/3.242e-05, allocations: 4 kB / 432.6 MB, free: 16.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1391, allocations: 60.24 MB / 492.8 MB, free: 4.289 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.892/9.031, allocations: 3.175 GB / 3.656 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003044/9.032, allocations: 95.8 kB / 3.657 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.94/10.97, allocations: 0.498 GB / 4.155 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.503e-06/10.97, allocations: 0 / 4.155 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001975/10.97, allocations: 63.5 kB / 4.155 GB, free: 25.29 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 0.02674/11, allocations: 5.57 MB / 4.16 GB, free: 22.66 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/11, allocations: 6.594 kB / 4.16 GB, free: 22.66 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002824/11, allocations: 347.6 kB / 4.16 GB, free: 22.4 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008433/11.01, allocations: 0.988 MB / 4.161 GB, free: 21.92 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01056/11.02, allocations: 2.715 MB / 4.164 GB, free: 20.16 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00301/11.02, allocations: 0.9531 MB / 4.165 GB, free: 19.5 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00243/11.03, allocations: 237.5 kB / 4.165 GB, free: 19.27 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0234/11.05, allocations: 8.722 MB / 4.174 GB, free: 10.42 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001311/11.05, allocations: 0 / 4.174 GB, free: 10.42 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002688/11.05, allocations: 88 kB / 4.174 GB, free: 10.33 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001381/11.05, allocations: 100.4 kB / 4.174 GB, free: 10.23 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03168/11.08, allocations: 11.88 MB / 4.185 GB, free: 14.34 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5195/11.6, allocations: 35.5 MB / 4.22 GB, free: 63.2 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01569/11.62, allocations: 6.646 MB / 4.227 GB, free: 63.13 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008713/11.63, allocations: 4.015 MB / 4.231 GB, free: 63.11 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2226/11.85, allocations: 120.5 MB / 4.348 GB, free: 19.61 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000107/11.85, allocations: 64 kB / 4.348 GB, free: 19.57 MB / 0.573 GB Notification: Performance of pre-optimization done (n=268): time 4.579e-06/11.85, allocations: 0 / 4.348 GB, free: 19.57 MB / 0.573 GB Notification: Performance of matching and sorting (n=280): time 0.0651/11.92, allocations: 21.21 MB / 4.369 GB, free: 18.63 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/11.92, allocations: 164.3 kB / 4.369 GB, free: 18.46 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00185/11.92, allocations: 1.02 MB / 4.37 GB, free: 18.3 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.002338/11.92, allocations: 79.36 kB / 4.37 GB, free: 18.27 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007783/11.92, allocations: 0.8329 MB / 4.371 GB, free: 18.01 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003325/11.93, allocations: 0.9617 MB / 4.372 GB, free: 17.52 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002234/11.93, allocations: 53.16 kB / 4.372 GB, free: 17.52 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0004168/11.93, allocations: 415.4 kB / 4.372 GB, free: 17.21 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009469/11.94, allocations: 4.401 MB / 4.377 GB, free: 17.2 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009168/11.95, allocations: 4.876 MB / 4.381 GB, free: 16.75 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.7412/12.69, allocations: 60.58 MB / 4.441 GB, free: 100.1 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.955e-05/12.69, allocations: 6.594 kB / 4.441 GB, free: 100.1 MB / 0.573 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.02865/12.72, allocations: 11.87 MB / 4.452 GB, free: 99.98 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000698/12.72, allocations: 2.505 MB / 4.455 GB, free: 97.43 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.037e-05/12.72, allocations: 7.344 kB / 4.455 GB, free: 97.43 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05924/12.78, allocations: 23.45 MB / 4.478 GB, free: 96.62 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03321/12.81, allocations: 5.756 MB / 4.483 GB, free: 96.38 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0177/12.83, allocations: 12.46 MB / 4.495 GB, free: 92.95 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01062/12.84, allocations: 1.65 MB / 4.497 GB, free: 92.86 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002019/12.84, allocations: 349.9 kB / 4.497 GB, free: 92.86 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/12.84, allocations: 3.219 kB / 4.497 GB, free: 92.86 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.07005/12.91, allocations: 23.7 MB / 4.52 GB, free: 92.06 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.428e-05/12.91, allocations: 5.438 kB / 4.52 GB, free: 92.06 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03797/12.95, allocations: 17.6 MB / 4.538 GB, free: 86.11 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03331/12.98, allocations: 5.928 MB / 4.543 GB, free: 81.88 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01371/13, allocations: 11.93 MB / 4.555 GB, free: 74.03 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01066/13.01, allocations: 1.649 MB / 4.557 GB, free: 72.85 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003225/13.01, allocations: 339.7 kB / 4.557 GB, free: 72.72 MB / 0.573 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.Plant.SH.p = 0.0. 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.003748/13.01, allocations: 260.4 kB / 4.557 GB, free: 72.57 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001282/13.01, allocations: 214.6 kB / 4.557 GB, free: 72.46 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03836/13.05, allocations: 25.94 MB / 4.583 GB, free: 53.79 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03703/13.09, allocations: 24.14 MB / 4.606 GB, free: 32.67 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.622e-05/13.09, allocations: 4 kB / 4.606 GB, free: 32.67 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001317/13.09, allocations: 15.98 kB / 4.606 GB, free: 32.67 MB / 0.573 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5284/13.62, allocations: 43.71 MB / 4.649 GB, free: 96.57 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-05/13.62, allocations: 3.688 kB / 4.649 GB, free: 96.57 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01056/13.63, allocations: 2.055 MB / 4.651 GB, free: 96.57 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1791/13.81, allocations: 32.06 MB / 4.682 GB, free: 96.47 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002425/13.81, allocations: 245.9 kB / 4.683 GB, free: 96.47 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03368/13.84, allocations: 26.2 MB / 4.708 GB, free: 84.29 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/13.84, allocations: 0 / 4.708 GB, free: 84.29 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04393/13.89, allocations: 21.09 MB / 4.729 GB, free: 83.09 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005306/13.89, allocations: 1.402 MB / 4.73 GB, free: 82.32 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001348/13.9, allocations: 73.25 kB / 4.73 GB, free: 82.28 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009056/13.9, allocations: 1.623 MB / 4.732 GB, free: 82.19 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001384/13.91, allocations: 424.1 kB / 4.732 GB, free: 82.15 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000769/13.91, allocations: 249.9 kB / 4.732 GB, free: 82.12 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001315/13.91, allocations: 0.7885 MB / 4.733 GB, free: 81.78 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.5e-07/13.91, allocations: 1.969 kB / 4.733 GB, free: 81.78 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01635/13.92, allocations: 3.066 MB / 4.736 GB, free: 81.59 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: 28 ($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,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse32.region3boundary,$cse33.region3boundary) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (251): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.05093/13.98, allocations: 20.33 MB / 4.756 GB, free: 72.66 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.03358/14.01, allocations: 16.59 MB / 4.772 GB, free: 57.9 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/14.01, allocations: 0 / 4.772 GB, free: 57.9 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01403/14.02, allocations: 6.764 MB / 4.779 GB, free: 51.76 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00875/14.03, allocations: 0.9035 MB / 4.78 GB, free: 51.1 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03835/14.07, allocations: 11.27 MB / 4.791 GB, free: 41.68 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003063/14.07, allocations: 2.161 MB / 4.793 GB, free: 39.96 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01938/14.09, allocations: 10.72 MB / 4.803 GB, free: 33.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007225/14.1, allocations: 1.482 MB / 4.805 GB, free: 32.51 MB / 0.573 GB Notification: Performance of SimCode: time 1.874e-06/14.1, allocations: 2.406 kB / 4.805 GB, free: 32.51 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.171/15.27, allocations: 252 MB / 5.051 GB, free: 99.42 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000157/15.27, allocations: 190.2 kB / 5.051 GB, free: 99.2 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.56/23.83, allocations: 4 kB / 5.051 GB, free: 99.19 MB / 0.5886 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)