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.002307/0.002313, allocations: 181.9 kB / 13.66 MB, free: 1.664 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.059/2.059, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001088/0.001087, allocations: 97.91 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.056e-05/3.084e-05, allocations: 0 / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09721/0.09726, allocations: 47.58 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.36/8.458, allocations: 2.832 GB / 3.193 GB, free: 78.75 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003588/8.458, allocations: 85.19 kB / 3.193 GB, free: 78.72 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.695/11.15, allocations: 497.4 MB / 3.679 GB, free: 44.43 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.956e-06/11.15, allocations: 3.312 kB / 3.679 GB, free: 44.43 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.11e-05/11.15, allocations: 20.52 kB / 3.679 GB, free: 44.42 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.007841/11.16, allocations: 1.858 MB / 3.681 GB, free: 43.35 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.686e-05/11.16, allocations: 7.562 kB / 3.681 GB, free: 43.35 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004263/11.16, allocations: 117.9 kB / 3.681 GB, free: 43.31 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003289/11.16, allocations: 248.7 kB / 3.681 GB, free: 43.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001538/11.17, allocations: 0.506 MB / 3.681 GB, free: 43.01 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.059e-05/11.17, allocations: 48.53 kB / 3.681 GB, free: 43.01 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/11.17, allocations: 61.91 kB / 3.682 GB, free: 43.01 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0031/11.17, allocations: 0.9449 MB / 3.682 GB, free: 42.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.374e-05/11.17, allocations: 4.625 kB / 3.682 GB, free: 42.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001193/11.17, allocations: 24.97 kB / 3.682 GB, free: 42.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.001e-05/11.17, allocations: 20.5 kB / 3.682 GB, free: 42.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002727/11.17, allocations: 0.7211 MB / 3.683 GB, free: 42.79 MB / 442.7 MB 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.007425/11.18, allocations: 4.211 MB / 3.687 GB, free: 39.94 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00223/11.18, allocations: 0.6284 MB / 3.688 GB, free: 39.85 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006633/11.18, allocations: 269.4 kB / 3.688 GB, free: 39.83 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1318/11.32, allocations: 38.99 MB / 3.726 GB, free: 17.56 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001937/11.32, allocations: 0.5974 MB / 3.727 GB, free: 17.41 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000659/11.32, allocations: 89 kB / 3.727 GB, free: 17.38 MB / 442.7 MB Notification: Performance of pre-optimization done (n=57): time 5.26e-06/11.32, allocations: 0 / 3.727 GB, free: 17.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=65): time 0.01478/11.33, allocations: 3.071 MB / 3.73 GB, free: 16.61 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.668e-05/11.33, allocations: 269.3 kB / 3.73 GB, free: 16.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006709/11.33, allocations: 419 kB / 3.731 GB, free: 16.19 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001063/11.33, allocations: 35.67 kB / 3.731 GB, free: 16.16 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002312/11.33, allocations: 361.5 kB / 3.731 GB, free: 15.92 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002083/11.33, allocations: 215.9 kB / 3.731 GB, free: 15.79 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.213e-05/11.33, allocations: 11.59 kB / 3.731 GB, free: 15.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.305e-05/11.33, allocations: 342.7 kB / 3.731 GB, free: 15.47 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006563/11.33, allocations: 254.4 kB / 3.732 GB, free: 15.47 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007824/11.34, allocations: 435.5 kB / 3.732 GB, free: 15.27 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007535/11.34, allocations: 357.2 kB / 3.732 GB, free: 15.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/11.34, allocations: 3.688 kB / 3.732 GB, free: 15.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002498/11.34, allocations: 0.9613 MB / 3.733 GB, free: 15.06 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001179/11.34, allocations: 1.804 MB / 3.735 GB, free: 29.17 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/11.34, allocations: 7.844 kB / 3.735 GB, free: 29.17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006582/11.35, allocations: 342.6 kB / 3.736 GB, free: 29.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/11.35, allocations: 139.8 kB / 3.736 GB, free: 29.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0017/11.35, allocations: 0.8015 MB / 3.736 GB, free: 28.63 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/11.35, allocations: 71 kB / 3.737 GB, free: 28.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001392/11.35, allocations: 49.67 kB / 3.737 GB, free: 28.62 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/11.35, allocations: 7.906 kB / 3.737 GB, free: 28.62 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002526/11.35, allocations: 0.9553 MB / 3.737 GB, free: 28.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/11.35, allocations: 11.16 kB / 3.738 GB, free: 28.53 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006382/11.36, allocations: 345.3 kB / 3.738 GB, free: 28.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/11.36, allocations: 127 kB / 3.738 GB, free: 28.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001699/11.36, allocations: 0.8023 MB / 3.739 GB, free: 27.99 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/11.36, allocations: 76.69 kB / 3.739 GB, free: 27.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/11.36, allocations: 46.52 kB / 3.739 GB, free: 27.98 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 () * 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.00042/11.36, allocations: 216.5 kB / 3.739 GB, free: 27.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002353/11.36, allocations: 71.34 kB / 3.739 GB, free: 27.77 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007825/11.37, allocations: 4.953 MB / 3.744 GB, free: 27.41 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.863e-05/11.37, allocations: 27.58 kB / 3.744 GB, free: 27.41 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/11.37, allocations: 7.312 kB / 3.744 GB, free: 27.41 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-05/11.37, allocations: 2.719 kB / 3.744 GB, free: 27.41 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01053/11.38, allocations: 6.812 MB / 3.751 GB, free: 24.66 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/11.38, allocations: 0 / 3.751 GB, free: 24.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008232/11.38, allocations: 111.9 kB / 3.751 GB, free: 24.65 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003691/11.39, allocations: 1.277 MB / 3.752 GB, free: 24.23 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000201/11.39, allocations: 26.22 kB / 3.752 GB, free: 24.22 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003064/11.39, allocations: 2.433 MB / 3.754 GB, free: 22.94 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/11.39, allocations: 3.703 kB / 3.754 GB, free: 22.94 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009501/11.4, allocations: 5.822 MB / 3.76 GB, free: 19.58 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004837/11.4, allocations: 244 kB / 3.76 GB, free: 19.34 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003126/11.4, allocations: 24.69 kB / 3.76 GB, free: 19.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/11.4, allocations: 76.61 kB / 3.76 GB, free: 19.27 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/11.4, allocations: 47.36 kB / 3.76 GB, free: 19.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/11.4, allocations: 35.2 kB / 3.761 GB, free: 19.21 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008443/11.4, allocations: 476.6 kB / 3.761 GB, free: 18.78 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.81e-07/11.4, allocations: 0 / 3.761 GB, free: 18.78 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006461/11.41, allocations: 1.373 MB / 3.762 GB, free: 17.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) * 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.01651/11.43, allocations: 4.765 MB / 3.767 GB, free: 13.26 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004482/11.43, allocations: 1.748 MB / 3.769 GB, free: 11.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.076e-06/11.43, allocations: 0 / 3.769 GB, free: 11.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002155/11.43, allocations: 0.8575 MB / 3.77 GB, free: 10.76 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002975/11.44, allocations: 321.2 kB / 3.77 GB, free: 10.53 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009105/11.45, allocations: 2.308 MB / 3.772 GB, free: 8.398 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009285/11.45, allocations: 1.097 MB / 3.773 GB, free: 7.422 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008623/11.45, allocations: 396.5 kB / 3.774 GB, free: 7.066 MB / 458.7 MB Notification: Performance of SimCode: time 1.463e-06/11.45, allocations: 0 / 3.774 GB, free: 7.066 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.212/15.66, allocations: 41.99 MB / 3.815 GB, free: 52.42 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