Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestSteamEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8421/0.8421, allocations: 150.9 MB / 166.7 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.0003502, allocations: 15.97 kB / 204.8 MB, free: 10 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.182/0.1823, allocations: 31.34 MB / 236.1 MB, free: 5.445 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.Fluid.Examples.SimpleExamples.TestSteamEngine): time 1.647/1.829, allocations: 294 MB / 0.5178 GB, free: 13.21 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5369/2.366, allocations: 194.3 MB / 0.7075 GB, free: 1.875 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003442/2.366, allocations: 7.312 kB / 0.7075 GB, free: 1.875 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/SteamEngine.mo:41:3-42:53:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/SteamEngine.mo:43:3-44:51:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005573/2.367, allocations: 167.7 kB / 0.7077 GB, free: 1.875 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003447/2.367, allocations: 152 kB / 0.7078 GB, free: 1.875 MB / 0.5762 GB [/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/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp 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/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp 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/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der 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/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ps.mo:71:3-71:60:writable] Warning: dh1satp 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/WaterSteamSimple/prop4_Ps.mo:71:3-71:60:writable] Warning: dh2satp 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.03383/2.401, allocations: 12.65 MB / 0.7202 GB, free: 1.652 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007117/2.402, allocations: 0.5118 MB / 0.7207 GB, free: 1.652 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002746/2.402, allocations: 222.1 kB / 0.7209 GB, free: 1.621 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002587/2.402, allocations: 216.1 kB / 0.7211 GB, free: 1.621 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002093/2.403, allocations: 204.1 kB / 0.7213 GB, free: 1.621 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.004e-05/2.403, allocations: 33.66 kB / 0.7213 GB, free: 1.621 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04013/2.443, allocations: 25.54 MB / 0.7463 GB, free: 400 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002046/2.443, allocations: 79.67 kB / 0.7464 GB, free: 392 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004224/2.443, allocations: 222.9 kB / 0.7466 GB, free: 380 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01668/2.46, allocations: 8.449 MB / 0.7548 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 9.397e-06/2.46, allocations: 0 / 0.7548 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.685e-06/2.46, allocations: 0 / 0.7548 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.667e-05/2.46, allocations: 2.078 kB / 0.7548 GB, free: 13.3 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.006631/2.467, allocations: 2.113 MB / 0.7569 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/2.467, allocations: 9.656 kB / 0.7569 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.366e-05/2.467, allocations: 47.44 kB / 0.7569 GB, free: 11.94 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000353/2.467, allocations: 307.3 kB / 0.7572 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.074e-05/2.467, allocations: 29.66 kB / 0.7573 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.027e-05/2.467, allocations: 35.55 kB / 0.7573 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005878/2.468, allocations: 430.8 kB / 0.7577 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/2.468, allocations: 0 / 0.7577 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.91e-05/2.468, allocations: 15.19 kB / 0.7577 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/2.468, allocations: 14 kB / 0.7577 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004196/2.469, allocations: 272.8 kB / 0.758 GB, free: 11.5 MB / 0.5919 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.06825/2.537, allocations: 32.87 MB / 0.7901 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/2.537, allocations: 108.3 kB / 0.7902 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/2.537, allocations: 83.45 kB / 0.7903 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1401/2.677, allocations: 80.44 MB / 0.8688 GB, free: 2.59 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/2.677, allocations: 34.56 kB / 0.8689 GB, free: 2.547 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=34): time 2.124e-06/2.677, allocations: 0 / 0.8689 GB, free: 2.547 MB / 0.7012 GB Notification: Performance of matching and sorting (n=34): time 0.0009029/2.678, allocations: 427.7 kB / 0.8693 GB, free: 2.199 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/2.678, allocations: 55.41 kB / 0.8693 GB, free: 2.133 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003484/2.679, allocations: 298.8 kB / 0.8696 GB, free: 1.887 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/2.679, allocations: 25.7 kB / 0.8696 GB, free: 1.855 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/2.679, allocations: 230.1 kB / 0.8699 GB, free: 1.664 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 7.27e-05/2.679, allocations: 114.4 kB / 0.87 GB, free: 1.566 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.846e-05/2.679, allocations: 70.41 kB / 0.87 GB, free: 1.512 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001491/2.679, allocations: 344.6 kB / 0.8704 GB, free: 1.18 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/2.679, allocations: 75.84 kB / 0.8704 GB, free: 1.137 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/2.679, allocations: 193.5 kB / 0.8706 GB, free: 0.9375 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/2.68, allocations: 294.8 kB / 0.8709 GB, free: 0.6992 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/2.68, allocations: 0 / 0.8709 GB, free: 0.6992 MB / 0.7012 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005929/2.68, allocations: 376.3 kB / 0.8713 GB, free: 444 kB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/2.68, allocations: 8 kB / 0.8713 GB, free: 436 kB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-05/2.681, allocations: 5.203 kB / 0.8713 GB, free: 432 kB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002924/2.681, allocations: 111.5 kB / 0.8714 GB, free: 328 kB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/2.681, allocations: 41.64 kB / 0.8714 GB, free: 296 kB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004951/2.681, allocations: 0.6098 MB / 0.872 GB, free: 15.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001964/2.682, allocations: 43.64 kB / 0.8721 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.32e-05/2.682, allocations: 12 kB / 0.8721 GB, free: 15.65 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (sourceP.fluid1,sourceP.C.ftype,steamEngine1.fluid,puitsP.fluid,steamEngine1.C2.diff_on_1,sourceP.C.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.000184/2.682, allocations: 167.5 kB / 0.8722 GB, free: 15.51 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.436e-05/2.682, allocations: 35.47 kB / 0.8723 GB, free: 15.47 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006829/2.683, allocations: 0.5615 MB / 0.8728 GB, free: 15.11 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004684/2.683, allocations: 406.5 kB / 0.8732 GB, free: 14.82 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/2.683, allocations: 3.984 kB / 0.8732 GB, free: 14.82 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/2.683, allocations: 0 / 0.8732 GB, free: 14.82 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001417/2.685, allocations: 1.174 MB / 0.8743 GB, free: 13.87 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/2.685, allocations: 1.203 kB / 0.8743 GB, free: 13.87 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/2.685, allocations: 58.66 kB / 0.8744 GB, free: 13.82 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001762/2.685, allocations: 78.75 kB / 0.8745 GB, free: 13.75 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/2.685, allocations: 8.203 kB / 0.8745 GB, free: 13.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004251/2.685, allocations: 0.6241 MB / 0.8751 GB, free: 13.15 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/2.685, allocations: 0 / 0.8751 GB, free: 13.15 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005943/2.686, allocations: 0.5416 MB / 0.8756 GB, free: 12.71 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001463/2.686, allocations: 138.9 kB / 0.8758 GB, free: 12.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.387e-05/2.686, allocations: 7.312 kB / 0.8758 GB, free: 12.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/2.686, allocations: 18.77 kB / 0.8758 GB, free: 12.55 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.024e-05/2.686, allocations: 17.12 kB / 0.8758 GB, free: 12.54 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/2.686, allocations: 11.56 kB / 0.8758 GB, free: 12.53 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002517/2.687, allocations: 219.7 kB / 0.876 GB, free: 12.36 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.7e-07/2.687, allocations: 0 / 0.876 GB, free: 12.36 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.006/2.693, allocations: 2.04 MB / 0.878 GB, free: 10.46 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.01159/2.704, allocations: 3.062 MB / 0.881 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001002/2.705, allocations: 443.3 kB / 0.8814 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/2.705, allocations: 4.312 kB / 0.8814 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000256/2.706, allocations: 187.2 kB / 0.8816 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/2.707, allocations: 223.8 kB / 0.8818 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/2.708, allocations: 1.089 MB / 0.8829 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004338/2.709, allocations: 0.8518 MB / 0.8837 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.418e-05/2.709, allocations: 38.81 kB / 0.8837 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of SimCode: time 4.4e-07/2.709, allocations: 4 kB / 0.8838 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of Templates: time 0.0624/2.771, allocations: 41.36 MB / 0.9241 GB, free: 12.01 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSteamEngine.pipe 2>&1)