Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSteamEngine,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSteamEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSteamEngine,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSteamEngine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8105/0.8105, allocations: 150.9 MB / 166 MB, free: 14.63 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003018/0.0003019, allocations: 23.97 kB / 204.1 MB, free: 10.03 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1267, allocations: 31.33 MB / 235.4 MB, free: 5.43 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestSteamEngine): time 1.528/1.654, allocations: 293.8 MB / 0.5169 GB, free: 13.54 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03851/1.693, allocations: 32.84 MB / 0.5489 GB, free: 12.85 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001603/1.693, allocations: 4 kB / 0.5489 GB, free: 12.84 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/SteamEngine.mo:35:3-37:17:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/SteamEngine.mo:38:3-39:44:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004654/1.694, allocations: 136.1 kB / 0.5491 GB, free: 12.71 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002046/1.694, allocations: 115.2 kB / 0.5492 GB, free: 12.6 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01684/1.711, allocations: 6.834 MB / 0.5558 GB, free: 5.773 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004719/1.711, allocations: 406.1 kB / 0.5562 GB, free: 5.375 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000177/1.711, allocations: 111.2 kB / 0.5563 GB, free: 5.277 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001815/1.712, allocations: 163.2 kB / 0.5565 GB, free: 5.117 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/1.712, allocations: 131.3 kB / 0.5566 GB, free: 4.988 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.505e-05/1.712, allocations: 12 kB / 0.5566 GB, free: 4.977 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02903/1.741, allocations: 20.3 MB / 0.5765 GB, free: 0.6484 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 9.355e-05/1.741, allocations: 47.78 kB / 0.5765 GB, free: 0.6016 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002048/1.741, allocations: 147.2 kB / 0.5766 GB, free: 468 kB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0147/1.756, allocations: 8.608 MB / 0.5851 GB, free: 7.832 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/1.756, allocations: 3.984 kB / 0.5851 GB, free: 7.828 MB / 478.1 MB Notification: Performance of FrontEnd: time 9.81e-07/1.756, allocations: 0 / 0.5851 GB, free: 7.828 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/1.756, allocations: 0 / 0.5851 GB, free: 7.828 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.003268/1.759, allocations: 1.408 MB / 0.5864 GB, free: 6.371 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/1.759, allocations: 16.03 kB / 0.5864 GB, free: 6.355 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.967e-05/1.759, allocations: 70.7 kB / 0.5865 GB, free: 6.277 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.398e-05/1.759, allocations: 36.47 kB / 0.5865 GB, free: 6.242 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002011/1.76, allocations: 245.8 kB / 0.5868 GB, free: 5.965 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/1.76, allocations: 16.38 kB / 0.5868 GB, free: 5.949 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.669e-05/1.76, allocations: 20 kB / 0.5868 GB, free: 5.93 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004597/1.76, allocations: 349.1 kB / 0.5871 GB, free: 5.559 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/1.76, allocations: 4 kB / 0.5872 GB, free: 5.555 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/1.76, allocations: 4 kB / 0.5872 GB, free: 5.551 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/1.76, allocations: 19.98 kB / 0.5872 GB, free: 5.531 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002806/1.76, allocations: 208.9 kB / 0.5874 GB, free: 5.328 MB / 478.1 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.01887/1.779, allocations: 9.891 MB / 0.597 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002112/1.78, allocations: 150.9 kB / 0.5972 GB, free: 10.27 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/1.78, allocations: 109.7 kB / 0.5973 GB, free: 10.16 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1083/1.888, allocations: 51.56 MB / 0.6476 GB, free: 1.668 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/1.888, allocations: 34.66 kB / 0.6477 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=52): time 2.104e-06/1.888, allocations: 3.938 kB / 0.6477 GB, free: 1.621 MB / 0.5294 GB Notification: Performance of matching and sorting (n=52): time 0.001072/1.889, allocations: 0.5094 MB / 0.6482 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/1.889, allocations: 63.34 kB / 0.6482 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000227/1.889, allocations: 228.9 kB / 0.6484 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/1.889, allocations: 29.64 kB / 0.6485 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 8.685e-05/1.89, allocations: 157 kB / 0.6486 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 9.695e-05/1.89, allocations: 173.4 kB / 0.6488 GB, free: 420 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.526e-05/1.89, allocations: 53.69 kB / 0.6488 GB, free: 360 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001023/1.89, allocations: 338.8 kB / 0.6492 GB, free: 12 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/1.89, allocations: 84.53 kB / 0.6492 GB, free: 15.93 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/1.89, allocations: 142.5 kB / 0.6494 GB, free: 15.77 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003086/1.89, allocations: 269.8 kB / 0.6496 GB, free: 15.49 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/1.89, allocations: 0 / 0.6496 GB, free: 15.49 MB / 0.545 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004801/1.891, allocations: 339.4 kB / 0.65 GB, free: 15.15 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/1.891, allocations: 4 kB / 0.65 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/1.891, allocations: 7.938 kB / 0.65 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002657/1.891, allocations: 114.3 kB / 0.6501 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.237e-05/1.891, allocations: 4 kB / 0.6501 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004269/1.892, allocations: 0.611 MB / 0.6507 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/1.892, allocations: 39.47 kB / 0.6507 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/1.892, allocations: 8 kB / 0.6507 GB, free: 14.34 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 (sourceP.C.b,puitsP.C.a,steamEngine1.C2.b,steamEngine1.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001265/1.892, allocations: 143 kB / 0.6509 GB, free: 14.19 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.936e-05/1.892, allocations: 23.62 kB / 0.6509 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009007/1.893, allocations: 0.8118 MB / 0.6517 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005035/1.894, allocations: 392.3 kB / 0.652 GB, free: 12.92 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/1.894, allocations: 3.984 kB / 0.6521 GB, free: 12.92 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/1.894, allocations: 0 / 0.6521 GB, free: 12.92 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001658/1.895, allocations: 1.482 MB / 0.6535 GB, free: 11.32 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/1.895, allocations: 4 kB / 0.6535 GB, free: 11.31 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001799/1.895, allocations: 71.91 kB / 0.6536 GB, free: 11.24 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002022/1.896, allocations: 128.7 kB / 0.6537 GB, free: 11.11 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.053e-05/1.896, allocations: 12 kB / 0.6537 GB, free: 11.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003976/1.896, allocations: 0.6345 MB / 0.6543 GB, free: 10.44 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/1.896, allocations: 7.938 kB / 0.6543 GB, free: 10.43 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006399/1.897, allocations: 0.6327 MB / 0.655 GB, free: 9.715 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.53e-05/1.897, allocations: 132.5 kB / 0.6551 GB, free: 9.566 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.812e-05/1.897, allocations: 23.84 kB / 0.6551 GB, free: 9.543 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000184/1.897, allocations: 12 kB / 0.6551 GB, free: 9.531 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.458e-05/1.897, allocations: 35.84 kB / 0.6551 GB, free: 9.496 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/1.897, allocations: 31.92 kB / 0.6552 GB, free: 9.465 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002875/1.897, allocations: 287 kB / 0.6555 GB, free: 9.184 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/1.897, allocations: 0 / 0.6555 GB, free: 9.184 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003146/1.901, allocations: 1.331 MB / 0.6568 GB, free: 7.852 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006132/1.907, allocations: 2.723 MB / 0.6594 GB, free: 5.043 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006155/1.907, allocations: 484.8 kB / 0.6599 GB, free: 4.543 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/1.907, allocations: 4 kB / 0.6599 GB, free: 4.539 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002732/1.908, allocations: 197.3 kB / 0.6601 GB, free: 4.348 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001206/1.909, allocations: 209.5 kB / 0.6603 GB, free: 4.141 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004949/1.914, allocations: 4.279 MB / 0.6644 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/1.914, allocations: 0.8362 MB / 0.6653 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001731/1.914, allocations: 50.88 kB / 0.6653 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/1.915, allocations: 163.4 kB / 0.6655 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of SimCode: time 3.8e-07/1.915, allocations: 0 / 0.6655 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2265/2.141, allocations: 59.11 MB / 0.7232 GB, free: 196.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000129/2.141, allocations: 231.5 kB / 0.7234 GB, free: 196.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.104/7.246, allocations: 0.75 kB / 0.7234 GB, free: 196.6 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSteamEngine_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSteamEngine.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe 2>&1)