Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer.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.TestPressurizer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8384/0.8384, allocations: 150.9 MB / 167.2 MB, free: 14.48 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003544/0.0003544, allocations: 16 kB / 237.8 MB, free: 1.77 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05928/0.05965, allocations: 31.35 MB / 269.1 MB, free: 7.043 MB / 222.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.TestPressurizer): time 1.651/1.711, allocations: 298.1 MB / 0.5539 GB, free: 9.883 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5257/2.237, allocations: 198.4 MB / 0.7477 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001006/2.238, allocations: 18.75 kB / 0.7477 GB, free: 1.578 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/ControlValve.mo:44:3-45:68: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/PressureLosses/ControlValve.mo:46:3-47:66: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/PressureLosses/ControlValve.mo:44:3-45:68: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/PressureLosses/ControlValve.mo:46:3-47:66: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/PressureLosses/LumpedStraightPipe.mo:54:3-55:67: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/PressureLosses/LumpedStraightPipe.mo:56:3-57:65: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/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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkQ.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/Volumes/Pressurizer.mo:97:3-98:63:writable] Warning: Connector Cas 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/Volumes/Pressurizer.mo:99:3-100:65:writable] Warning: Connector Cs 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/Volumes/Pressurizer.mo:112:3-113:65:writable] Warning: Connector Cex 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/SinkQ.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). Notification: Performance of NFTyping.typeComponents: time 0.00103/2.239, allocations: 292.1 kB / 0.748 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00139/2.24, allocations: 445 kB / 0.7484 GB, free: 1.574 MB / 0.5919 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/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.04356/2.284, allocations: 14.51 MB / 0.7626 GB, free: 1.238 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002408/2.286, allocations: 1.539 MB / 0.7641 GB, free: 1.23 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009983/2.287, allocations: 0.7506 MB / 0.7648 GB, free: 1.145 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008617/2.288, allocations: 0.6229 MB / 0.7654 GB, free: 1.145 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006518/2.289, allocations: 0.656 MB / 0.7661 GB, free: 1.145 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000153/2.289, allocations: 129.9 kB / 0.7662 GB, free: 1.145 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03977/2.329, allocations: 20.33 MB / 0.7861 GB, free: 14.55 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0005969/2.329, allocations: 311.2 kB / 0.7864 GB, free: 14.5 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001386/2.331, allocations: 0.6812 MB / 0.787 GB, free: 14.28 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.03455/2.365, allocations: 11.59 MB / 0.7983 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.626e-06/2.365, allocations: 2.875 kB / 0.7983 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.443e-06/2.365, allocations: 0.9688 kB / 0.7983 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.894e-05/2.365, allocations: 0 / 0.7983 GB, free: 9.547 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.01024/2.376, allocations: 2.96 MB / 0.8012 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/2.376, allocations: 8.031 kB / 0.8012 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004365/2.376, allocations: 160 kB / 0.8014 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/2.377, allocations: 0.6235 MB / 0.802 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.975e-05/2.377, allocations: 86.34 kB / 0.8021 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000223/2.377, allocations: 116 kB / 0.8022 GB, free: 6.23 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00229/2.38, allocations: 1.283 MB / 0.8034 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.949e-05/2.38, allocations: 3.031 kB / 0.8035 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.637e-05/2.38, allocations: 48.91 kB / 0.8035 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-05/2.38, allocations: 39.98 kB / 0.8035 GB, free: 4.785 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001859/2.382, allocations: 0.9945 MB / 0.8045 GB, free: 3.801 MB / 0.6075 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.07974/2.462, allocations: 36.57 MB / 0.8402 GB, free: 12.4 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/2.463, allocations: 0.5918 MB / 0.8408 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006007/2.463, allocations: 349.7 kB / 0.8411 GB, free: 11.44 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8436/3.307, allocations: 347 MB / 1.18 GB, free: 278.4 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/3.307, allocations: 36.19 kB / 1.18 GB, free: 278.4 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=84): time 4.629e-06/3.307, allocations: 0 / 1.18 GB, free: 278.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=84): time 0.004055/3.311, allocations: 1.575 MB / 1.182 GB, free: 277.1 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/3.311, allocations: 63.78 kB / 1.182 GB, free: 277 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009476/3.312, allocations: 0.7638 MB / 1.182 GB, free: 276.5 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.475e-05/3.312, allocations: 36.77 kB / 1.182 GB, free: 276.4 MB / 0.8262 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Examples/SimpleExamples/TestPressurizer.mo:6:3-7:27:writable] Warning: The parameter OUVfeedwaterValve has fixed = false and a binding equation OUVfeedwaterValve = 0.01, which is probably redundant. Setting fixed = false usually means there is an additional initial equation to determine the parameter value. The binding was ignored by old Modelica tools, but this is not according to the Modelica specification. Please remove the parameter binding, or bind the parameter to another parameter with fixed = false and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Examples/SimpleExamples/TestPressurizer.mo:4:3-5:47:writable] Warning: The parameter Wch has fixed = false and a binding equation Wch = 2.9e5, which is probably redundant. Setting fixed = false usually means there is an additional initial equation to determine the parameter value. The binding was ignored by old Modelica tools, but this is not according to the Modelica specification. Please remove the parameter binding, or bind the parameter to another parameter with fixed = false and no binding. Notification: Performance of collectInitialEqns (initialization): time 0.0003012/3.313, allocations: 0.5646 MB / 1.183 GB, free: 276.1 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/3.313, allocations: 318 kB / 1.183 GB, free: 275.9 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002577/3.313, allocations: 226.5 kB / 1.184 GB, free: 275.7 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.21e-05/3.313, allocations: 398 kB / 1.184 GB, free: 275.4 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004473/3.314, allocations: 292.6 kB / 1.184 GB, free: 275.2 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005558/3.314, allocations: 0.6285 MB / 1.185 GB, free: 274.5 MB / 0.8262 GB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.007172/3.321, allocations: 2.523 MB / 1.187 GB, free: 272.4 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.204e-05/3.321, allocations: 9.062 kB / 1.187 GB, free: 272.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=154) (initialization): time 0.002292/3.324, allocations: 1.357 MB / 1.189 GB, free: 271.5 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/3.324, allocations: 13.25 kB / 1.189 GB, free: 271.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/3.324, allocations: 12 kB / 1.189 GB, free: 271.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003771/3.327, allocations: 1.187 MB / 1.19 GB, free: 270.4 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004321/3.328, allocations: 152.1 kB / 1.19 GB, free: 270.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001677/3.33, allocations: 2.296 MB / 1.192 GB, free: 268.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007142/3.33, allocations: 132.5 kB / 1.192 GB, free: 268.2 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.438e-05/3.33, allocations: 50.11 kB / 1.192 GB, free: 268.1 MB / 0.8262 GB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: $DER.pressurizer.P = 0.0 pressurizer.P = $START.pressurizer.P. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 17 (pressurizer.Cex.ftype,pressurizer.Cs.ftype,sourceP.C.ftype,pressurizer.fluids[1],FeedwaterValve.fluid,SteamValve.fluid,lumpedStraightPipe.fluid,sinkQ.fluid,sinkQ1.fluid,sourceP.fluid1,pressurizer.Cs.diff_on_1,SteamValve.C2.diff_on_1,pressurizer.Cex.diff_on_1,pressurizer.Cas.diff_on_2,sourceP.C.diff_on_2,pressurizer.Cs.diff_on_2,FeedwaterValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (1,4), (4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0004721/3.331, allocations: 281.2 kB / 1.193 GB, free: 268 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001196/3.331, allocations: 99.33 kB / 1.193 GB, free: 267.9 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002156/3.333, allocations: 1.15 MB / 1.194 GB, free: 267.1 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/3.333, allocations: 3.984 kB / 1.194 GB, free: 267.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/3.333, allocations: 4 kB / 1.194 GB, free: 267.1 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/3.333, allocations: 246.5 kB / 1.194 GB, free: 266.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.67e-05/3.334, allocations: 14.11 kB / 1.194 GB, free: 266.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003434/3.334, allocations: 14.8 kB / 1.194 GB, free: 266.8 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/3.334, allocations: 47.92 kB / 1.194 GB, free: 266.8 MB / 0.8262 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001964/3.336, allocations: 1.015 MB / 1.195 GB, free: 266 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001458/3.337, allocations: 1.394 MB / 1.196 GB, free: 265.1 MB / 0.8262 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004058/3.338, allocations: 361.1 kB / 1.197 GB, free: 264.9 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004952/3.338, allocations: 0.4921 MB / 1.197 GB, free: 264.5 MB / 0.8262 GB Notification: Performance of Backend: time 3.81e-07/3.338, allocations: 0 / 1.197 GB, free: 264.5 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0155/3.354, allocations: 4.777 MB / 1.202 GB, free: 260.5 MB / 0.8262 GB Notification: Performance of SimCode: time 0.002717/3.357, allocations: 2.799 MB / 1.205 GB, free: 257.6 MB / 0.8262 GB Notification: Performance of Templates: time 0.08879/3.445, allocations: 86.89 MB / 1.29 GB, free: 171.6 MB / 0.8262 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer.pipe 2>&1)