Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.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.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7441/0.7441, allocations: 150.9 MB / 167.1 MB, free: 14.24 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003315/0.0003315, allocations: 11.53 kB / 237.7 MB, free: 1.93 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05094/0.05128, allocations: 31.35 MB / 269 MB, free: 7.102 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.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.453/1.504, allocations: 294.5 MB / 0.5503 GB, free: 13.2 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03869/1.543, allocations: 34.77 MB / 0.5842 GB, free: 10.29 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002378/1.543, allocations: 0 / 0.5842 GB, free: 10.29 MB / 478.1 MB [/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). [/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/PressureLosses/ControlValve.mo:45:3-47:43: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/PressureLosses/ControlValve.mo:48:3-50:38:writable] Warning: Connector C2 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.0004891/1.544, allocations: 163.3 kB / 0.5844 GB, free: 10.13 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003229/1.544, allocations: 147 kB / 0.5845 GB, free: 9.984 MB / 478.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/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. Notification: Performance of NFTyping.typeClassSections: time 0.02371/1.568, allocations: 9.73 MB / 0.594 GB, free: 244 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005407/1.568, allocations: 390.3 kB / 0.5944 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001885/1.568, allocations: 132.6 kB / 0.5945 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002083/1.569, allocations: 167.3 kB / 0.5947 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001781/1.569, allocations: 167.3 kB / 0.5948 GB, free: 15.4 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.726e-05/1.569, allocations: 20 kB / 0.5949 GB, free: 15.38 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02676/1.596, allocations: 17.97 MB / 0.6124 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001338/1.596, allocations: 71.75 kB / 0.6125 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001828/1.596, allocations: 167 kB / 0.6126 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01664/1.613, allocations: 8.523 MB / 0.621 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/1.613, allocations: 0 / 0.621 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.502e-06/1.613, allocations: 0 / 0.621 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.13e-05/1.613, allocations: 0 / 0.621 GB, free: 4.617 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.003796/1.616, allocations: 1.52 MB / 0.6224 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/1.616, allocations: 12.03 kB / 0.6224 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.292e-05/1.617, allocations: 47.41 kB / 0.6225 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/1.617, allocations: 290.1 kB / 0.6228 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/1.617, allocations: 12.44 kB / 0.6228 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/1.617, allocations: 20 kB / 0.6228 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004351/1.617, allocations: 327.4 kB / 0.6231 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/1.617, allocations: 0 / 0.6231 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.938e-05/1.617, allocations: 8 kB / 0.6231 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/1.617, allocations: 11.98 kB / 0.6231 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002802/1.618, allocations: 216.9 kB / 0.6233 GB, free: 2.062 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.03553/1.653, allocations: 18.23 MB / 0.6411 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002009/1.653, allocations: 138.5 kB / 0.6413 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/1.654, allocations: 112.8 kB / 0.6414 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3051/1.959, allocations: 77.73 MB / 0.7173 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/1.959, allocations: 33.69 kB / 0.7173 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.425e-06/1.959, allocations: 0 / 0.7173 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0009771/1.96, allocations: 0.4981 MB / 0.7178 GB, free: 212 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.947e-05/1.96, allocations: 55.05 kB / 0.7179 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002874/1.96, allocations: 356.9 kB / 0.7182 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/1.96, allocations: 25.7 kB / 0.7182 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.953e-05/1.96, allocations: 185.7 kB / 0.7184 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.098e-05/1.96, allocations: 113.7 kB / 0.7185 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.482e-05/1.96, allocations: 53.34 kB / 0.7186 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.172e-05/1.96, allocations: 340.9 kB / 0.7189 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/1.96, allocations: 92.55 kB / 0.719 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001132/1.961, allocations: 135.5 kB / 0.7191 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002106/1.961, allocations: 252.4 kB / 0.7193 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/1.961, allocations: 2.875 kB / 0.7193 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003882/1.961, allocations: 341.2 kB / 0.7197 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/1.961, allocations: 12.5 kB / 0.7197 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/1.961, allocations: 0 / 0.7197 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006942/1.962, allocations: 135.5 kB / 0.7198 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.013e-05/1.962, allocations: 14.95 kB / 0.7198 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000361/1.962, allocations: 0.6177 MB / 0.7204 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.937e-05/1.963, allocations: 22.12 kB / 0.7205 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/1.963, allocations: 8.969 kB / 0.7205 GB, free: 210.6 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (ControlValve.C2.b,ControlValve.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * 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.0001025/1.963, allocations: 159.7 kB / 0.7206 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.212e-05/1.963, allocations: 33.09 kB / 0.7206 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006061/1.963, allocations: 0.6589 MB / 0.7213 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003272/1.964, allocations: 259.6 kB / 0.7215 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/1.964, allocations: 3.984 kB / 0.7215 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/1.964, allocations: 0 / 0.7215 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008032/1.964, allocations: 0.8239 MB / 0.7223 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/1.964, allocations: 2.844 kB / 0.7223 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.9e-05/1.965, allocations: 19.72 kB / 0.7224 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002914/1.965, allocations: 105 kB / 0.7225 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/1.965, allocations: 7.266 kB / 0.7225 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003164/1.965, allocations: 0.6304 MB / 0.7231 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/1.965, allocations: 0 / 0.7231 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/1.966, allocations: 396.3 kB / 0.7235 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.31e-05/1.966, allocations: 117.8 kB / 0.7236 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.742e-05/1.966, allocations: 12.84 kB / 0.7236 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/1.966, allocations: 3.281 kB / 0.7236 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.925e-05/1.966, allocations: 6.609 kB / 0.7236 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/1.966, allocations: 9.906 kB / 0.7236 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002473/1.966, allocations: 331.5 kB / 0.7239 GB, free: 209 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.21e-07/1.966, allocations: 0 / 0.7239 GB, free: 209 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002798/1.969, allocations: 1.211 MB / 0.7251 GB, free: 208.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003713/1.973, allocations: 1.749 MB / 0.7268 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005491/1.973, allocations: 288.6 kB / 0.7271 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/1.973, allocations: 1.031 kB / 0.7271 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002395/1.973, allocations: 116.1 kB / 0.7272 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006553/1.974, allocations: 128.5 kB / 0.7273 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008254/1.975, allocations: 0.6903 MB / 0.728 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002002/1.975, allocations: 0.8034 MB / 0.7288 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.732e-05/1.975, allocations: 27.72 kB / 0.7288 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of SimCode: time 2.3e-07/1.975, allocations: 4.5 kB / 0.7288 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of Templates: time 0.02712/2.002, allocations: 26.06 MB / 0.7543 GB, free: 194.5 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)