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.002461/0.002461, allocations: 186.7 kB / 16.4 MB, free: 5.625 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.189/2.189, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001604/0.001604, allocations: 94.86 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000411/0.0004111, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1046, allocations: 47.57 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler): time 0.3336/0.4382, allocations: 40.52 MB / 415.1 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03628/0.4745, allocations: 17.97 MB / 433.1 MB, free: 1.277 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001108/0.4757, allocations: 20.16 kB / 433.1 MB, free: 1.266 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00155/0.4773, allocations: 316 kB / 433.4 MB, free: 1.012 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01724/0.4945, allocations: 3.805 MB / 437.2 MB, free: 14.03 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008352/0.5029, allocations: 1.788 MB / 439 MB, free: 12.24 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002438/0.5054, allocations: 0.9024 MB / 439.9 MB, free: 11.34 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001067/0.5065, allocations: 417.5 kB / 440.3 MB, free: 10.91 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02898/0.5355, allocations: 9.029 MB / 449.4 MB, free: 1.875 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009459/0.545, allocations: 3.095 MB / 452.5 MB, free: 14.78 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002056/0.5453, allocations: 28 kB / 452.5 MB, free: 14.75 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02142/0.5667, allocations: 7.238 MB / 459.7 MB, free: 7.504 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003488/0.5671, allocations: 131.5 kB / 459.9 MB, free: 7.375 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004008/0.5676, allocations: 173.3 kB / 460 MB, free: 7.199 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009463/0.577, allocations: 3.298 MB / 463.3 MB, free: 3.895 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.5771, allocations: 0 / 463.3 MB, free: 3.895 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.5771, allocations: 3.938 kB / 463.3 MB, free: 3.891 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.766e-05/0.5771, allocations: 0 / 463.3 MB, free: 3.891 MB / 330.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.005477/0.5826, allocations: 1.504 MB / 464.8 MB, free: 2.324 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.5827, allocations: 12.03 kB / 464.8 MB, free: 2.312 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002823/0.583, allocations: 115.7 kB / 465 MB, free: 2.191 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003147/0.5862, allocations: 282.8 kB / 465.2 MB, free: 1.914 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.5874, allocations: 496.3 kB / 465.7 MB, free: 1.391 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.203e-05/0.5875, allocations: 45.31 kB / 465.8 MB, free: 1.344 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001583/0.5877, allocations: 60 kB / 465.8 MB, free: 1.285 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003302/0.591, allocations: 0.918 MB / 466.7 MB, free: 312 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.197e-05/0.5911, allocations: 4 kB / 466.7 MB, free: 308 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001087/0.5912, allocations: 28 kB / 466.8 MB, free: 280 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.538e-05/0.5912, allocations: 16 kB / 466.8 MB, free: 264 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003137/0.5944, allocations: 0.7426 MB / 467.5 MB, free: 15.51 MB / 346.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.008084/0.6025, allocations: 4.178 MB / 471.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002979/0.6055, allocations: 0.6651 MB / 472.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2615/0.8671, allocations: 55.6 MB / 0.5156 GB, free: 12.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002396/0.8695, allocations: 0.5721 MB / 0.5162 GB, free: 11.95 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005243/0.8701, allocations: 71.41 kB / 0.5162 GB, free: 11.88 MB / 410.7 MB Notification: Performance of pre-optimization done (n=57): time 4.519e-06/0.8701, allocations: 0 / 0.5162 GB, free: 11.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=65): time 0.01894/0.8891, allocations: 3.489 MB / 0.5196 GB, free: 8.254 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002137/0.8893, allocations: 281.4 kB / 0.5199 GB, free: 7.914 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000906/0.8903, allocations: 474.8 kB / 0.5204 GB, free: 7.438 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001622/0.8904, allocations: 37.7 kB / 0.5204 GB, free: 7.395 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003519/0.8908, allocations: 362.7 kB / 0.5207 GB, free: 7.039 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003238/0.8911, allocations: 205.1 kB / 0.5209 GB, free: 6.836 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.917e-05/0.8912, allocations: 12 kB / 0.5209 GB, free: 6.824 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.8914, allocations: 346.8 kB / 0.5213 GB, free: 6.477 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001102/0.8925, allocations: 285.4 kB / 0.5215 GB, free: 6.199 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001246/0.8938, allocations: 469.5 kB / 0.522 GB, free: 5.664 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00122/0.8951, allocations: 385.4 kB / 0.5224 GB, free: 5.277 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/0.8951, allocations: 4 kB / 0.5224 GB, free: 5.273 MB / 410.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003518/0.8986, allocations: 0.9949 MB / 0.5233 GB, free: 4.254 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001009/0.8997, allocations: 1.818 MB / 0.5251 GB, free: 2.289 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.8997, allocations: 4 kB / 0.5251 GB, free: 2.285 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005474/0.9052, allocations: 348.3 kB / 0.5254 GB, free: 1.941 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.9064, allocations: 131.8 kB / 0.5256 GB, free: 1.812 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001995/0.9084, allocations: 0.8047 MB / 0.5264 GB, free: 0.9844 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001263/0.9097, allocations: 71.86 kB / 0.5264 GB, free: 0.9141 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001576/0.9099, allocations: 47.97 kB / 0.5265 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.9099, allocations: 4 kB / 0.5265 GB, free: 0.8633 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003412/0.9134, allocations: 0.974 MB / 0.5274 GB, free: 15.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.9134, allocations: 8 kB / 0.5274 GB, free: 15.87 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00522/0.9187, allocations: 352.5 kB / 0.5278 GB, free: 15.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.9197, allocations: 127.8 kB / 0.5279 GB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001856/0.9216, allocations: 0.8021 MB / 0.5287 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009692/0.9226, allocations: 60.02 kB / 0.5287 GB, free: 14.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001468/0.9227, allocations: 43.97 kB / 0.5288 GB, free: 14.46 MB / 426.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.0007003/0.9235, allocations: 356.3 kB / 0.5291 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002326/0.9237, allocations: 75.19 kB / 0.5292 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0104/0.9341, allocations: 4.764 MB / 0.5338 GB, free: 9.227 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.311e-05/0.9342, allocations: 36.02 kB / 0.5339 GB, free: 9.191 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.9343, allocations: 0 / 0.5339 GB, free: 9.191 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.367e-05/0.9343, allocations: 3.984 kB / 0.5339 GB, free: 9.188 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01426/0.9486, allocations: 6.565 MB / 0.5403 GB, free: 2.469 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.461e-05/0.9487, allocations: 0 / 0.5403 GB, free: 2.469 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008616/0.9495, allocations: 103.9 kB / 0.5404 GB, free: 2.367 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004139/0.9537, allocations: 1.078 MB / 0.5414 GB, free: 1.285 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001969/0.9539, allocations: 27.98 kB / 0.5415 GB, free: 1.258 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.283/1.237, allocations: 2.349 MB / 0.5438 GB, free: 156.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/1.237, allocations: 0.9688 kB / 0.5438 GB, free: 156.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0115/1.249, allocations: 5.524 MB / 0.5492 GB, free: 154.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004209/1.249, allocations: 239.4 kB / 0.5494 GB, free: 154.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002931/1.249, allocations: 21.39 kB / 0.5494 GB, free: 154.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/1.25, allocations: 69.64 kB / 0.5495 GB, free: 154.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/1.251, allocations: 57.7 kB / 0.5495 GB, free: 154.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/1.251, allocations: 27.34 kB / 0.5496 GB, free: 154.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009415/1.252, allocations: 482 kB / 0.55 GB, free: 154.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.252, allocations: 0 / 0.55 GB, free: 154.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005159/1.257, allocations: 1.299 MB / 0.5513 GB, free: 154.4 MB / 426.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 ($cse2.phase,$cse2.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.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.01595/1.273, allocations: 4.337 MB / 0.5555 GB, free: 152.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005721/1.279, allocations: 1.841 MB / 0.5573 GB, free: 151.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/1.279, allocations: 5.344 kB / 0.5573 GB, free: 151.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002324/1.281, allocations: 0.9013 MB / 0.5582 GB, free: 151.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003039/1.284, allocations: 310.3 kB / 0.5585 GB, free: 151.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01492/1.299, allocations: 8.755 MB / 0.567 GB, free: 145.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006508/1.3, allocations: 1.096 MB / 0.5681 GB, free: 144.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007104/1.301, allocations: 392.9 kB / 0.5685 GB, free: 144.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.683e-06/1.301, allocations: 3.531 kB / 0.5685 GB, free: 144.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.073/5.374, allocations: 40.1 MB / 0.6077 GB, free: 105.3 MB / 426.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