Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.496/0.496, allocations: 111.6 MB / 132.2 MB, free: 4.961 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.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 177.2 MB, free: 9.066 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.462e-05/1.622e-05, allocations: 2.312 kB / 177.2 MB, free: 9.062 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.TestPipePressureLoss): time 1.149/1.149, allocations: 257 MB / 434.2 MB, free: 308 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02749/1.176, allocations: 32.47 MB / 466.7 MB, free: 15.71 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002633/1.177, allocations: 4 kB / 466.7 MB, free: 15.71 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/PipePressureLoss.mo:21:3-22:80: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/PipePressureLoss.mo:23:3-24:78: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.0003827/1.177, allocations: 103.3 kB / 466.8 MB, free: 15.61 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001877/1.177, allocations: 127.1 kB / 466.9 MB, free: 15.48 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.02005/1.197, allocations: 9.78 MB / 476.7 MB, free: 5.664 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005096/1.198, allocations: 366.1 kB / 477 MB, free: 5.305 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/1.198, allocations: 108.7 kB / 477.1 MB, free: 5.195 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002784/1.198, allocations: 227.3 kB / 477.4 MB, free: 4.973 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/1.198, allocations: 75.8 kB / 477.4 MB, free: 4.898 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.393e-05/1.198, allocations: 16 kB / 477.4 MB, free: 4.883 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2462/1.444, allocations: 16.78 MB / 494.2 MB, free: 9.145 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 5.631e-05/1.445, allocations: 42 kB / 494.3 MB, free: 9.145 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000154/1.445, allocations: 88.92 kB / 494.4 MB, free: 9.145 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01514/1.46, allocations: 10.73 MB / 0.4933 GB, free: 6.188 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/1.46, allocations: 2 kB / 0.4933 GB, free: 6.188 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.482e-06/1.46, allocations: 0 / 0.4933 GB, free: 6.188 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.172e-06/1.46, allocations: 0.6562 kB / 0.4933 GB, free: 6.188 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.00325/1.463, allocations: 1.509 MB / 0.4947 GB, free: 5.113 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/1.463, allocations: 12.67 kB / 0.4947 GB, free: 5.109 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.486e-05/1.463, allocations: 44.41 kB / 0.4948 GB, free: 5.09 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/1.463, allocations: 189.9 kB / 0.495 GB, free: 4.91 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/1.463, allocations: 10.81 kB / 0.495 GB, free: 4.906 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.71e-05/1.463, allocations: 26.52 kB / 0.495 GB, free: 4.895 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002066/1.464, allocations: 241 kB / 0.4952 GB, free: 4.719 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/1.464, allocations: 0 / 0.4952 GB, free: 4.719 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/1.464, allocations: 14.3 kB / 0.4952 GB, free: 4.707 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/1.464, allocations: 12.59 kB / 0.4953 GB, free: 4.703 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.169e-05/1.464, allocations: 78.19 kB / 0.4953 GB, free: 4.688 MB / 426.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.01483/1.479, allocations: 9.653 MB / 0.5048 GB, free: 15.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001649/1.479, allocations: 71.16 kB / 0.5048 GB, free: 15.12 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.785e-05/1.479, allocations: 35.89 kB / 0.5049 GB, free: 15.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06563/1.544, allocations: 37.86 MB / 0.5418 GB, free: 9.262 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/1.544, allocations: 45.39 kB / 0.5419 GB, free: 9.207 MB / 474.7 MB Notification: Performance of pre-optimization done (n=34): time 2.555e-06/1.544, allocations: 0 / 0.5419 GB, free: 9.207 MB / 474.7 MB Notification: Performance of matching and sorting (n=34): time 0.0005972/1.545, allocations: 248.9 kB / 0.5421 GB, free: 8.961 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.602e-05/1.545, allocations: 51.41 kB / 0.5422 GB, free: 8.898 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/1.545, allocations: 227.6 kB / 0.5424 GB, free: 8.676 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.049e-05/1.545, allocations: 25.7 kB / 0.5424 GB, free: 8.645 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.27e-05/1.545, allocations: 204.2 kB / 0.5426 GB, free: 8.445 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.901e-05/1.545, allocations: 120.4 kB / 0.5427 GB, free: 8.336 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.034e-05/1.545, allocations: 61.44 kB / 0.5428 GB, free: 8.273 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/1.546, allocations: 0.5067 MB / 0.5433 GB, free: 7.766 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.77e-05/1.546, allocations: 23.98 kB / 0.5433 GB, free: 7.742 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.354e-05/1.546, allocations: 86.81 kB / 0.5434 GB, free: 7.645 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001117/1.546, allocations: 136.6 kB / 0.5435 GB, free: 7.504 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/1.546, allocations: 4 kB / 0.5435 GB, free: 7.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002099/1.546, allocations: 203.9 kB / 0.5437 GB, free: 7.301 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/1.546, allocations: 4 kB / 0.5437 GB, free: 7.297 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/1.546, allocations: 0 / 0.5437 GB, free: 7.297 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003785/1.546, allocations: 103.7 kB / 0.5438 GB, free: 7.191 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.188e-05/1.546, allocations: 8.625 kB / 0.5438 GB, free: 7.184 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003638/1.547, allocations: 0.8662 MB / 0.5447 GB, free: 6.297 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.441e-05/1.547, allocations: 19.78 kB / 0.5447 GB, free: 6.277 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/1.547, allocations: 12.03 kB / 0.5447 GB, free: 6.266 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 (SourceP1.C.b,PuitsP1.C.a,pipePressureLoss.C1.a,pipePressureLoss.C2.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 8 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 9.178e-05/1.547, allocations: 167.8 kB / 0.5448 GB, free: 6.094 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.827e-05/1.547, allocations: 21.08 kB / 0.5449 GB, free: 6.074 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004717/1.547, allocations: 0.6161 MB / 0.5455 GB, free: 5.445 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001391/1.548, allocations: 159.5 kB / 0.5456 GB, free: 5.289 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/1.548, allocations: 0 / 0.5456 GB, free: 5.289 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/1.548, allocations: 4 kB / 0.5456 GB, free: 5.285 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004863/1.548, allocations: 0.5604 MB / 0.5462 GB, free: 4.719 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/1.548, allocations: 0 / 0.5462 GB, free: 4.719 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.947e-05/1.548, allocations: 19.09 kB / 0.5462 GB, free: 4.703 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001611/1.548, allocations: 79.97 kB / 0.5463 GB, free: 4.625 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/1.548, allocations: 5.188 kB / 0.5463 GB, free: 4.621 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003011/1.549, allocations: 0.865 MB / 0.5471 GB, free: 3.734 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/1.549, allocations: 0 / 0.5471 GB, free: 3.734 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002211/1.549, allocations: 332.3 kB / 0.5474 GB, free: 3.398 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.581e-05/1.549, allocations: 31.78 kB / 0.5475 GB, free: 3.367 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/1.549, allocations: 11.89 kB / 0.5475 GB, free: 3.355 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.778e-05/1.549, allocations: 4 kB / 0.5475 GB, free: 3.352 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.738e-05/1.549, allocations: 11.92 kB / 0.5475 GB, free: 3.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.595e-06/1.549, allocations: 8.562 kB / 0.5475 GB, free: 3.332 MB / 474.7 MB Notification: Performance of sorting global known variables: time 9.108e-05/1.549, allocations: 212.4 kB / 0.5477 GB, free: 3.133 MB / 474.7 MB Notification: Performance of sort global known variables: time 6e-08/1.549, allocations: 0 / 0.5477 GB, free: 3.133 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002497/1.551, allocations: 1.208 MB / 0.5489 GB, free: 1.922 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 (11): * Single equations (assignments): 10 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003268/1.555, allocations: 1.98 MB / 0.5508 GB, free: 176 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0002661/1.555, allocations: 165.2 kB / 0.551 GB, free: 8 kB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/1.555, allocations: 4.25 kB / 0.551 GB, free: 4 kB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 9.619e-05/1.555, allocations: 78.25 kB / 0.551 GB, free: 15.93 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003952/1.556, allocations: 111.5 kB / 0.5512 GB, free: 15.83 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007991/1.556, allocations: 497.2 kB / 0.5516 GB, free: 15.32 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.022e-05/1.556, allocations: 93.58 kB / 0.5517 GB, free: 15.21 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 6.061e-05/1.556, allocations: 11.23 kB / 0.5517 GB, free: 15.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/1.557, allocations: 130.1 kB / 0.5519 GB, free: 15.07 MB / 490.7 MB Notification: Performance of SimCode: time 7.22e-07/1.557, allocations: 0 / 0.5519 GB, free: 15.07 MB / 490.7 MB Notification: Performance of Templates: time 0.04593/1.602, allocations: 49.71 MB / 0.6004 GB, free: 13.67 MB / 0.5261 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.618865114171058]