Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.4996/0.4996, allocations: 111.6 MB / 132.2 MB, free: 4.414 MB / 122.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 177.3 MB, free: 8.98 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.159e-05/1.302e-05, allocations: 2.312 kB / 177.3 MB, free: 8.977 MB / 170.7 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.05/1.05, allocations: 257.1 MB / 434.4 MB, free: 184 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3052/1.355, allocations: 178.5 MB / 0.5985 GB, free: 3.473 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001976/1.355, allocations: 7.938 kB / 0.5985 GB, free: 3.465 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourceP.mo:39:3-40:78: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 master/Fluid/BoundaryConditions/SinkP.mo:32:3-33:80: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 master/Fluid/PressureLosses/ControlValve.mo:29:3-30:81: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 master/Fluid/PressureLosses/ControlValve.mo:31:3-32:79:writable] Warning: Connector C2 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.0002267/1.355, allocations: 107.4 kB / 0.5986 GB, free: 3.359 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002427/1.356, allocations: 174.7 kB / 0.5987 GB, free: 3.188 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:470:9-470: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 master/Properties/WaterSteam/IF97_packages.mo:525:9-525: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 master/Properties/WaterSteam/IF97_packages.mo:708:9-708: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 master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51: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 master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51: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 master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151: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 master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151: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 master/Properties/Fluid/derDensity_derP_derh.mo:56:5-56:88: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.02002/1.376, allocations: 11.74 MB / 0.6102 GB, free: 7.414 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0004428/1.376, allocations: 454.5 kB / 0.6106 GB, free: 6.969 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/1.376, allocations: 193.2 kB / 0.6108 GB, free: 6.773 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000213/1.377, allocations: 271.4 kB / 0.6111 GB, free: 6.508 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/1.377, allocations: 191.5 kB / 0.6113 GB, free: 6.32 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.215e-05/1.377, allocations: 32 kB / 0.6113 GB, free: 6.289 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02271/1.399, allocations: 18.7 MB / 0.6295 GB, free: 3.566 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001492/1.4, allocations: 123.5 kB / 0.6297 GB, free: 3.445 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001559/1.4, allocations: 139.7 kB / 0.6298 GB, free: 3.309 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.01811/1.418, allocations: 12.3 MB / 0.6418 GB, free: 6.98 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/1.418, allocations: 0 / 0.6418 GB, free: 6.98 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.372e-06/1.418, allocations: 0 / 0.6418 GB, free: 6.98 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 7.043e-06/1.418, allocations: 0 / 0.6418 GB, free: 6.98 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.003207/1.421, allocations: 1.968 MB / 0.6437 GB, free: 4.965 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/1.421, allocations: 15.98 kB / 0.6437 GB, free: 4.949 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.318e-05/1.421, allocations: 83.67 kB / 0.6438 GB, free: 4.867 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002845/1.422, allocations: 306 kB / 0.6441 GB, free: 4.539 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.704e-05/1.422, allocations: 29.81 kB / 0.6441 GB, free: 4.512 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.645e-05/1.422, allocations: 32 kB / 0.6442 GB, free: 4.48 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002869/1.422, allocations: 310.5 kB / 0.6445 GB, free: 4.141 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/1.422, allocations: 0 / 0.6445 GB, free: 4.141 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.1e-05/1.422, allocations: 16 kB / 0.6445 GB, free: 4.125 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/1.422, allocations: 11.94 kB / 0.6445 GB, free: 4.113 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001445/1.422, allocations: 131 kB / 0.6446 GB, free: 3.988 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00383/1.426, allocations: 3.294 MB / 0.6478 GB, free: 0.6406 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001128/1.426, allocations: 63.17 kB / 0.6479 GB, free: 0.5664 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.505e-05/1.426, allocations: 27.67 kB / 0.6479 GB, free: 0.5352 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1029/1.529, allocations: 58.51 MB / 0.7051 GB, free: 5.965 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/1.529, allocations: 33.39 kB / 0.7051 GB, free: 5.922 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.983e-06/1.529, allocations: 0 / 0.7051 GB, free: 5.922 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.000494/1.529, allocations: 177.2 kB / 0.7053 GB, free: 5.738 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.202e-05/1.529, allocations: 51.41 kB / 0.7053 GB, free: 5.676 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002854/1.53, allocations: 434.4 kB / 0.7057 GB, free: 5.234 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/1.53, allocations: 29.7 kB / 0.7058 GB, free: 5.199 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.000148/1.53, allocations: 334.5 kB / 0.7061 GB, free: 4.867 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.701e-05/1.53, allocations: 31.77 kB / 0.7061 GB, free: 4.836 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.448e-05/1.53, allocations: 67.25 kB / 0.7062 GB, free: 4.762 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001201/1.53, allocations: 0.5234 MB / 0.7067 GB, free: 4.227 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.994e-05/1.53, allocations: 23.97 kB / 0.7067 GB, free: 4.203 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.415e-05/1.53, allocations: 175.3 kB / 0.7069 GB, free: 3.973 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/1.53, allocations: 207.1 kB / 0.7071 GB, free: 3.707 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/1.53, allocations: 3.984 kB / 0.7071 GB, free: 3.703 MB / 0.6198 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002981/1.531, allocations: 234.7 kB / 0.7073 GB, free: 3.465 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/1.531, allocations: 8 kB / 0.7073 GB, free: 3.457 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/1.531, allocations: 7.938 kB / 0.7073 GB, free: 3.449 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003329/1.531, allocations: 63.61 kB / 0.7074 GB, free: 3.383 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-05/1.531, allocations: 39.92 kB / 0.7074 GB, free: 3.344 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003334/1.531, allocations: 0.8274 MB / 0.7082 GB, free: 2.484 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.807e-05/1.532, allocations: 24.53 kB / 0.7082 GB, free: 2.461 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/1.532, allocations: 8 kB / 0.7083 GB, free: 2.453 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (ControlValve.C2.diff_on_1,SourceP1.C.diff_on_2,SourceP1.fluid1,ControlValve.fluid,PuitsP1.fluid,SourceP1.C.ftype) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001013/1.532, allocations: 172.5 kB / 0.7084 GB, free: 2.273 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/1.532, allocations: 39.77 kB / 0.7085 GB, free: 2.234 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002509/1.532, allocations: 165.4 kB / 0.7086 GB, free: 2.059 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/1.532, allocations: 0.5 kB / 0.7086 GB, free: 2.059 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/1.532, allocations: 0 / 0.7086 GB, free: 2.059 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/1.532, allocations: 0 / 0.7086 GB, free: 2.059 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/1.532, allocations: 213 kB / 0.7088 GB, free: 1.824 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/1.532, allocations: 4.562 kB / 0.7088 GB, free: 1.82 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.826e-05/1.532, allocations: 7.938 kB / 0.7088 GB, free: 1.812 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001865/1.532, allocations: 52.17 kB / 0.7089 GB, free: 1.758 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/1.532, allocations: 9.609 kB / 0.7089 GB, free: 1.75 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002837/1.533, allocations: 0.8117 MB / 0.7097 GB, free: 0.9062 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/1.533, allocations: 32 / 0.7097 GB, free: 0.9062 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001787/1.533, allocations: 175.7 kB / 0.7098 GB, free: 0.707 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.173e-05/1.533, allocations: 55.66 kB / 0.7099 GB, free: 0.6523 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.054e-05/1.533, allocations: 4 kB / 0.7099 GB, free: 0.6484 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.248e-05/1.533, allocations: 4 kB / 0.7099 GB, free: 0.6445 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.268e-05/1.533, allocations: 3.984 kB / 0.7099 GB, free: 0.6406 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/1.533, allocations: 4 kB / 0.7099 GB, free: 0.6367 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000135/1.533, allocations: 267 kB / 0.7102 GB, free: 388 kB / 0.6198 GB Notification: Performance of sort global known variables: time 1.71e-07/1.533, allocations: 0 / 0.7102 GB, free: 388 kB / 0.6198 GB Notification: Performance of remove unused functions: time 0.1984/1.732, allocations: 1.479 MB / 0.7116 GB, free: 98.05 MB / 0.6198 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 (4): * Single equations (assignments): 3 * 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.005349/1.737, allocations: 2.502 MB / 0.7141 GB, free: 97.94 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004309/1.737, allocations: 115.3 kB / 0.7142 GB, free: 97.93 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/1.737, allocations: 0.75 kB / 0.7142 GB, free: 97.93 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 8.191e-05/1.737, allocations: 43.48 kB / 0.7142 GB, free: 97.91 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/1.738, allocations: 75.16 kB / 0.7143 GB, free: 97.91 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/1.739, allocations: 0.605 MB / 0.7149 GB, free: 97.57 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.328e-05/1.739, allocations: 105.6 kB / 0.715 GB, free: 97.5 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001039/1.739, allocations: 37.03 kB / 0.715 GB, free: 97.5 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/1.739, allocations: 122.2 kB / 0.7151 GB, free: 97.43 MB / 0.6198 GB Notification: Performance of SimCode: time 1.212e-06/1.739, allocations: 0.75 kB / 0.7151 GB, free: 97.43 MB / 0.6198 GB Notification: Performance of Templates: time 0.04535/1.784, allocations: 55.19 MB / 0.769 GB, free: 78.29 MB / 0.6198 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.128360397648066]