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.4814/0.4814, allocations: 111.6 MB / 131.5 MB, free: 4.906 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.794e-06/1.794e-06, allocations: 0 / 176.6 MB, free: 8.973 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.892e-05/2.071e-05, allocations: 6.312 kB / 176.6 MB, free: 8.965 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.032/1.032, allocations: 262.9 MB / 439.5 MB, free: 15.01 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.3249/1.357, allocations: 181.1 MB / 0.6061 GB, free: 14.97 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002506/1.357, allocations: 11.88 kB / 0.6061 GB, free: 14.96 MB / 0.5261 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.0002543/1.358, allocations: 99.42 kB / 0.6062 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0002552/1.358, allocations: 174.7 kB / 0.6063 GB, free: 14.69 MB / 0.5261 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.02078/1.379, allocations: 11.85 MB / 0.6179 GB, free: 2.812 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0004548/1.379, allocations: 446.5 kB / 0.6183 GB, free: 2.375 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002193/1.379, allocations: 210.6 kB / 0.6185 GB, free: 2.156 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002223/1.38, allocations: 283.3 kB / 0.6188 GB, free: 1.879 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001406/1.38, allocations: 163.6 kB / 0.619 GB, free: 1.719 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.054e-05/1.38, allocations: 40 kB / 0.619 GB, free: 1.68 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02147/1.401, allocations: 18.68 MB / 0.6372 GB, free: 14.97 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001502/1.401, allocations: 123.5 kB / 0.6374 GB, free: 14.85 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0001863/1.402, allocations: 139.7 kB / 0.6375 GB, free: 14.71 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.01512/1.417, allocations: 12.3 MB / 0.6495 GB, free: 2.387 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/1.417, allocations: 0 / 0.6495 GB, free: 2.387 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.573e-06/1.417, allocations: 0 / 0.6495 GB, free: 2.387 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.889e-06/1.417, allocations: 0 / 0.6495 GB, free: 2.387 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.003135/1.42, allocations: 1.832 MB / 0.6513 GB, free: 0.5195 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/1.42, allocations: 19.97 kB / 0.6513 GB, free: 0.5 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.71e-05/1.42, allocations: 59.95 kB / 0.6514 GB, free: 452 kB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002865/1.42, allocations: 283.2 kB / 0.6516 GB, free: 140 kB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.598e-05/1.42, allocations: 29 kB / 0.6517 GB, free: 112 kB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.468e-05/1.42, allocations: 32 kB / 0.6517 GB, free: 80 kB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002681/1.421, allocations: 296.4 kB / 0.652 GB, free: 15.76 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/1.421, allocations: 3.938 kB / 0.652 GB, free: 15.75 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/1.421, allocations: 16 kB / 0.652 GB, free: 15.74 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/1.421, allocations: 12.69 kB / 0.652 GB, free: 15.73 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001252/1.421, allocations: 109.9 kB / 0.6521 GB, free: 15.62 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004423/1.425, allocations: 3.409 MB / 0.6554 GB, free: 12.18 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001087/1.425, allocations: 110.5 kB / 0.6555 GB, free: 12.06 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.007e-05/1.425, allocations: 12.86 kB / 0.6556 GB, free: 12.04 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3163/1.742, allocations: 60.8 MB / 0.7149 GB, free: 94.95 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/1.742, allocations: 34.44 kB / 0.715 GB, free: 94.91 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 2.024e-06/1.742, allocations: 0 / 0.715 GB, free: 94.91 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0004539/1.742, allocations: 130.5 kB / 0.7151 GB, free: 94.87 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.881e-05/1.742, allocations: 56.73 kB / 0.7151 GB, free: 94.8 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002739/1.742, allocations: 356.5 kB / 0.7155 GB, free: 94.69 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.303e-06/1.742, allocations: 26.3 kB / 0.7155 GB, free: 94.66 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/1.742, allocations: 248.5 kB / 0.7157 GB, free: 94.57 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.832e-05/1.742, allocations: 27.77 kB / 0.7158 GB, free: 94.56 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.972e-05/1.743, allocations: 68.72 kB / 0.7158 GB, free: 94.54 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.818e-05/1.743, allocations: 343.2 kB / 0.7162 GB, free: 94.22 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.914e-05/1.743, allocations: 23.12 kB / 0.7162 GB, free: 94.22 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.589e-05/1.743, allocations: 131.2 kB / 0.7163 GB, free: 94.1 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000118/1.743, allocations: 164.7 kB / 0.7165 GB, free: 93.98 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/1.743, allocations: 2.156 kB / 0.7165 GB, free: 93.98 MB / 0.6198 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002658/1.743, allocations: 194 kB / 0.7167 GB, free: 93.94 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/1.743, allocations: 6.031 kB / 0.7167 GB, free: 93.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/1.743, allocations: 8.375 kB / 0.7167 GB, free: 93.94 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003041/1.743, allocations: 62.98 kB / 0.7167 GB, free: 93.93 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.333e-05/1.743, allocations: 36.64 kB / 0.7168 GB, free: 93.93 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001898/1.744, allocations: 0.5395 MB / 0.7173 GB, free: 93.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.927e-05/1.744, allocations: 26.75 kB / 0.7173 GB, free: 93.41 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/1.744, allocations: 12.34 kB / 0.7173 GB, free: 93.41 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 7.698e-05/1.744, allocations: 129.6 kB / 0.7175 GB, free: 93.29 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.06e-05/1.744, allocations: 21.83 kB / 0.7175 GB, free: 93.29 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002265/1.744, allocations: 144.7 kB / 0.7176 GB, free: 93.23 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/1.744, allocations: 1.906 kB / 0.7176 GB, free: 93.23 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/1.744, allocations: 1.531 kB / 0.7176 GB, free: 93.23 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/1.744, allocations: 2.797 kB / 0.7176 GB, free: 93.23 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001847/1.744, allocations: 176.6 kB / 0.7178 GB, free: 93.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/1.744, allocations: 1.75 kB / 0.7178 GB, free: 93.15 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.557e-05/1.744, allocations: 4.969 kB / 0.7178 GB, free: 93.15 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001685/1.744, allocations: 47.8 kB / 0.7178 GB, free: 93.14 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/1.744, allocations: 4.734 kB / 0.7178 GB, free: 93.14 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001453/1.745, allocations: 0.5421 MB / 0.7184 GB, free: 92.62 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/1.745, allocations: 1.953 kB / 0.7184 GB, free: 92.62 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001432/1.745, allocations: 139 kB / 0.7185 GB, free: 92.55 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.931e-05/1.745, allocations: 45.53 kB / 0.7186 GB, free: 92.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/1.745, allocations: 5.891 kB / 0.7186 GB, free: 92.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.919e-05/1.745, allocations: 5.656 kB / 0.7186 GB, free: 92.53 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.288e-05/1.745, allocations: 4.75 kB / 0.7186 GB, free: 92.53 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/1.745, allocations: 6.469 kB / 0.7186 GB, free: 92.53 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001175/1.745, allocations: 137.7 kB / 0.7187 GB, free: 92.51 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/1.745, allocations: 2.125 kB / 0.7187 GB, free: 92.51 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002769/1.748, allocations: 1.482 MB / 0.7202 GB, free: 92.5 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.003878/1.752, allocations: 2.569 MB / 0.7227 GB, free: 92.39 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002354/1.752, allocations: 108.7 kB / 0.7228 GB, free: 92.38 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/1.752, allocations: 8.094 kB / 0.7228 GB, free: 92.38 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.3e-05/1.752, allocations: 38.7 kB / 0.7228 GB, free: 92.38 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000194/1.752, allocations: 69.86 kB / 0.7229 GB, free: 92.37 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008283/1.753, allocations: 0.6088 MB / 0.7235 GB, free: 92.03 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.074e-05/1.753, allocations: 104.6 kB / 0.7236 GB, free: 91.96 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 8.158e-05/1.753, allocations: 38.34 kB / 0.7236 GB, free: 91.95 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.319e-05/1.753, allocations: 99.98 kB / 0.7237 GB, free: 91.91 MB / 0.6198 GB Notification: Performance of SimCode: time 9.62e-07/1.753, allocations: 0 / 0.7237 GB, free: 91.91 MB / 0.6198 GB Notification: Performance of Templates: time 0.04106/1.794, allocations: 54.42 MB / 0.7769 GB, free: 72.12 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: 5.756150810979307]