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: translateModel(ThermoSysPro.Examples.SimpleExamples.TestSteamEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine") translateModel(ThermoSysPro.Examples.SimpleExamples.TestSteamEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8198/0.8198, allocations: 150.9 MB / 167.1 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003437/0.0003437, allocations: 15.98 kB / 205.9 MB, free: 9.023 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1382, allocations: 31.33 MB / 237.3 MB, free: 5.727 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.614/1.753, allocations: 294.7 MB / 0.5195 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03377/1.786, allocations: 28.97 MB / 0.5478 GB, free: 236 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001691/1.787, allocations: 3.938 kB / 0.5478 GB, free: 232 kB / 430.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.0005006/1.787, allocations: 179.1 kB / 0.548 GB, free: 52 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002445/1.787, allocations: 131.1 kB / 0.5481 GB, free: 15.92 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1445:9-1445:35:writable] Warning: h was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.02242/1.81, allocations: 9.555 MB / 0.5574 GB, free: 6.375 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006123/1.81, allocations: 438.1 kB / 0.5579 GB, free: 5.945 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002055/1.811, allocations: 121.3 kB / 0.558 GB, free: 5.836 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002014/1.811, allocations: 175.2 kB / 0.5581 GB, free: 5.664 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/1.811, allocations: 135.3 kB / 0.5583 GB, free: 5.531 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.739e-05/1.811, allocations: 20 kB / 0.5583 GB, free: 5.512 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03258/1.844, allocations: 20.52 MB / 0.5783 GB, free: 0.9609 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000127/1.844, allocations: 51.78 kB / 0.5784 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002304/1.844, allocations: 159.2 kB / 0.5785 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01814/1.862, allocations: 8.576 MB / 0.5869 GB, free: 8.16 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/1.862, allocations: 0 / 0.5869 GB, free: 8.16 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.924e-06/1.862, allocations: 0 / 0.5869 GB, free: 8.16 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/1.862, allocations: 0 / 0.5869 GB, free: 8.16 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.004059/1.866, allocations: 1.413 MB / 0.5883 GB, free: 6.699 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/1.866, allocations: 8.031 kB / 0.5883 GB, free: 6.691 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.029e-05/1.866, allocations: 28.56 kB / 0.5883 GB, free: 6.664 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/1.867, allocations: 239.8 kB / 0.5885 GB, free: 6.391 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/1.867, allocations: 24.56 kB / 0.5886 GB, free: 6.367 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.978e-05/1.867, allocations: 24 kB / 0.5886 GB, free: 6.344 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004607/1.867, allocations: 345.1 kB / 0.5889 GB, free: 5.977 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/1.867, allocations: 0 / 0.5889 GB, free: 5.977 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/1.867, allocations: 8 kB / 0.5889 GB, free: 5.969 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.237e-05/1.867, allocations: 23.98 kB / 0.589 GB, free: 5.945 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002827/1.868, allocations: 212.8 kB / 0.5892 GB, free: 5.738 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.01983/1.887, allocations: 9.933 MB / 0.5989 GB, free: 10.79 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002445/1.888, allocations: 148.5 kB / 0.599 GB, free: 10.64 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001378/1.888, allocations: 113.7 kB / 0.5991 GB, free: 10.53 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1163/2.004, allocations: 52 MB / 0.6499 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/2.004, allocations: 42.5 kB / 0.6499 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=52): time 2.345e-06/2.004, allocations: 0 / 0.6499 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of matching and sorting (n=52): time 0.001119/2.005, allocations: 0.5172 MB / 0.6504 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/2.005, allocations: 51.41 kB / 0.6505 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000249/2.006, allocations: 233 kB / 0.6507 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/2.006, allocations: 25.7 kB / 0.6507 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 8.85e-05/2.006, allocations: 152.9 kB / 0.6509 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/2.006, allocations: 165.4 kB / 0.651 GB, free: 348 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.931e-05/2.006, allocations: 57.69 kB / 0.6511 GB, free: 284 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001371/2.006, allocations: 342.8 kB / 0.6514 GB, free: 15.93 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/2.006, allocations: 80.55 kB / 0.6515 GB, free: 15.86 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001708/2.006, allocations: 150.7 kB / 0.6516 GB, free: 15.69 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003127/2.007, allocations: 260.1 kB / 0.6519 GB, free: 15.42 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.002e-06/2.007, allocations: 7.938 kB / 0.6519 GB, free: 15.41 MB / 0.545 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005058/2.007, allocations: 343.2 kB / 0.6522 GB, free: 15.07 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/2.007, allocations: 4 kB / 0.6522 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/2.007, allocations: 4 kB / 0.6522 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002751/2.008, allocations: 108.8 kB / 0.6523 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.792e-05/2.008, allocations: 15.94 kB / 0.6523 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004604/2.008, allocations: 0.6111 MB / 0.6529 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/2.008, allocations: 39.53 kB / 0.653 GB, free: 14.26 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/2.008, allocations: 9.859 kB / 0.653 GB, free: 14.25 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.0001345/2.008, allocations: 141.8 kB / 0.6531 GB, free: 14.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.083e-05/2.008, allocations: 27.62 kB / 0.6532 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009043/2.009, allocations: 0.8079 MB / 0.6539 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005216/2.01, allocations: 380.3 kB / 0.6543 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/2.01, allocations: 0 / 0.6543 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/2.01, allocations: 7.984 kB / 0.6543 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001735/2.012, allocations: 1.468 MB / 0.6557 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/2.012, allocations: 8.656 kB / 0.6558 GB, free: 11.24 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001884/2.012, allocations: 71.84 kB / 0.6558 GB, free: 11.17 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001732/2.012, allocations: 93.91 kB / 0.6559 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/2.012, allocations: 18.8 kB / 0.6559 GB, free: 11.06 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000427/2.013, allocations: 0.6342 MB / 0.6566 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/2.013, allocations: 8 kB / 0.6566 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006716/2.013, allocations: 0.6326 MB / 0.6572 GB, free: 9.676 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 9.613e-05/2.013, allocations: 136.4 kB / 0.6573 GB, free: 9.523 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.419e-05/2.013, allocations: 23.84 kB / 0.6573 GB, free: 9.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/2.014, allocations: 16.08 kB / 0.6573 GB, free: 9.484 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-05/2.014, allocations: 47.78 kB / 0.6574 GB, free: 9.438 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/2.014, allocations: 12 kB / 0.6574 GB, free: 9.426 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002982/2.014, allocations: 291 kB / 0.6577 GB, free: 9.141 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/2.014, allocations: 0 / 0.6577 GB, free: 9.141 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00317/2.017, allocations: 1.331 MB / 0.659 GB, free: 7.809 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.005519/2.023, allocations: 1.629 MB / 0.6606 GB, free: 6.18 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007716/2.024, allocations: 493 kB / 0.661 GB, free: 5.668 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/2.024, allocations: 0 / 0.661 GB, free: 5.668 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003047/2.024, allocations: 197.8 kB / 0.6612 GB, free: 5.477 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001173/2.025, allocations: 230 kB / 0.6614 GB, free: 5.25 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/2.026, allocations: 0.9222 MB / 0.6623 GB, free: 4.234 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/2.027, allocations: 0.8362 MB / 0.6632 GB, free: 3.371 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001523/2.027, allocations: 38.97 kB / 0.6632 GB, free: 3.336 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.665e-05/2.027, allocations: 35.44 kB / 0.6632 GB, free: 3.301 MB / 0.545 GB Notification: Performance of SimCode: time 3.91e-07/2.027, allocations: 0 / 0.6632 GB, free: 3.301 MB / 0.545 GB Notification: Performance of Templates: time 0.206/2.233, allocations: 53.47 MB / 0.7155 GB, free: 221.7 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.makefile (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 & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe 2>&1)