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.7954/0.7954, allocations: 150.9 MB / 167.2 MB, free: 14.28 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003321/0.0003322, allocations: 19.58 kB / 237.8 MB, free: 1.852 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0503/0.05065, allocations: 31.35 MB / 269.1 MB, free: 7.047 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.624/1.674, allocations: 297.9 MB / 0.5538 GB, free: 9.977 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4925/2.167, allocations: 198.4 MB / 0.7476 GB, free: 1.598 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000823/2.168, allocations: 19.7 kB / 0.7476 GB, free: 1.598 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.0008513/2.169, allocations: 273 kB / 0.7478 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001192/2.17, allocations: 429.8 kB / 0.7482 GB, free: 1.59 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.04005/2.21, allocations: 14.28 MB / 0.7622 GB, free: 1.258 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002282/2.212, allocations: 1.537 MB / 0.7637 GB, free: 1.25 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009594/2.213, allocations: 0.7568 MB / 0.7644 GB, free: 1.16 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009626/2.214, allocations: 0.6246 MB / 0.765 GB, free: 1.156 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006861/2.215, allocations: 0.6535 MB / 0.7657 GB, free: 1.156 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001417/2.215, allocations: 124.9 kB / 0.7658 GB, free: 1.156 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04348/2.258, allocations: 20.32 MB / 0.7856 GB, free: 14.55 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0004976/2.259, allocations: 310.5 kB / 0.7859 GB, free: 14.5 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001072/2.26, allocations: 0.6798 MB / 0.7866 GB, free: 14.29 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.03175/2.292, allocations: 11.56 MB / 0.7979 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/2.292, allocations: 1.031 kB / 0.7979 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.994e-06/2.292, allocations: 0 / 0.7979 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.574e-05/2.292, allocations: 0 / 0.7979 GB, free: 9.762 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.009541/2.301, allocations: 2.857 MB / 0.8007 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/2.302, allocations: 8.031 kB / 0.8007 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005106/2.302, allocations: 154.2 kB / 0.8008 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/2.303, allocations: 0.6088 MB / 0.8014 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.887e-05/2.303, allocations: 96.84 kB / 0.8015 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002487/2.304, allocations: 112 kB / 0.8016 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003163/2.307, allocations: 1.285 MB / 0.8029 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001014/2.307, allocations: 7.406 kB / 0.8029 GB, free: 5.363 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001223/2.307, allocations: 48 kB / 0.8029 GB, free: 5.316 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-05/2.307, allocations: 36.86 kB / 0.803 GB, free: 5.281 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00203/2.309, allocations: 0.9899 MB / 0.8039 GB, free: 4.301 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.08079/2.39, allocations: 36.55 MB / 0.8396 GB, free: 12.92 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009135/2.391, allocations: 0.5982 MB / 0.8402 GB, free: 12.29 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005484/2.391, allocations: 340.2 kB / 0.8405 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8755/3.267, allocations: 347 MB / 1.179 GB, free: 278.9 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/3.267, allocations: 40.62 kB / 1.179 GB, free: 278.9 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=84): time 3.086e-06/3.267, allocations: 4 kB / 1.179 GB, free: 278.9 MB / 0.8262 GB Notification: Performance of matching and sorting (n=84): time 0.00381/3.271, allocations: 1.573 MB / 1.181 GB, free: 277.6 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.796e-05/3.271, allocations: 58.94 kB / 1.181 GB, free: 277.5 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008385/3.272, allocations: 0.7625 MB / 1.182 GB, free: 277 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.768e-05/3.272, allocations: 33.45 kB / 1.182 GB, free: 276.9 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.0003188/3.272, allocations: 0.5552 MB / 1.182 GB, free: 276.6 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000153/3.272, allocations: 296.9 kB / 1.183 GB, free: 276.3 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00024/3.273, allocations: 227.5 kB / 1.183 GB, free: 276.2 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.427e-05/3.273, allocations: 398 kB / 1.183 GB, free: 275.8 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004278/3.273, allocations: 291.4 kB / 1.184 GB, free: 275.6 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005415/3.274, allocations: 0.6254 MB / 1.184 GB, free: 275 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.00698/3.281, allocations: 2.523 MB / 1.187 GB, free: 272.9 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/3.281, allocations: 4 kB / 1.187 GB, free: 272.9 MB / 0.8262 GB Notification: Performance of matching and sorting (n=154) (initialization): time 0.002201/3.283, allocations: 1.368 MB / 1.188 GB, free: 272 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/3.283, allocations: 8 kB / 1.188 GB, free: 272 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.251e-05/3.283, allocations: 16.5 kB / 1.188 GB, free: 272 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003828/3.287, allocations: 1.191 MB / 1.189 GB, free: 270.9 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004442/3.287, allocations: 148.1 kB / 1.189 GB, free: 270.8 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00183/3.289, allocations: 2.294 MB / 1.191 GB, free: 268.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007706/3.29, allocations: 128.3 kB / 1.192 GB, free: 268.6 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.202e-05/3.29, allocations: 50.73 kB / 1.192 GB, free: 268.6 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.000485/3.29, allocations: 275.9 kB / 1.192 GB, free: 268.4 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/3.291, allocations: 98.72 kB / 1.192 GB, free: 268.3 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002195/3.293, allocations: 1.14 MB / 1.193 GB, free: 267.5 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/3.293, allocations: 5.672 kB / 1.193 GB, free: 267.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/3.293, allocations: 0 / 1.193 GB, free: 267.5 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002882/3.293, allocations: 250.5 kB / 1.193 GB, free: 267.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.528e-05/3.293, allocations: 22.62 kB / 1.193 GB, free: 267.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003646/3.294, allocations: 11 kB / 1.193 GB, free: 267.2 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.443e-05/3.294, allocations: 48.42 kB / 1.193 GB, free: 267.2 MB / 0.8262 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001926/3.296, allocations: 1.014 MB / 1.194 GB, free: 266.4 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001423/3.297, allocations: 1.383 MB / 1.196 GB, free: 265.5 MB / 0.8262 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003785/3.297, allocations: 366 kB / 1.196 GB, free: 265.3 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0005091/3.298, allocations: 0.4981 MB / 1.197 GB, free: 264.9 MB / 0.8262 GB Notification: Performance of Backend: time 4.71e-07/3.298, allocations: 0 / 1.197 GB, free: 264.9 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.01629/3.314, allocations: 4.725 MB / 1.201 GB, free: 261 MB / 0.8262 GB Notification: Performance of SimCode: time 0.002777/3.317, allocations: 2.764 MB / 1.204 GB, free: 258.3 MB / 0.8262 GB Notification: Performance of Templates: time 0.08806/3.405, allocations: 86.88 MB / 1.289 GB, free: 172.3 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)