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.497/0.497, allocations: 111.6 MB / 131.2 MB, free: 4.559 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 2.274e-06/2.274e-06, allocations: 0 / 176.1 MB, free: 8.941 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.289e-05/2.517e-05, allocations: 2.312 kB / 176.2 MB, free: 8.938 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.051/1.051, allocations: 257.1 MB / 433.2 MB, free: 312 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3333/1.385, allocations: 181.9 MB / 0.6007 GB, free: 0.6367 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00019/1.385, allocations: 11.88 kB / 0.6007 GB, free: 0.625 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.0002238/1.385, allocations: 95.45 kB / 0.6008 GB, free: 0.5312 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002493/1.385, allocations: 182.7 kB / 0.601 GB, free: 360 kB / 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.01975/1.405, allocations: 11.75 MB / 0.6124 GB, free: 4.574 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0004085/1.405, allocations: 446.5 kB / 0.6129 GB, free: 4.137 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002458/1.406, allocations: 201.7 kB / 0.613 GB, free: 3.934 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002184/1.406, allocations: 267.4 kB / 0.6133 GB, free: 3.672 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/1.406, allocations: 179.5 kB / 0.6135 GB, free: 3.496 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.609e-05/1.406, allocations: 32 kB / 0.6135 GB, free: 3.465 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02196/1.428, allocations: 18.71 MB / 0.6318 GB, free: 0.7305 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001353/1.428, allocations: 119.6 kB / 0.6319 GB, free: 0.6133 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001484/1.428, allocations: 139.6 kB / 0.632 GB, free: 488 kB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.01647/1.445, allocations: 12.29 MB / 0.644 GB, free: 4.156 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/1.445, allocations: 0 / 0.644 GB, free: 4.156 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.643e-06/1.445, allocations: 8 kB / 0.644 GB, free: 4.148 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.811e-06/1.445, allocations: 0 / 0.644 GB, free: 4.148 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.003303/1.448, allocations: 1.968 MB / 0.6459 GB, free: 2.133 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/1.448, allocations: 15.97 kB / 0.646 GB, free: 2.117 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.636e-05/1.448, allocations: 83.67 kB / 0.646 GB, free: 2.035 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000321/1.449, allocations: 314 kB / 0.6463 GB, free: 1.699 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.933e-05/1.449, allocations: 29 kB / 0.6464 GB, free: 1.672 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.504e-05/1.449, allocations: 36.56 kB / 0.6464 GB, free: 1.637 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003665/1.449, allocations: 330.6 kB / 0.6467 GB, free: 1.277 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/1.449, allocations: 3.984 kB / 0.6467 GB, free: 1.273 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/1.449, allocations: 16 kB / 0.6467 GB, free: 1.258 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/1.449, allocations: 11.94 kB / 0.6467 GB, free: 1.246 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000216/1.449, allocations: 159.7 kB / 0.6469 GB, free: 1.09 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004281/1.454, allocations: 3.426 MB / 0.6502 GB, free: 13.6 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001379/1.454, allocations: 87.16 kB / 0.6503 GB, free: 13.5 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.633e-05/1.454, allocations: 31.67 kB / 0.6504 GB, free: 13.47 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3266/1.78, allocations: 67.35 MB / 0.7161 GB, free: 95.84 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/1.78, allocations: 35.42 kB / 0.7162 GB, free: 95.79 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.963e-06/1.78, allocations: 0 / 0.7162 GB, free: 95.79 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.000597/1.781, allocations: 183.2 kB / 0.7163 GB, free: 95.75 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.09e-05/1.781, allocations: 60.59 kB / 0.7164 GB, free: 95.69 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003577/1.781, allocations: 439.4 kB / 0.7168 GB, free: 95.52 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 9.117e-06/1.781, allocations: 26.48 kB / 0.7168 GB, free: 95.48 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/1.781, allocations: 322.5 kB / 0.7171 GB, free: 95.33 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.398e-05/1.781, allocations: 29.55 kB / 0.7172 GB, free: 95.32 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.676e-05/1.782, allocations: 69.7 kB / 0.7172 GB, free: 95.29 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.315e-05/1.782, allocations: 0.519 MB / 0.7177 GB, free: 94.79 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.042e-05/1.782, allocations: 33.69 kB / 0.7178 GB, free: 94.79 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.511e-05/1.782, allocations: 179.2 kB / 0.718 GB, free: 94.62 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001614/1.782, allocations: 221.2 kB / 0.7182 GB, free: 94.44 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/1.782, allocations: 2.781 kB / 0.7182 GB, free: 94.44 MB / 0.6198 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003906/1.782, allocations: 268.7 kB / 0.7184 GB, free: 94.38 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/1.782, allocations: 8.188 kB / 0.7184 GB, free: 94.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/1.782, allocations: 3.719 kB / 0.7184 GB, free: 94.38 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004325/1.783, allocations: 86.22 kB / 0.7185 GB, free: 94.37 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/1.783, allocations: 43.08 kB / 0.7186 GB, free: 94.37 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002924/1.783, allocations: 0.8174 MB / 0.7194 GB, free: 93.58 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.923e-05/1.783, allocations: 28.86 kB / 0.7194 GB, free: 93.57 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.785e-05/1.783, allocations: 16.34 kB / 0.7194 GB, free: 93.57 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 (SourceP1.C.ftype,PuitsP1.fluid,ControlValve.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,ControlValve.C2.diff_on_1) * 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 9.747e-05/1.783, allocations: 169.3 kB / 0.7196 GB, free: 93.41 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.805e-05/1.783, allocations: 40.8 kB / 0.7196 GB, free: 93.39 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002847/1.784, allocations: 180.6 kB / 0.7198 GB, free: 93.32 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/1.784, allocations: 1.531 kB / 0.7198 GB, free: 93.32 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/1.784, allocations: 0.7188 kB / 0.7198 GB, free: 93.32 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/1.784, allocations: 1.547 kB / 0.7198 GB, free: 93.32 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/1.784, allocations: 287.8 kB / 0.72 GB, free: 93.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-06/1.784, allocations: 0 / 0.72 GB, free: 93.19 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.09e-05/1.784, allocations: 9.656 kB / 0.7201 GB, free: 93.19 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002097/1.784, allocations: 57.81 kB / 0.7201 GB, free: 93.17 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/1.784, allocations: 8.469 kB / 0.7201 GB, free: 93.17 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002107/1.784, allocations: 0.8204 MB / 0.7209 GB, free: 92.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/1.784, allocations: 4.062 kB / 0.7209 GB, free: 92.38 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001903/1.785, allocations: 179.3 kB / 0.7211 GB, free: 92.27 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 7.25e-05/1.785, allocations: 60.11 kB / 0.7212 GB, free: 92.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.306e-05/1.785, allocations: 3.25 kB / 0.7212 GB, free: 92.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.185e-05/1.785, allocations: 5.125 kB / 0.7212 GB, free: 92.25 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.317e-05/1.785, allocations: 7.25 kB / 0.7212 GB, free: 92.25 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-06/1.785, allocations: 2 kB / 0.7212 GB, free: 92.25 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001875/1.785, allocations: 283.4 kB / 0.7214 GB, free: 92.12 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7e-08/1.785, allocations: 1.094 kB / 0.7214 GB, free: 92.12 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002868/1.788, allocations: 1.489 MB / 0.7229 GB, free: 92.11 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.004162/1.792, allocations: 2.418 MB / 0.7253 GB, free: 91.97 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000301/1.792, allocations: 129.7 kB / 0.7254 GB, free: 91.96 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/1.792, allocations: 0 / 0.7254 GB, free: 91.96 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 8.033e-05/1.792, allocations: 56.09 kB / 0.7254 GB, free: 91.95 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/1.793, allocations: 72.5 kB / 0.7255 GB, free: 91.93 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/1.794, allocations: 0.6076 MB / 0.7261 GB, free: 91.59 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.046e-05/1.794, allocations: 109.7 kB / 0.7262 GB, free: 91.52 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 8.376e-05/1.794, allocations: 39.48 kB / 0.7262 GB, free: 91.5 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.867e-05/1.794, allocations: 26.73 kB / 0.7263 GB, free: 91.5 MB / 0.6198 GB Notification: Performance of SimCode: time 9.02e-07/1.794, allocations: 4 kB / 0.7263 GB, free: 91.49 MB / 0.6198 GB Notification: Performance of Templates: time 0.047/1.841, allocations: 47.1 MB / 0.7723 GB, free: 76.22 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.581674843095243]