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.9193/0.9193, allocations: 150.9 MB / 166.5 MB, free: 14.71 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003234/0.0003234, allocations: 12.11 kB / 237 MB, free: 1.773 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05228/0.05262, allocations: 31.34 MB / 268.4 MB, free: 7.16 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.608/1.661, allocations: 294.7 MB / 0.5498 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03945/1.701, allocations: 34.75 MB / 0.5838 GB, free: 10.16 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002056/1.701, allocations: 4 kB / 0.5838 GB, free: 10.15 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.0004585/1.701, allocations: 171.1 kB / 0.5839 GB, free: 9.984 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002278/1.701, allocations: 147.1 kB / 0.5841 GB, free: 9.84 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.02306/1.725, allocations: 9.729 MB / 0.5936 GB, free: 92 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006253/1.725, allocations: 390.3 kB / 0.5939 GB, free: 15.71 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/1.725, allocations: 143.2 kB / 0.5941 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002332/1.726, allocations: 171.2 kB / 0.5942 GB, free: 15.41 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002178/1.726, allocations: 167.4 kB / 0.5944 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.016e-05/1.726, allocations: 16 kB / 0.5944 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02926/1.755, allocations: 17.95 MB / 0.612 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001428/1.755, allocations: 75.7 kB / 0.612 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002008/1.756, allocations: 171 kB / 0.6122 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01832/1.774, allocations: 8.519 MB / 0.6205 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/1.774, allocations: 0 / 0.6205 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.064e-06/1.774, allocations: 0 / 0.6205 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.546e-06/1.774, allocations: 0 / 0.6205 GB, free: 4.469 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.004002/1.778, allocations: 1.52 MB / 0.622 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/1.778, allocations: 16.02 kB / 0.622 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.355e-05/1.778, allocations: 39.47 kB / 0.622 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/1.778, allocations: 290 kB / 0.6223 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/1.778, allocations: 20.44 kB / 0.6223 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.727e-05/1.779, allocations: 19.94 kB / 0.6224 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004547/1.779, allocations: 319.4 kB / 0.6227 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/1.779, allocations: 3.984 kB / 0.6227 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/1.779, allocations: 12 kB / 0.6227 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/1.779, allocations: 15.98 kB / 0.6227 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002971/1.779, allocations: 205 kB / 0.6229 GB, free: 1.918 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.03873/1.818, allocations: 18.23 MB / 0.6407 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002121/1.818, allocations: 142.5 kB / 0.6408 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/1.818, allocations: 104.8 kB / 0.6409 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3325/2.151, allocations: 77.73 MB / 0.7168 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/2.151, allocations: 30.56 kB / 0.7169 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.594e-06/2.151, allocations: 4 kB / 0.7169 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001052/2.152, allocations: 0.4922 MB / 0.7174 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.432e-05/2.152, allocations: 53.03 kB / 0.7174 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003035/2.152, allocations: 365.9 kB / 0.7178 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.002e-05/2.152, allocations: 29.7 kB / 0.7178 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.38e-05/2.153, allocations: 183.7 kB / 0.718 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.428e-05/2.153, allocations: 106.5 kB / 0.7181 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.332e-05/2.153, allocations: 51.42 kB / 0.7181 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.822e-05/2.153, allocations: 343.8 kB / 0.7184 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/2.153, allocations: 94.61 kB / 0.7185 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/2.153, allocations: 140.9 kB / 0.7187 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000222/2.153, allocations: 246.7 kB / 0.7189 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/2.153, allocations: 0 / 0.7189 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003764/2.154, allocations: 347.5 kB / 0.7192 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/2.154, allocations: 7.156 kB / 0.7192 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/2.154, allocations: 0.5625 kB / 0.7192 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007722/2.154, allocations: 144.8 kB / 0.7194 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.472e-05/2.155, allocations: 14.03 kB / 0.7194 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000394/2.155, allocations: 0.6135 MB / 0.72 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/2.155, allocations: 25.22 kB / 0.72 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/2.155, allocations: 13.16 kB / 0.72 GB, free: 210.2 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.000131/2.155, allocations: 160.7 kB / 0.7202 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.751e-05/2.155, allocations: 32.59 kB / 0.7202 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006502/2.156, allocations: 0.6509 MB / 0.7208 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003514/2.156, allocations: 263 kB / 0.7211 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/2.156, allocations: 4.938 kB / 0.7211 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/2.156, allocations: 1.875 kB / 0.7211 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008491/2.157, allocations: 0.8274 MB / 0.7219 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/2.157, allocations: 2.953 kB / 0.7219 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.092e-05/2.157, allocations: 14.22 kB / 0.7219 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003247/2.158, allocations: 110.3 kB / 0.722 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/2.158, allocations: 4.938 kB / 0.722 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003488/2.158, allocations: 0.63 MB / 0.7227 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/2.158, allocations: 1.594 kB / 0.7227 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004089/2.158, allocations: 389.5 kB / 0.723 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.631e-05/2.158, allocations: 119 kB / 0.7231 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.598e-05/2.158, allocations: 21.19 kB / 0.7232 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/2.159, allocations: 0 / 0.7232 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.769e-05/2.159, allocations: 12.11 kB / 0.7232 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/2.159, allocations: 3.297 kB / 0.7232 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002721/2.159, allocations: 336.2 kB / 0.7235 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.51e-07/2.159, allocations: 0 / 0.7235 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002549/2.161, allocations: 1.206 MB / 0.7247 GB, free: 208.4 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.004052/2.166, allocations: 1.751 MB / 0.7264 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005623/2.166, allocations: 285.1 kB / 0.7267 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/2.166, allocations: 0 / 0.7267 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002661/2.166, allocations: 115.8 kB / 0.7268 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007676/2.167, allocations: 123 kB / 0.7269 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008646/2.168, allocations: 0.6569 MB / 0.7275 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/2.168, allocations: 0.8079 MB / 0.7283 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.898e-05/2.168, allocations: 32.64 kB / 0.7283 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.699e-05/2.168, allocations: 23.75 kB / 0.7284 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of SimCode: time 2.41e-07/2.168, allocations: 2.906 kB / 0.7284 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of Templates: time 0.04328/2.212, allocations: 43.08 MB / 0.7704 GB, free: 176.9 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)