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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.8392/0.8392, allocations: 111.6 MB / 131 MB, free: 5.086 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.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.585e-06/2.585e-06, allocations: 0 / 175.6 MB, free: 9.539 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.87e-05/3.129e-05, allocations: 2.312 kB / 175.6 MB, free: 9.535 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.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.818/1.818, allocations: 254.7 MB / 430.3 MB, free: 464 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05145/1.869, allocations: 33.19 MB / 463.5 MB, free: 15.14 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002561/1.869, allocations: 8 kB / 463.5 MB, free: 15.13 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourceP.mo:19:3-20:78: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 master/WaterSteam/BoundaryConditions/SinkP.mo:19:3-20:80: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 master/WaterSteam/PressureLosses/ControlValve.mo:24:3-25:81: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 master/WaterSteam/PressureLosses/ControlValve.mo:26:3-27:79: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.0005709/1.87, allocations: 163.2 kB / 463.7 MB, free: 14.97 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003133/1.87, allocations: 166.9 kB / 463.8 MB, free: 14.81 MB / 426.7 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02863/1.899, allocations: 9.943 MB / 473.8 MB, free: 4.828 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008083/1.9, allocations: 402 kB / 474.2 MB, free: 4.434 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002443/1.9, allocations: 120.8 kB / 474.3 MB, free: 4.316 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004499/1.9, allocations: 243.3 kB / 474.5 MB, free: 4.078 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002706/1.901, allocations: 147.6 kB / 474.7 MB, free: 3.934 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 4.497e-05/1.901, allocations: 20 kB / 474.7 MB, free: 3.914 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03609/1.937, allocations: 16.84 MB / 491.5 MB, free: 3.043 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001972/1.937, allocations: 79.75 kB / 491.6 MB, free: 2.965 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002528/1.937, allocations: 95.72 kB / 491.7 MB, free: 2.871 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2729/2.21, allocations: 10.91 MB / 0.4908 GB, free: 19.47 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/2.21, allocations: 0 / 0.4908 GB, free: 19.47 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.703e-06/2.21, allocations: 2.828 kB / 0.4908 GB, free: 19.47 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.085e-06/2.21, allocations: 0 / 0.4908 GB, free: 19.47 MB / 442.7 MB 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.007566/2.218, allocations: 1.627 MB / 0.4924 GB, free: 18.49 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/2.218, allocations: 12.45 kB / 0.4924 GB, free: 18.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/2.218, allocations: 54.95 kB / 0.4925 GB, free: 18.46 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002846/2.218, allocations: 225 kB / 0.4927 GB, free: 18.3 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/2.218, allocations: 15.66 kB / 0.4927 GB, free: 18.3 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.015e-05/2.218, allocations: 20.91 kB / 0.4927 GB, free: 18.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004214/2.219, allocations: 298 kB / 0.493 GB, free: 18.19 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/2.219, allocations: 1.75 kB / 0.493 GB, free: 18.19 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.285e-05/2.219, allocations: 10.91 kB / 0.493 GB, free: 18.19 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.696e-05/2.219, allocations: 14.16 kB / 0.493 GB, free: 18.19 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002374/2.219, allocations: 144.7 kB / 0.4932 GB, free: 18.19 MB / 442.7 MB 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.03612/2.255, allocations: 11.28 MB / 0.5042 GB, free: 16.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001847/2.255, allocations: 92.14 kB / 0.5043 GB, free: 16.51 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.344e-05/2.255, allocations: 54.31 kB / 0.5043 GB, free: 16.5 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.162/2.417, allocations: 43.76 MB / 0.5471 GB, free: 14.19 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.42e-05/2.417, allocations: 37.45 kB / 0.5471 GB, free: 14.15 MB / 474.7 MB Notification: Performance of pre-optimization done (n=34): time 1.923e-06/2.417, allocations: 0 / 0.5471 GB, free: 14.15 MB / 474.7 MB Notification: Performance of matching and sorting (n=34): time 0.001178/2.418, allocations: 315.3 kB / 0.5474 GB, free: 13.87 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/2.419, allocations: 58.59 kB / 0.5475 GB, free: 13.8 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004684/2.419, allocations: 373.1 kB / 0.5478 GB, free: 13.49 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/2.419, allocations: 26.91 kB / 0.5478 GB, free: 13.46 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004259/2.419, allocations: 255.1 kB / 0.5481 GB, free: 13.25 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/2.42, allocations: 124.2 kB / 0.5482 GB, free: 13.15 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/2.42, allocations: 64.84 kB / 0.5483 GB, free: 13.09 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003364/2.42, allocations: 0.5313 MB / 0.5488 GB, free: 12.57 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001299/2.42, allocations: 57.2 kB / 0.5488 GB, free: 12.53 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001923/2.42, allocations: 119.3 kB / 0.549 GB, free: 12.41 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003103/2.421, allocations: 200.7 kB / 0.5491 GB, free: 12.24 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/2.421, allocations: 4.75 kB / 0.5491 GB, free: 12.24 MB / 474.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005195/2.421, allocations: 269.9 kB / 0.5494 GB, free: 12.02 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/2.421, allocations: 7.984 kB / 0.5494 GB, free: 12.01 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/2.421, allocations: 4 kB / 0.5494 GB, free: 12 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007442/2.422, allocations: 116.5 kB / 0.5495 GB, free: 11.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.021e-05/2.422, allocations: 19.17 kB / 0.5495 GB, free: 11.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008671/2.423, allocations: 0.888 MB / 0.5504 GB, free: 11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001481/2.423, allocations: 22.92 kB / 0.5504 GB, free: 10.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/2.423, allocations: 4 kB / 0.5504 GB, free: 10.98 MB / 474.7 MB 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.0002021/2.423, allocations: 194.8 kB / 0.5506 GB, free: 10.79 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.715e-05/2.423, allocations: 30.88 kB / 0.5507 GB, free: 10.77 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001122/2.424, allocations: 0.7443 MB / 0.5514 GB, free: 10.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000443/2.425, allocations: 204.6 kB / 0.5516 GB, free: 9.922 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/2.425, allocations: 0 / 0.5516 GB, free: 9.922 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/2.425, allocations: 0 / 0.5516 GB, free: 9.922 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001283/2.426, allocations: 0.7731 MB / 0.5523 GB, free: 9.266 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/2.426, allocations: 0 / 0.5523 GB, free: 9.266 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.724e-05/2.426, allocations: 16.62 kB / 0.5523 GB, free: 9.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003225/2.427, allocations: 84.23 kB / 0.5524 GB, free: 9.172 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/2.427, allocations: 9.047 kB / 0.5524 GB, free: 9.168 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007765/2.427, allocations: 0.8828 MB / 0.5533 GB, free: 8.281 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/2.427, allocations: 1.688 kB / 0.5533 GB, free: 8.281 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006178/2.428, allocations: 399.4 kB / 0.5537 GB, free: 7.91 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.819e-05/2.428, allocations: 40.61 kB / 0.5537 GB, free: 7.875 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.197e-05/2.428, allocations: 3.062 kB / 0.5537 GB, free: 7.875 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/2.428, allocations: 4 kB / 0.5537 GB, free: 7.871 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.404e-05/2.428, allocations: 11.3 kB / 0.5537 GB, free: 7.863 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/2.428, allocations: 2.375 kB / 0.5537 GB, free: 7.863 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003885/2.429, allocations: 332 kB / 0.5541 GB, free: 7.59 MB / 474.7 MB Notification: Performance of sort global known variables: time 7e-08/2.429, allocations: 0 / 0.5541 GB, free: 7.59 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004638/2.433, allocations: 1.229 MB / 0.5553 GB, free: 6.43 MB / 474.7 MB 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.007364/2.441, allocations: 1.924 MB / 0.5571 GB, free: 4.754 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0007873/2.441, allocations: 220.9 kB / 0.5573 GB, free: 4.531 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/2.441, allocations: 0 / 0.5573 GB, free: 4.531 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003265/2.442, allocations: 103 kB / 0.5574 GB, free: 4.43 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008627/2.443, allocations: 133.3 kB / 0.5576 GB, free: 4.305 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/2.444, allocations: 0.5942 MB / 0.5582 GB, free: 3.684 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002401/2.444, allocations: 200.7 kB / 0.5583 GB, free: 3.469 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 8.442e-05/2.444, allocations: 18.64 kB / 0.5584 GB, free: 3.453 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.305e-05/2.444, allocations: 24.5 kB / 0.5584 GB, free: 3.43 MB / 474.7 MB Notification: Performance of SimCode: time 1.152e-06/2.444, allocations: 0 / 0.5584 GB, free: 3.43 MB / 474.7 MB Notification: Performance of Templates: time 0.07298/2.517, allocations: 43.52 MB / 0.6009 GB, free: 8.18 MB / 0.5105 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile [Timeout 660] (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=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 8.60884919099044]