Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.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) 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(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler",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.002347/0.002347, allocations: 186 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.005/2.005, allocations: 205.4 MB / 222.5 MB, free: 9.148 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.001154/0.001154, allocations: 96.41 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004177/0.0004178, allocations: 11.98 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.3676, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.498/8.866, allocations: 2.832 GB / 3.198 GB, free: 95.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002918/8.866, allocations: 92.86 kB / 3.198 GB, free: 95.2 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.728/11.59, allocations: 498.9 MB / 3.686 GB, free: 44.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.555e-06/11.59, allocations: 0 / 3.686 GB, free: 44.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.247e-05/11.59, allocations: 16.88 kB / 3.686 GB, free: 44.32 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.008308/11.6, allocations: 1.932 MB / 3.687 GB, free: 43.35 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/11.6, allocations: 8.938 kB / 3.687 GB, free: 43.35 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003707/11.6, allocations: 117.3 kB / 3.688 GB, free: 43.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003321/11.61, allocations: 251.2 kB / 3.688 GB, free: 43.26 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001488/11.61, allocations: 0.5119 MB / 3.688 GB, free: 43 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.106e-05/11.61, allocations: 50.28 kB / 3.688 GB, free: 43 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/11.61, allocations: 59.75 kB / 3.688 GB, free: 43 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002943/11.61, allocations: 0.9366 MB / 3.689 GB, free: 42.79 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.3e-05/11.61, allocations: 1.969 kB / 3.689 GB, free: 42.79 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/11.61, allocations: 34.34 kB / 3.689 GB, free: 42.79 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.225e-05/11.61, allocations: 11.84 kB / 3.689 GB, free: 42.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002758/11.61, allocations: 0.7469 MB / 3.69 GB, free: 42.79 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.006689/11.62, allocations: 4.22 MB / 3.694 GB, free: 39.92 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002874/11.62, allocations: 0.6627 MB / 3.695 GB, free: 39.85 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1334/11.76, allocations: 38.87 MB / 3.733 GB, free: 33.96 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002283/11.76, allocations: 0.5825 MB / 3.733 GB, free: 33.82 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007027/11.76, allocations: 78.92 kB / 3.733 GB, free: 33.79 MB / 458.7 MB Notification: Performance of pre-optimization done (n=57): time 4.88e-06/11.76, allocations: 0 / 3.733 GB, free: 33.79 MB / 458.7 MB Notification: Performance of matching and sorting (n=65): time 0.01794/11.78, allocations: 3.477 MB / 3.737 GB, free: 32.85 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001858/11.78, allocations: 275.3 kB / 3.737 GB, free: 32.53 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007296/11.78, allocations: 423.1 kB / 3.738 GB, free: 32.41 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001678/11.78, allocations: 43.39 kB / 3.738 GB, free: 32.38 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002794/11.78, allocations: 360.6 kB / 3.738 GB, free: 32.15 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002387/11.78, allocations: 205.3 kB / 3.738 GB, free: 32.02 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.547e-05/11.78, allocations: 13.12 kB / 3.738 GB, free: 32.02 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/11.78, allocations: 335.5 kB / 3.738 GB, free: 31.71 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009325/11.78, allocations: 289.7 kB / 3.739 GB, free: 31.7 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/11.78, allocations: 478.3 kB / 3.739 GB, free: 31.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/11.78, allocations: 390.5 kB / 3.74 GB, free: 31.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/11.78, allocations: 0 / 3.74 GB, free: 31.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003133/11.79, allocations: 1.041 MB / 3.741 GB, free: 31.29 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009756/11.79, allocations: 1.806 MB / 3.742 GB, free: 29.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/11.79, allocations: 4.75 kB / 3.742 GB, free: 29.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006958/11.79, allocations: 360.9 kB / 3.743 GB, free: 29.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/11.8, allocations: 139.5 kB / 3.743 GB, free: 29.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/11.8, allocations: 0.7984 MB / 3.744 GB, free: 28.85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/11.8, allocations: 72.06 kB / 3.744 GB, free: 28.85 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001483/11.8, allocations: 43.78 kB / 3.744 GB, free: 28.85 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/11.8, allocations: 3.969 kB / 3.744 GB, free: 28.85 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002991/11.8, allocations: 1.004 MB / 3.745 GB, free: 28.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/11.8, allocations: 6.438 kB / 3.745 GB, free: 28.76 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00678/11.81, allocations: 359.1 kB / 3.745 GB, free: 28.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009818/11.81, allocations: 133.2 kB / 3.745 GB, free: 28.74 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001823/11.81, allocations: 0.8024 MB / 3.746 GB, free: 28.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/11.81, allocations: 60.36 kB / 3.746 GB, free: 28.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00016/11.81, allocations: 48.67 kB / 3.746 GB, free: 28.21 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 19 ($whenCondition1,$whenCondition2,pump.medium.phase,q_F_Tab.a,q_F_Tab.b,q_F_Tab.last,$PRE.q_F_Tab.nextEvent,q_F_Tab.nextEvent,q_F_Tab.nextEventScaled,Y_Valve_Tab.a,Y_Valve_Tab.b,Y_Valve_Tab.last,$PRE.Y_Valve_Tab.nextEvent,Y_Valve_Tab.nextEvent,Y_Valve_Tab.nextEventScaled,SteamValve.state_b.phase,SteamValve.state_a.phase,sink.state.phase,sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 2 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0007871/11.81, allocations: 358.5 kB / 3.746 GB, free: 27.96 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002876/11.81, allocations: 71.62 kB / 3.746 GB, free: 27.92 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008542/11.82, allocations: 4.789 MB / 3.751 GB, free: 27.58 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.882e-05/11.82, allocations: 31.06 kB / 3.751 GB, free: 27.58 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/11.82, allocations: 0 / 3.751 GB, free: 27.58 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-05/11.82, allocations: 3.516 kB / 3.751 GB, free: 27.58 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01132/11.83, allocations: 6.59 MB / 3.758 GB, free: 26.82 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.669e-05/11.83, allocations: 3.406 kB / 3.758 GB, free: 26.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008205/11.84, allocations: 105.8 kB / 3.758 GB, free: 26.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003501/11.84, allocations: 1.077 MB / 3.759 GB, free: 26.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002014/11.84, allocations: 28.95 kB / 3.759 GB, free: 26.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00309/11.84, allocations: 2.363 MB / 3.761 GB, free: 26.28 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/11.84, allocations: 0 / 3.761 GB, free: 26.28 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01017/11.85, allocations: 5.551 MB / 3.767 GB, free: 25.89 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005142/11.85, allocations: 241.5 kB / 3.767 GB, free: 25.71 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003358/11.85, allocations: 22.42 kB / 3.767 GB, free: 25.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/11.85, allocations: 70.56 kB / 3.767 GB, free: 25.71 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/11.86, allocations: 49.84 kB / 3.767 GB, free: 25.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/11.86, allocations: 35.95 kB / 3.767 GB, free: 25.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008714/11.86, allocations: 481.8 kB / 3.767 GB, free: 25.61 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.11e-07/11.86, allocations: 0 / 3.767 GB, free: 25.61 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007367/11.86, allocations: 1.374 MB / 3.769 GB, free: 25.44 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (evaporator.p,evaporator.V_l,controller.x) * Number of discrete variables: 27 ($cse1.region3boundary,$cse2.region3boundary,$cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$whenCondition1,$whenCondition2,pump.medium.phase,q_F_Tab.a,q_F_Tab.b,q_F_Tab.last,q_F_Tab.nextEvent,q_F_Tab.nextEventScaled,Y_Valve_Tab.a,Y_Valve_Tab.b,Y_Valve_Tab.last,Y_Valve_Tab.nextEvent,Y_Valve_Tab.nextEventScaled) * Number of discrete states: 12 (Y_Valve_Tab.nextEvent,Y_Valve_Tab.last,Y_Valve_Tab.nextEventScaled,Y_Valve_Tab.b,Y_Valve_Tab.a,$whenCondition2,q_F_Tab.nextEvent,q_F_Tab.last,q_F_Tab.nextEventScaled,q_F_Tab.b,q_F_Tab.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 8 * 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 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01806/11.88, allocations: 4.871 MB / 3.773 GB, free: 24.09 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005326/11.89, allocations: 1.842 MB / 3.775 GB, free: 23.79 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/11.89, allocations: 0 / 3.775 GB, free: 23.79 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00212/11.89, allocations: 0.9029 MB / 3.776 GB, free: 23.66 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002935/11.89, allocations: 297.1 kB / 3.776 GB, free: 23.64 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01723/11.91, allocations: 8.817 MB / 3.785 GB, free: 18.14 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007855/11.91, allocations: 1.102 MB / 3.786 GB, free: 17.41 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007495/11.91, allocations: 393.3 kB / 3.787 GB, free: 17.11 MB / 458.7 MB Notification: Performance of SimCode: time 1.483e-06/11.91, allocations: 0 / 3.787 GB, free: 17.11 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.157/16.07, allocations: 41.71 MB / 3.827 GB, free: 58.18 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler_fmu --startTime=0 --stopTime=5400 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler_res.mat does not exist to compare? outputFormat=mat