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.4641/0.4641, allocations: 111.6 MB / 131.2 MB, free: 4.566 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.664e-06/1.664e-06, allocations: 0 / 176.2 MB, free: 9.211 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.735e-05/1.902e-05, allocations: 4.562 kB / 176.2 MB, free: 9.207 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 0.9928/0.9928, allocations: 257.1 MB / 433.2 MB, free: 308 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.315/1.308, allocations: 181.9 MB / 0.6007 GB, free: 0.6289 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001804/1.308, allocations: 11.94 kB / 0.6007 GB, free: 0.6172 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.0002212/1.308, allocations: 91.39 kB / 0.6008 GB, free: 0.5273 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002465/1.308, allocations: 182.8 kB / 0.601 GB, free: 356 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.01939/1.328, allocations: 11.75 MB / 0.6124 GB, free: 4.566 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0004072/1.328, allocations: 446.5 kB / 0.6129 GB, free: 4.129 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002157/1.328, allocations: 193.7 kB / 0.613 GB, free: 3.934 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002189/1.329, allocations: 279.4 kB / 0.6133 GB, free: 3.66 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001565/1.329, allocations: 179.5 kB / 0.6135 GB, free: 3.484 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.255e-05/1.329, allocations: 36 kB / 0.6135 GB, free: 3.449 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02139/1.35, allocations: 18.7 MB / 0.6318 GB, free: 0.7188 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001214/1.35, allocations: 119.6 kB / 0.6319 GB, free: 0.6016 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001236/1.35, allocations: 143.6 kB / 0.632 GB, free: 472 kB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.01509/1.366, allocations: 12.28 MB / 0.644 GB, free: 4.145 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/1.366, allocations: 0 / 0.644 GB, free: 4.145 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.583e-06/1.366, allocations: 0 / 0.644 GB, free: 4.145 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 7.394e-06/1.366, allocations: 3.984 kB / 0.644 GB, free: 4.141 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.00322/1.369, allocations: 1.968 MB / 0.646 GB, free: 2.125 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/1.369, allocations: 15.98 kB / 0.646 GB, free: 2.109 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.55e-05/1.369, allocations: 83.67 kB / 0.646 GB, free: 2.027 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003101/1.369, allocations: 306 kB / 0.6463 GB, free: 1.699 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.015e-05/1.369, allocations: 29 kB / 0.6464 GB, free: 1.672 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.871e-05/1.369, allocations: 32.62 kB / 0.6464 GB, free: 1.641 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000362/1.37, allocations: 342.6 kB / 0.6467 GB, free: 1.27 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/1.37, allocations: 0 / 0.6467 GB, free: 1.27 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/1.37, allocations: 16 kB / 0.6467 GB, free: 1.254 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/1.37, allocations: 15.92 kB / 0.6468 GB, free: 1.238 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002053/1.37, allocations: 151.8 kB / 0.6469 GB, free: 1.09 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004036/1.374, allocations: 3.426 MB / 0.6502 GB, free: 13.6 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001399/1.374, allocations: 95.09 kB / 0.6503 GB, free: 13.5 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.616e-05/1.374, allocations: 31.67 kB / 0.6504 GB, free: 13.46 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3234/1.698, allocations: 67.37 MB / 0.7162 GB, free: 95.82 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/1.698, allocations: 35.73 kB / 0.7162 GB, free: 95.78 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 2.895e-06/1.698, allocations: 1.719 kB / 0.7162 GB, free: 95.78 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0006133/1.698, allocations: 184.8 kB / 0.7164 GB, free: 95.73 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.449e-05/1.698, allocations: 52.7 kB / 0.7164 GB, free: 95.67 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003889/1.699, allocations: 441.2 kB / 0.7168 GB, free: 95.5 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.067e-05/1.699, allocations: 29.8 kB / 0.7169 GB, free: 95.47 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/1.699, allocations: 324.8 kB / 0.7172 GB, free: 95.31 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.73e-05/1.699, allocations: 24.81 kB / 0.7172 GB, free: 95.3 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.618e-05/1.699, allocations: 74.86 kB / 0.7173 GB, free: 95.27 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.623e-05/1.699, allocations: 0.5164 MB / 0.7178 GB, free: 94.78 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.7e-05/1.699, allocations: 34.31 kB / 0.7178 GB, free: 94.78 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.827e-05/1.699, allocations: 183 kB / 0.718 GB, free: 94.6 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/1.699, allocations: 226 kB / 0.7182 GB, free: 94.43 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/1.699, allocations: 1.531 kB / 0.7182 GB, free: 94.43 MB / 0.6198 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003703/1.7, allocations: 261.1 kB / 0.7184 GB, free: 94.37 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/1.7, allocations: 9.781 kB / 0.7185 GB, free: 94.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/1.7, allocations: 3.688 kB / 0.7185 GB, free: 94.37 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003596/1.7, allocations: 68.91 kB / 0.7185 GB, free: 94.36 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.856e-05/1.7, allocations: 42.97 kB / 0.7186 GB, free: 94.36 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002523/1.7, allocations: 0.8195 MB / 0.7194 GB, free: 93.56 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.378e-05/1.7, allocations: 24.02 kB / 0.7194 GB, free: 93.55 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/1.7, allocations: 16.09 kB / 0.7194 GB, free: 93.55 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 8.756e-05/1.7, allocations: 171.8 kB / 0.7196 GB, free: 93.39 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.666e-05/1.701, allocations: 39.2 kB / 0.7196 GB, free: 93.38 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002644/1.701, allocations: 178.6 kB / 0.7198 GB, free: 93.31 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/1.701, allocations: 1.062 kB / 0.7198 GB, free: 93.31 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/1.701, allocations: 0 / 0.7198 GB, free: 93.31 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/1.701, allocations: 4.609 kB / 0.7198 GB, free: 93.31 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002044/1.701, allocations: 287.6 kB / 0.7201 GB, free: 93.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/1.701, allocations: 1.812 kB / 0.7201 GB, free: 93.17 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.704e-05/1.701, allocations: 6.812 kB / 0.7201 GB, free: 93.17 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001855/1.701, allocations: 55.42 kB / 0.7201 GB, free: 93.16 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/1.701, allocations: 0.8438 kB / 0.7201 GB, free: 93.16 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001972/1.701, allocations: 0.8213 MB / 0.7209 GB, free: 92.36 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/1.701, allocations: 4.281 kB / 0.7209 GB, free: 92.36 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001882/1.702, allocations: 185.5 kB / 0.7211 GB, free: 92.25 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.312e-05/1.702, allocations: 63.36 kB / 0.7212 GB, free: 92.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/1.702, allocations: 0 / 0.7212 GB, free: 92.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.047e-05/1.702, allocations: 3.094 kB / 0.7212 GB, free: 92.23 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.927e-05/1.702, allocations: 6.016 kB / 0.7212 GB, free: 92.23 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-06/1.702, allocations: 6.031 kB / 0.7212 GB, free: 92.23 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001431/1.702, allocations: 276.2 kB / 0.7214 GB, free: 92.11 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/1.702, allocations: 0 / 0.7214 GB, free: 92.11 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002315/1.704, allocations: 1.485 MB / 0.7229 GB, free: 92.1 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.003519/1.708, allocations: 2.422 MB / 0.7253 GB, free: 91.94 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002617/1.708, allocations: 128.2 kB / 0.7254 GB, free: 91.93 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/1.708, allocations: 4.062 kB / 0.7254 GB, free: 91.93 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.844e-05/1.708, allocations: 48.34 kB / 0.7254 GB, free: 91.91 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/1.708, allocations: 68.83 kB / 0.7255 GB, free: 91.91 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000948/1.709, allocations: 0.6176 MB / 0.7261 GB, free: 91.56 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.046e-05/1.709, allocations: 106.6 kB / 0.7262 GB, free: 91.49 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.539e-05/1.709, allocations: 43.44 kB / 0.7262 GB, free: 91.47 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.257e-05/1.709, allocations: 22.75 kB / 0.7263 GB, free: 91.46 MB / 0.6198 GB Notification: Performance of SimCode: time 8.51e-07/1.709, allocations: 3.062 kB / 0.7263 GB, free: 91.46 MB / 0.6198 GB Notification: Performance of Templates: time 0.04337/1.753, allocations: 58.7 MB / 0.7836 GB, free: 64.52 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.6967667527496815]