Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine3.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: translateModel(ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine3") translateModel(ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8032/0.8032, allocations: 150.8 MB / 166.6 MB, free: 11.14 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003582/0.0003583, allocations: 19.98 kB / 204.7 MB, free: 6.152 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1966/0.197, allocations: 31.32 MB / 236 MB, free: 3.883 MB / 186.7 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.TestStodolaTurbine3): time 1.622/1.819, allocations: 293.8 MB / 0.5174 GB, free: 8.191 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.05506/1.874, allocations: 48.91 MB / 0.5652 GB, free: 7.387 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004479/1.874, allocations: 4 kB / 0.5652 GB, free: 7.383 MB / 458.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/StodolaTurbine.mo:59:3-61:16:writable] Warning: Connector Ce 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/StodolaTurbine.mo:62:3-63:52:writable] Warning: Connector Cs 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/StodolaTurbine.mo:67:3-71:23:writable] Warning: Connector M is not balanced: The number of potential variables (2) 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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/StodolaTurbine.mo:59:3-61:16:writable] Warning: Connector Ce 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/StodolaTurbine.mo:62:3-63:52:writable] Warning: Connector Cs 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/StodolaTurbine.mo:67:3-71:23:writable] Warning: Connector M is not balanced: The number of potential variables (2) 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.0006536/1.875, allocations: 192.5 kB / 0.5654 GB, free: 7.195 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000646/1.875, allocations: 254.1 kB / 0.5656 GB, free: 6.945 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02603/1.902, allocations: 9.629 MB / 0.575 GB, free: 13.32 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.001223/1.903, allocations: 1.019 MB / 0.576 GB, free: 12.29 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004023/1.903, allocations: 273 kB / 0.5763 GB, free: 12.01 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005069/1.904, allocations: 378.2 kB / 0.5766 GB, free: 11.64 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003859/1.904, allocations: 326.3 kB / 0.577 GB, free: 11.32 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 8.305e-05/1.904, allocations: 32 kB / 0.577 GB, free: 11.29 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03875/1.943, allocations: 23.8 MB / 0.6002 GB, free: 3.457 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001685/1.943, allocations: 119.4 kB / 0.6003 GB, free: 3.34 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004901/1.944, allocations: 374 kB / 0.6007 GB, free: 2.973 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02441/1.968, allocations: 11.58 MB / 0.612 GB, free: 7.363 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 9.318e-06/1.968, allocations: 3.938 kB / 0.612 GB, free: 7.359 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.018e-06/1.968, allocations: 0 / 0.612 GB, free: 7.359 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.541e-05/1.968, allocations: 3.938 kB / 0.612 GB, free: 7.355 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.006168/1.974, allocations: 2.266 MB / 0.6142 GB, free: 5.039 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/1.974, allocations: 8.031 kB / 0.6142 GB, free: 5.031 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/1.975, allocations: 78.97 kB / 0.6143 GB, free: 4.953 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004532/1.975, allocations: 340.8 kB / 0.6146 GB, free: 4.578 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002279/1.975, allocations: 171.7 kB / 0.6148 GB, free: 4.387 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.355e-05/1.975, allocations: 48 kB / 0.6148 GB, free: 4.34 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/1.977, allocations: 0.8381 MB / 0.6157 GB, free: 3.441 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/1.977, allocations: 7.938 kB / 0.6157 GB, free: 3.434 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.404e-05/1.977, allocations: 24 kB / 0.6157 GB, free: 3.41 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.84e-05/1.977, allocations: 43.95 kB / 0.6157 GB, free: 3.367 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001121/1.978, allocations: 0.5978 MB / 0.6163 GB, free: 2.766 MB / 0.4948 GB 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.04139/2.019, allocations: 20.24 MB / 0.6361 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009013/2.02, allocations: 480.9 kB / 0.6365 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005671/2.021, allocations: 355.8 kB / 0.6369 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.374/2.395, allocations: 109.2 MB / 0.7435 GB, free: 177.1 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/2.395, allocations: 41.56 kB / 0.7435 GB, free: 177.1 MB / 0.573 GB Notification: Performance of pre-optimization done (n=132): time 2.825e-06/2.395, allocations: 0 / 0.7435 GB, free: 177.1 MB / 0.573 GB Notification: Performance of matching and sorting (n=132): time 0.003592/2.398, allocations: 1.824 MB / 0.7453 GB, free: 176.5 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.437e-05/2.398, allocations: 81.08 kB / 0.7454 GB, free: 176.4 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003619/2.399, allocations: 400.9 kB / 0.7458 GB, free: 176.2 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/2.399, allocations: 33.33 kB / 0.7458 GB, free: 176.2 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/2.399, allocations: 241.3 kB / 0.746 GB, free: 176.1 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001843/2.399, allocations: 429.7 kB / 0.7464 GB, free: 175.8 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/2.399, allocations: 130.1 kB / 0.7466 GB, free: 175.7 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 7.895e-05/2.399, allocations: 373.7 kB / 0.7469 GB, free: 175.4 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000472/2.4, allocations: 282.2 kB / 0.7472 GB, free: 175.3 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005327/2.4, allocations: 433 kB / 0.7476 GB, free: 175.1 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/2.402, allocations: 0.7774 MB / 0.7484 GB, free: 174.9 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/2.402, allocations: 3.562 kB / 0.7484 GB, free: 174.9 MB / 0.573 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001827/2.403, allocations: 1.082 MB / 0.7494 GB, free: 174.7 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/2.403, allocations: 7.844 kB / 0.7494 GB, free: 174.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/2.403, allocations: 3.938 kB / 0.7494 GB, free: 174.7 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009788/2.404, allocations: 0.4964 MB / 0.7499 GB, free: 174.6 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002304/2.405, allocations: 53.45 kB / 0.75 GB, free: 174.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/2.406, allocations: 2.528 MB / 0.7524 GB, free: 172.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003928/2.406, allocations: 106.2 kB / 0.7525 GB, free: 172.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.76e-05/2.407, allocations: 19.31 kB / 0.7526 GB, free: 172.3 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 8 (sourceP1.C.b,puitsP1.C.a,stodolaTurbine1.Cs.b,stodolaTurbine1.Ce.a,sourceP.C.b,puitsP.C.a,stodolaTurbine.Cs.b,stodolaTurbine.Ce.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,2), (1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002268/2.407, allocations: 195.5 kB / 0.7527 GB, free: 172.2 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.658e-05/2.407, allocations: 66.64 kB / 0.7528 GB, free: 172.1 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002367/2.409, allocations: 2.082 MB / 0.7548 GB, free: 171.5 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001557/2.411, allocations: 1.077 MB / 0.7559 GB, free: 171.2 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/2.411, allocations: 7.75 kB / 0.7559 GB, free: 171.2 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.445e-06/2.411, allocations: 4.5 kB / 0.7559 GB, free: 171.2 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00419/2.415, allocations: 3.372 MB / 0.7592 GB, free: 169.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/2.415, allocations: 8 kB / 0.7592 GB, free: 169.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004383/2.416, allocations: 157.9 kB / 0.7594 GB, free: 169.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009773/2.417, allocations: 0.5175 MB / 0.7599 GB, free: 168.9 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.706e-05/2.417, allocations: 30.73 kB / 0.7599 GB, free: 168.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001739/2.418, allocations: 2.579 MB / 0.7624 GB, free: 166.4 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.338e-05/2.418, allocations: 19.08 kB / 0.7624 GB, free: 166.4 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003651/2.422, allocations: 2.82 MB / 0.7652 GB, free: 164.1 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002248/2.422, allocations: 192.2 kB / 0.7654 GB, free: 163.9 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/2.422, allocations: 47.19 kB / 0.7654 GB, free: 163.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005134/2.423, allocations: 58.44 kB / 0.7655 GB, free: 163.8 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/2.423, allocations: 92.03 kB / 0.7656 GB, free: 163.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.327e-05/2.423, allocations: 34.31 kB / 0.7656 GB, free: 163.7 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.000528/2.424, allocations: 0.5359 MB / 0.7661 GB, free: 163.3 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.31e-07/2.424, allocations: 0 / 0.7661 GB, free: 163.3 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.005287/2.429, allocations: 1.981 MB / 0.768 GB, free: 161.7 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * 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 (90): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,2), (1,2), (1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007368/2.436, allocations: 2.639 MB / 0.7706 GB, free: 159.7 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002129/2.438, allocations: 1.264 MB / 0.7719 GB, free: 158.6 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/2.438, allocations: 4 kB / 0.7719 GB, free: 158.6 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0009699/2.439, allocations: 0.5637 MB / 0.7724 GB, free: 158.1 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002517/2.442, allocations: 476 kB / 0.7729 GB, free: 157.6 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003798/2.446, allocations: 3.304 MB / 0.7761 GB, free: 154.2 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004366/2.446, allocations: 1.085 MB / 0.7772 GB, free: 153.1 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0004927/2.447, allocations: 90.03 kB / 0.7772 GB, free: 153 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/2.447, allocations: 63.44 kB / 0.7773 GB, free: 152.9 MB / 0.573 GB Notification: Performance of SimCode: time 9.72e-07/2.447, allocations: 0 / 0.7773 GB, free: 152.9 MB / 0.573 GB Notification: Performance of Templates: time 0.0765/2.523, allocations: 75.84 MB / 0.8514 GB, free: 78.07 MB / 0.573 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine3.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine3.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine3.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine3.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine3.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine3.pipe 2>&1)