Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine2.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.TestStodolaTurbine2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine2") translateModel(ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7961/0.7961, allocations: 150.8 MB / 166.6 MB, free: 11.17 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002389/0.0002389, allocations: 11.98 kB / 204.7 MB, free: 6.156 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1403, allocations: 31.34 MB / 236 MB, free: 3.855 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.TestStodolaTurbine2): time 1.549/1.689, allocations: 292.4 MB / 0.5161 GB, free: 9.57 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.05495/1.744, allocations: 48.55 MB / 0.5635 GB, free: 9.125 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002028/1.744, allocations: 4 kB / 0.5635 GB, free: 9.121 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). Notification: Performance of NFTyping.typeComponents: time 0.0004369/1.745, allocations: 141 kB / 0.5636 GB, free: 8.984 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002593/1.745, allocations: 127 kB / 0.5637 GB, free: 8.859 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02484/1.77, allocations: 9.55 MB / 0.5731 GB, free: 15.31 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005969/1.77, allocations: 0.5172 MB / 0.5736 GB, free: 14.79 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002237/1.771, allocations: 141.4 kB / 0.5737 GB, free: 14.65 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002066/1.771, allocations: 187.1 kB / 0.5739 GB, free: 14.47 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/1.771, allocations: 163.2 kB / 0.574 GB, free: 14.31 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 3.574e-05/1.771, allocations: 16 kB / 0.574 GB, free: 14.29 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.037/1.808, allocations: 23.79 MB / 0.5973 GB, free: 6.473 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/1.808, allocations: 59.7 kB / 0.5973 GB, free: 6.414 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002456/1.808, allocations: 179 kB / 0.5975 GB, free: 6.238 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0226/1.831, allocations: 11.21 MB / 0.6084 GB, free: 11 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/1.831, allocations: 3.938 kB / 0.6085 GB, free: 11 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.453e-06/1.831, allocations: 0 / 0.6085 GB, free: 11 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.083e-06/1.831, allocations: 0 / 0.6085 GB, free: 11 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.005052/1.836, allocations: 1.911 MB / 0.6103 GB, free: 9.031 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/1.836, allocations: 12.03 kB / 0.6103 GB, free: 9.02 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.355e-05/1.836, allocations: 39.44 kB / 0.6104 GB, free: 8.98 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002432/1.837, allocations: 254.4 kB / 0.6106 GB, free: 8.691 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/1.837, allocations: 91.83 kB / 0.6107 GB, free: 8.59 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.728e-05/1.837, allocations: 28 kB / 0.6107 GB, free: 8.562 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006254/1.837, allocations: 444.4 kB / 0.6111 GB, free: 8.094 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/1.837, allocations: 0 / 0.6111 GB, free: 8.094 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/1.837, allocations: 8 kB / 0.6112 GB, free: 8.086 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/1.837, allocations: 19.98 kB / 0.6112 GB, free: 8.066 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005526/1.838, allocations: 306 kB / 0.6115 GB, free: 7.77 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.02032/1.858, allocations: 10.18 MB / 0.6214 GB, free: 12.57 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004607/1.859, allocations: 251 kB / 0.6216 GB, free: 12.32 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002867/1.859, allocations: 181.9 kB / 0.6218 GB, free: 12.14 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3675/2.227, allocations: 109.2 MB / 0.7284 GB, free: 191.1 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/2.227, allocations: 34.78 kB / 0.7284 GB, free: 191.1 MB / 0.573 GB Notification: Performance of pre-optimization done (n=66): time 2.364e-06/2.227, allocations: 0 / 0.7284 GB, free: 191.1 MB / 0.573 GB Notification: Performance of matching and sorting (n=66): time 0.001932/2.229, allocations: 0.9346 MB / 0.7294 GB, free: 190.8 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.122e-05/2.229, allocations: 59.22 kB / 0.7294 GB, free: 190.8 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/2.229, allocations: 236.7 kB / 0.7296 GB, free: 190.7 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/2.229, allocations: 33.3 kB / 0.7297 GB, free: 190.6 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 6.929e-05/2.229, allocations: 159.3 kB / 0.7298 GB, free: 190.5 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 8.396e-05/2.229, allocations: 211 kB / 0.73 GB, free: 190.4 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.475e-05/2.229, allocations: 67.5 kB / 0.7301 GB, free: 190.4 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 5.968e-05/2.229, allocations: 352.9 kB / 0.7304 GB, free: 190.1 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002335/2.229, allocations: 135.6 kB / 0.7306 GB, free: 190.1 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002525/2.23, allocations: 211.9 kB / 0.7308 GB, free: 190 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005116/2.23, allocations: 397.5 kB / 0.7311 GB, free: 189.9 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/2.23, allocations: 0 / 0.7311 GB, free: 189.9 MB / 0.573 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009254/2.231, allocations: 0.5551 MB / 0.7317 GB, free: 189.8 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/2.231, allocations: 3.969 kB / 0.7317 GB, free: 189.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/2.231, allocations: 3.875 kB / 0.7317 GB, free: 189.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005698/2.232, allocations: 258.8 kB / 0.7319 GB, free: 189.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/2.232, allocations: 23.39 kB / 0.732 GB, free: 189.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007189/2.233, allocations: 1.273 MB / 0.7332 GB, free: 188.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/2.233, allocations: 54.88 kB / 0.7333 GB, free: 188.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.234e-05/2.233, allocations: 8.484 kB / 0.7333 GB, free: 188.7 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (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 (17): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000116/2.233, allocations: 150.9 kB / 0.7334 GB, free: 188.6 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.138e-05/2.233, allocations: 31.5 kB / 0.7334 GB, free: 188.6 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001228/2.234, allocations: 1.064 MB / 0.7345 GB, free: 188.4 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0007783/2.235, allocations: 0.5538 MB / 0.735 GB, free: 188.3 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/2.235, allocations: 3.938 kB / 0.735 GB, free: 188.3 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/2.235, allocations: 0 / 0.735 GB, free: 188.3 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002015/2.237, allocations: 1.698 MB / 0.7367 GB, free: 187.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/2.237, allocations: 3.812 kB / 0.7367 GB, free: 187.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002258/2.237, allocations: 80.5 kB / 0.7368 GB, free: 187.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004414/2.238, allocations: 267 kB / 0.737 GB, free: 187.7 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.44e-05/2.238, allocations: 15.97 kB / 0.737 GB, free: 187.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006588/2.239, allocations: 1.285 MB / 0.7383 GB, free: 186.7 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/2.239, allocations: 11.22 kB / 0.7383 GB, free: 186.7 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001698/2.24, allocations: 1.752 MB / 0.74 GB, free: 185.7 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 6.993e-05/2.24, allocations: 120.8 kB / 0.7401 GB, free: 185.6 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.309e-05/2.24, allocations: 31.11 kB / 0.7401 GB, free: 185.6 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002591/2.241, allocations: 30.64 kB / 0.7402 GB, free: 185.6 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.575e-05/2.241, allocations: 44.06 kB / 0.7402 GB, free: 185.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/2.241, allocations: 23.98 kB / 0.7402 GB, free: 185.5 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0002444/2.241, allocations: 308.7 kB / 0.7405 GB, free: 185.4 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.2e-07/2.241, allocations: 3.719 kB / 0.7405 GB, free: 185.4 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.003791/2.245, allocations: 1.872 MB / 0.7424 GB, free: 185.3 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006768/2.252, allocations: 2.622 MB / 0.7449 GB, free: 184.7 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0009977/2.253, allocations: 0.6013 MB / 0.7455 GB, free: 184.3 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/2.253, allocations: 7.922 kB / 0.7455 GB, free: 184.3 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0004753/2.253, allocations: 284.2 kB / 0.7458 GB, free: 184.1 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/2.254, allocations: 244.1 kB / 0.746 GB, free: 183.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/2.256, allocations: 1.746 MB / 0.7477 GB, free: 182.3 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/2.257, allocations: 0.8789 MB / 0.7486 GB, free: 181.4 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0002006/2.257, allocations: 53.3 kB / 0.7486 GB, free: 181.3 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.999e-05/2.257, allocations: 39.38 kB / 0.7487 GB, free: 181.3 MB / 0.573 GB Notification: Performance of SimCode: time 2.4e-07/2.257, allocations: 0 / 0.7487 GB, free: 181.3 MB / 0.573 GB Notification: Performance of Templates: time 0.06276/2.32, allocations: 67.25 MB / 0.8144 GB, free: 114.9 MB / 0.573 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine2.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine2.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine2.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine2.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine2.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine2.pipe 2>&1)