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.001454/0.001454, allocations: 178 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.011/2.011, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001066/0.001066, allocations: 86.52 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.533e-05/2.533e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.3317, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.864/8.195, allocations: 2.832 GB / 3.186 GB, free: 52.71 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/8.196, allocations: 80.97 kB / 3.186 GB, free: 52.68 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.417/10.61, allocations: 492.7 MB / 3.667 GB, free: 37.29 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.783e-06/10.61, allocations: 0 / 3.667 GB, free: 37.29 MB / 427.1 MB Notification: Performance of Transformations before backend: time 5.093e-05/10.61, allocations: 14.53 kB / 3.667 GB, free: 37.29 MB / 427.1 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.007096/10.62, allocations: 1.866 MB / 3.669 GB, free: 36.11 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/10.62, allocations: 7.625 kB / 3.669 GB, free: 36.11 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002943/10.62, allocations: 247.9 kB / 3.669 GB, free: 36.05 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001247/10.62, allocations: 0.5054 MB / 3.669 GB, free: 35.7 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.007e-05/10.62, allocations: 20.31 kB / 3.67 GB, free: 35.7 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/10.62, allocations: 37.94 kB / 3.67 GB, free: 35.7 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001252/10.63, allocations: 0.4922 MB / 3.67 GB, free: 35.53 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/10.63, allocations: 0.6732 MB / 3.671 GB, free: 35.16 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/10.63, allocations: 7.359 kB / 3.671 GB, free: 35.16 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.805e-05/10.63, allocations: 3.938 kB / 3.671 GB, free: 35.16 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.744e-05/10.63, allocations: 18.94 kB / 3.671 GB, free: 35.16 MB / 427.1 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.5139/11.14, allocations: 66.43 MB / 3.736 GB, free: 51.95 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008765/11.14, allocations: 361.7 kB / 3.736 GB, free: 51.92 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004372/11.14, allocations: 214.5 kB / 3.736 GB, free: 51.91 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08188/11.22, allocations: 23.79 MB / 3.759 GB, free: 39.54 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007994/11.23, allocations: 361.2 kB / 3.76 GB, free: 39.41 MB / 443.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006196/11.23, allocations: 67.14 kB / 3.76 GB, free: 39.41 MB / 443.1 MB Notification: Performance of pre-optimization done (n=50): time 2.735e-06/11.23, allocations: 0 / 3.76 GB, free: 39.41 MB / 443.1 MB Notification: Performance of matching and sorting (n=58): time 0.01354/11.24, allocations: 2.377 MB / 3.762 GB, free: 39.06 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.593e-05/11.24, allocations: 217.9 kB / 3.762 GB, free: 38.81 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005494/11.24, allocations: 379.5 kB / 3.763 GB, free: 38.7 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 9.556e-05/11.24, allocations: 25.7 kB / 3.763 GB, free: 38.66 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002598/11.24, allocations: 393.4 kB / 3.763 GB, free: 38.44 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/11.24, allocations: 185 kB / 3.763 GB, free: 38.35 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.958e-05/11.24, allocations: 4.438 kB / 3.763 GB, free: 38.35 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 8.074e-05/11.24, allocations: 341.2 kB / 3.764 GB, free: 38.04 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005934/11.24, allocations: 236.2 kB / 3.764 GB, free: 38.04 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007192/11.24, allocations: 415.9 kB / 3.764 GB, free: 37.84 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002292/11.24, allocations: 382.8 kB / 3.765 GB, free: 37.83 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/11.24, allocations: 2.125 kB / 3.765 GB, free: 37.83 MB / 443.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003946/11.25, allocations: 0.9283 MB / 3.765 GB, free: 37.77 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004137/11.25, allocations: 1.812 MB / 3.767 GB, free: 35.88 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/11.25, allocations: 7.594 kB / 3.767 GB, free: 35.88 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001491/11.25, allocations: 248.1 kB / 3.767 GB, free: 35.87 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009883/11.25, allocations: 136.2 kB / 3.768 GB, free: 35.87 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002357/11.25, allocations: 0.856 MB / 3.768 GB, free: 35.34 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/11.26, allocations: 70 kB / 3.769 GB, free: 35.33 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001572/11.26, allocations: 46.38 kB / 3.769 GB, free: 35.33 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/11.26, allocations: 7.594 kB / 3.769 GB, free: 35.33 MB / 443.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004072/11.26, allocations: 0.9174 MB / 3.769 GB, free: 35.3 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/11.26, allocations: 3.75 kB / 3.769 GB, free: 35.3 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001391/11.26, allocations: 248.5 kB / 3.77 GB, free: 35.29 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009081/11.26, allocations: 126.8 kB / 3.77 GB, free: 35.29 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/11.26, allocations: 0.8547 MB / 3.771 GB, free: 34.77 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/11.27, allocations: 56.12 kB / 3.771 GB, free: 34.76 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/11.27, allocations: 47.92 kB / 3.771 GB, free: 34.76 MB / 443.1 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.000366/11.27, allocations: 195.6 kB / 3.771 GB, free: 34.59 MB / 443.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003716/11.27, allocations: 0.8483 MB / 3.772 GB, free: 34.5 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001692/11.27, allocations: 66.38 kB / 3.772 GB, free: 34.47 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007721/11.28, allocations: 4.366 MB / 3.776 GB, free: 34.29 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.126e-05/11.28, allocations: 21.86 kB / 3.776 GB, free: 34.29 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/11.28, allocations: 0 / 3.776 GB, free: 34.29 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.06e-05/11.28, allocations: 4.125 kB / 3.776 GB, free: 34.29 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01117/11.29, allocations: 6.113 MB / 3.782 GB, free: 33.68 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/11.29, allocations: 0 / 3.782 GB, free: 33.68 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007304/11.29, allocations: 95.56 kB / 3.782 GB, free: 33.68 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003423/11.29, allocations: 1.269 MB / 3.783 GB, free: 33.66 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001593/11.29, allocations: 18.97 kB / 3.783 GB, free: 33.66 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003477/11.3, allocations: 2.86 MB / 3.786 GB, free: 33.13 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/11.3, allocations: 0 / 3.786 GB, free: 33.13 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009333/11.31, allocations: 5.514 MB / 3.792 GB, free: 32.89 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003352/11.31, allocations: 174.4 kB / 3.792 GB, free: 32.74 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002471/11.31, allocations: 11.78 kB / 3.792 GB, free: 32.74 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/11.31, allocations: 64.2 kB / 3.792 GB, free: 32.73 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/11.31, allocations: 49.19 kB / 3.792 GB, free: 32.73 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.33e-05/11.31, allocations: 26.64 kB / 3.792 GB, free: 32.73 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.0004267/11.31, allocations: 285.9 kB / 3.792 GB, free: 32.64 MB / 443.1 MB Notification: Performance of sort global known variables: time 4.41e-07/11.31, allocations: 0 / 3.792 GB, free: 32.64 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.006455/11.32, allocations: 1.29 MB / 3.793 GB, free: 32.64 MB / 443.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (evaporator.p,evaporator.V_l,controller.x) * Number of discrete variables: 25 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.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 (51): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 7 * 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.01567/11.33, allocations: 4.447 MB / 3.798 GB, free: 31.68 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.003918/11.33, allocations: 1.628 MB / 3.799 GB, free: 31.41 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/11.33, allocations: 3.469 kB / 3.799 GB, free: 31.41 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001531/11.34, allocations: 0.7774 MB / 3.8 GB, free: 31.28 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002014/11.34, allocations: 221.2 kB / 3.8 GB, free: 31.26 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007249/11.35, allocations: 2.025 MB / 3.802 GB, free: 30.74 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005024/11.35, allocations: 1.039 MB / 3.803 GB, free: 30.03 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005957/11.35, allocations: 338 kB / 3.804 GB, free: 30.02 MB / 443.1 MB Notification: Performance of SimCode: time 2.195e-06/11.35, allocations: 0 / 3.804 GB, free: 30.02 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.719/15.07, allocations: 40.32 MB / 3.843 GB, free: 26.1 MB / 443.1 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