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: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStodolaTurbine2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStodolaTurbine2",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.8147/0.8147, allocations: 150.9 MB / 166 MB, free: 14.58 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003013/0.0003013, allocations: 15.97 kB / 204.1 MB, free: 9.988 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1243, allocations: 31.33 MB / 235.4 MB, free: 5.441 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.TestStodolaTurbine2): time 1.493/1.617, allocations: 294.1 MB / 0.5171 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.05159/1.669, allocations: 48.55 MB / 0.5645 GB, free: 12.79 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001881/1.669, allocations: 4 kB / 0.5645 GB, free: 12.79 MB / 462.1 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.0004339/1.669, allocations: 136.2 kB / 0.5647 GB, free: 12.65 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002488/1.669, allocations: 131 kB / 0.5648 GB, free: 12.52 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02378/1.693, allocations: 9.558 MB / 0.5741 GB, free: 2.961 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005407/1.694, allocations: 0.5055 MB / 0.5746 GB, free: 2.453 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002132/1.694, allocations: 132.2 kB / 0.5747 GB, free: 2.328 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002042/1.694, allocations: 191.1 kB / 0.5749 GB, free: 2.141 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001645/1.694, allocations: 167.1 kB / 0.5751 GB, free: 1.977 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.638e-05/1.694, allocations: 16 kB / 0.5751 GB, free: 1.961 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03426/1.729, allocations: 23.78 MB / 0.5983 GB, free: 10.14 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.15e-05/1.729, allocations: 55.7 kB / 0.5984 GB, free: 10.09 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002395/1.729, allocations: 194.9 kB / 0.5986 GB, free: 9.898 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0194/1.749, allocations: 11.2 MB / 0.6095 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/1.749, allocations: 0 / 0.6095 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of FrontEnd: time 9.31e-07/1.749, allocations: 0 / 0.6095 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.325e-06/1.749, allocations: 0 / 0.6095 GB, free: 14.67 MB / 0.4981 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.004354/1.753, allocations: 1.914 MB / 0.6114 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/1.753, allocations: 12.02 kB / 0.6114 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.966e-05/1.753, allocations: 74.53 kB / 0.6114 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.079e-05/1.753, allocations: 43.44 kB / 0.6115 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002282/1.753, allocations: 254.3 kB / 0.6117 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/1.754, allocations: 87.89 kB / 0.6118 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.311e-05/1.754, allocations: 20 kB / 0.6118 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006211/1.754, allocations: 444.4 kB / 0.6123 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/1.754, allocations: 0 / 0.6123 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.69e-05/1.754, allocations: 13.41 kB / 0.6123 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.028e-05/1.754, allocations: 19.98 kB / 0.6123 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005318/1.755, allocations: 310 kB / 0.6126 GB, free: 11.36 MB / 0.4981 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.01867/1.773, allocations: 10.17 MB / 0.6225 GB, free: 172 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000456/1.774, allocations: 247 kB / 0.6228 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002658/1.774, allocations: 174 kB / 0.6229 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3227/2.097, allocations: 109.2 MB / 0.7295 GB, free: 196 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/2.097, allocations: 37.28 kB / 0.7296 GB, free: 196 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=66): time 1.994e-06/2.097, allocations: 0 / 0.7296 GB, free: 196 MB / 0.5762 GB Notification: Performance of matching and sorting (n=66): time 0.001845/2.099, allocations: 0.9278 MB / 0.7305 GB, free: 195.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.972e-05/2.099, allocations: 53.75 kB / 0.7305 GB, free: 195.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001898/2.099, allocations: 250.1 kB / 0.7308 GB, free: 195.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/2.099, allocations: 25.7 kB / 0.7308 GB, free: 195.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.287e-05/2.099, allocations: 154.8 kB / 0.7309 GB, free: 195.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.099e-05/2.099, allocations: 219.1 kB / 0.7311 GB, free: 195.3 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.569e-05/2.099, allocations: 69.98 kB / 0.7312 GB, free: 195.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.372e-05/2.099, allocations: 348.8 kB / 0.7315 GB, free: 194.9 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002287/2.1, allocations: 138.7 kB / 0.7317 GB, free: 194.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002454/2.1, allocations: 217.5 kB / 0.7319 GB, free: 194.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005025/2.1, allocations: 400.5 kB / 0.7323 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/2.1, allocations: 2.562 kB / 0.7323 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009001/2.101, allocations: 0.5503 MB / 0.7328 GB, free: 194.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/2.101, allocations: 9.016 kB / 0.7328 GB, free: 194.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/2.101, allocations: 3.312 kB / 0.7328 GB, free: 194.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000542/2.102, allocations: 250.3 kB / 0.7331 GB, free: 194.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/2.102, allocations: 25.95 kB / 0.7331 GB, free: 194.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006999/2.103, allocations: 1.268 MB / 0.7343 GB, free: 193.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002076/2.103, allocations: 52.95 kB / 0.7344 GB, free: 193.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/2.103, allocations: 13.88 kB / 0.7344 GB, free: 193.6 MB / 0.5762 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.0001121/2.103, allocations: 148.5 kB / 0.7345 GB, free: 193.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.433e-05/2.103, allocations: 38.89 kB / 0.7346 GB, free: 193.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001168/2.104, allocations: 1.058 MB / 0.7356 GB, free: 193.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0007463/2.105, allocations: 0.5559 MB / 0.7361 GB, free: 193.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/2.105, allocations: 0 / 0.7361 GB, free: 193.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/2.105, allocations: 12 kB / 0.7362 GB, free: 193.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001903/2.107, allocations: 1.681 MB / 0.7378 GB, free: 192.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/2.107, allocations: 9.219 kB / 0.7378 GB, free: 192.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002235/2.107, allocations: 80.86 kB / 0.7379 GB, free: 192.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004266/2.108, allocations: 270.2 kB / 0.7381 GB, free: 192.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.364e-05/2.108, allocations: 14.34 kB / 0.7382 GB, free: 192.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006362/2.108, allocations: 1.29 MB / 0.7394 GB, free: 191.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/2.108, allocations: 7.031 kB / 0.7394 GB, free: 191.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/2.109, allocations: 0.8481 MB / 0.7402 GB, free: 191.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.623e-05/2.11, allocations: 132 kB / 0.7404 GB, free: 191.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.994e-05/2.11, allocations: 30.98 kB / 0.7404 GB, free: 191.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000267/2.11, allocations: 28.14 kB / 0.7404 GB, free: 191.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.918e-05/2.11, allocations: 48.45 kB / 0.7405 GB, free: 191 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.043e-05/2.11, allocations: 15.78 kB / 0.7405 GB, free: 191 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002335/2.11, allocations: 314 kB / 0.7408 GB, free: 191 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/2.11, allocations: 3.75 kB / 0.7408 GB, free: 191 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003351/2.114, allocations: 1.816 MB / 0.7426 GB, free: 190.9 MB / 0.5762 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.007205/2.121, allocations: 3.905 MB / 0.7464 GB, free: 189.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008578/2.122, allocations: 0.6098 MB / 0.747 GB, free: 189.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/2.122, allocations: 2.344 kB / 0.747 GB, free: 189.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004695/2.122, allocations: 282.1 kB / 0.7472 GB, free: 189.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/2.123, allocations: 250.7 kB / 0.7475 GB, free: 189.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005923/2.129, allocations: 5.369 MB / 0.7527 GB, free: 185.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002044/2.13, allocations: 0.8636 MB / 0.7536 GB, free: 184.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001946/2.13, allocations: 44.89 kB / 0.7536 GB, free: 184.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/2.13, allocations: 180.2 kB / 0.7538 GB, free: 184.1 MB / 0.5762 GB Notification: Performance of SimCode: time 2.51e-07/2.13, allocations: 0 / 0.7538 GB, free: 184.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07845/2.208, allocations: 74.83 MB / 0.8269 GB, free: 110.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001249/2.209, allocations: 244.3 kB / 0.8271 GB, free: 110.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.581/7.79, allocations: 0 / 0.8271 GB, free: 110.1 MB / 0.5762 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStodolaTurbine2_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStodolaTurbine2.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStodolaTurbine2.pipe 2>&1)