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.49/0.49, allocations: 111.6 MB / 132.2 MB, free: 4.945 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.204e-06/2.204e-06, allocations: 0 / 177.2 MB, free: 9.055 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.528e-05/1.748e-05, allocations: 5.156 kB / 177.2 MB, free: 9.051 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.042/1.042, allocations: 257 MB / 434.2 MB, free: 256 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02803/1.07, allocations: 32.73 MB / 467 MB, free: 15.39 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001686/1.071, allocations: 0 / 467 MB, free: 15.39 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.000422/1.071, allocations: 155.2 kB / 467.1 MB, free: 15.24 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002041/1.071, allocations: 175 kB / 467.3 MB, free: 15.07 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.01896/1.09, allocations: 9.935 MB / 477.2 MB, free: 5.09 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005888/1.091, allocations: 414 kB / 477.6 MB, free: 4.684 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002106/1.091, allocations: 112.8 kB / 477.7 MB, free: 4.57 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003288/1.091, allocations: 247.3 kB / 478 MB, free: 4.328 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001676/1.092, allocations: 143.7 kB / 478.1 MB, free: 4.188 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.704e-05/1.092, allocations: 16 kB / 478.1 MB, free: 4.172 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2318/1.323, allocations: 16.84 MB / 495 MB, free: 8.953 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001074/1.323, allocations: 80.19 kB / 495.1 MB, free: 8.953 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001592/1.324, allocations: 96.91 kB / 495.2 MB, free: 8.953 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01387/1.337, allocations: 10.82 MB / 0.4941 GB, free: 5.484 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/1.337, allocations: 0 / 0.4941 GB, free: 5.484 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.323e-06/1.337, allocations: 0 / 0.4941 GB, free: 5.484 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.562e-06/1.337, allocations: 3.25 kB / 0.4941 GB, free: 5.484 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.003218/1.341, allocations: 1.603 MB / 0.4957 GB, free: 4.344 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/1.341, allocations: 11.7 kB / 0.4957 GB, free: 4.34 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.159e-05/1.341, allocations: 55.58 kB / 0.4957 GB, free: 4.312 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/1.341, allocations: 225.6 kB / 0.496 GB, free: 4.113 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/1.341, allocations: 14.31 kB / 0.496 GB, free: 4.109 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/1.341, allocations: 22.19 kB / 0.496 GB, free: 4.102 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002106/1.341, allocations: 249.4 kB / 0.4962 GB, free: 3.922 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/1.341, allocations: 3.984 kB / 0.4962 GB, free: 3.922 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/1.341, allocations: 11.59 kB / 0.4963 GB, free: 3.914 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/1.341, allocations: 16.36 kB / 0.4963 GB, free: 3.906 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.608e-05/1.341, allocations: 79.14 kB / 0.4963 GB, free: 3.891 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.01429/1.356, allocations: 9.706 MB / 0.5058 GB, free: 13.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000106/1.356, allocations: 75.19 kB / 0.5059 GB, free: 13.85 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.528e-05/1.356, allocations: 35.67 kB / 0.5059 GB, free: 13.81 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08704/1.443, allocations: 37.87 MB / 0.5429 GB, free: 7.977 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/1.443, allocations: 37.39 kB / 0.5429 GB, free: 7.93 MB / 474.7 MB Notification: Performance of pre-optimization done (n=34): time 3.386e-06/1.443, allocations: 0.5625 kB / 0.5429 GB, free: 7.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=34): time 0.0007683/1.444, allocations: 259.2 kB / 0.5432 GB, free: 7.672 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/1.444, allocations: 51.41 kB / 0.5432 GB, free: 7.609 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002983/1.444, allocations: 334.1 kB / 0.5436 GB, free: 7.301 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/1.444, allocations: 25.7 kB / 0.5436 GB, free: 7.27 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/1.444, allocations: 246.2 kB / 0.5438 GB, free: 7.035 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.698e-05/1.444, allocations: 121.8 kB / 0.5439 GB, free: 6.922 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/1.444, allocations: 58.22 kB / 0.544 GB, free: 6.863 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001909/1.445, allocations: 0.5277 MB / 0.5445 GB, free: 6.34 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.402e-05/1.445, allocations: 27.98 kB / 0.5445 GB, free: 6.312 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/1.445, allocations: 95.16 kB / 0.5446 GB, free: 6.211 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000173/1.445, allocations: 143.9 kB / 0.5448 GB, free: 6.059 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/1.445, allocations: 0 / 0.5448 GB, free: 6.059 MB / 474.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003215/1.445, allocations: 222.9 kB / 0.545 GB, free: 5.84 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/1.445, allocations: 4.625 kB / 0.545 GB, free: 5.836 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/1.445, allocations: 0 / 0.545 GB, free: 5.836 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004384/1.446, allocations: 86.91 kB / 0.5451 GB, free: 5.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.772e-05/1.446, allocations: 24.92 kB / 0.5451 GB, free: 5.727 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004637/1.446, allocations: 0.8537 MB / 0.5459 GB, free: 4.852 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.903e-05/1.446, allocations: 23.73 kB / 0.5459 GB, free: 4.828 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/1.446, allocations: 5.078 kB / 0.546 GB, free: 4.824 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,ControlValve.C1.a,ControlValve.C2.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.0001228/1.446, allocations: 164.6 kB / 0.5461 GB, free: 4.652 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.755e-05/1.446, allocations: 27.81 kB / 0.5461 GB, free: 4.625 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000735/1.447, allocations: 0.6472 MB / 0.5468 GB, free: 3.969 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002335/1.447, allocations: 155.8 kB / 0.5469 GB, free: 3.812 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.289e-06/1.447, allocations: 4.984 kB / 0.5469 GB, free: 3.809 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/1.447, allocations: 0 / 0.5469 GB, free: 3.809 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007887/1.448, allocations: 0.6149 MB / 0.5475 GB, free: 3.195 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/1.448, allocations: 0 / 0.5475 GB, free: 3.195 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.608e-05/1.448, allocations: 19.94 kB / 0.5475 GB, free: 3.176 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002211/1.448, allocations: 79.2 kB / 0.5476 GB, free: 3.102 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.747e-06/1.448, allocations: 0 / 0.5476 GB, free: 3.102 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004087/1.449, allocations: 0.854 MB / 0.5484 GB, free: 2.223 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.449, allocations: 8.016 kB / 0.5485 GB, free: 2.215 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003536/1.449, allocations: 351.3 kB / 0.5488 GB, free: 1.859 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.277e-05/1.449, allocations: 37.56 kB / 0.5488 GB, free: 1.824 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.695e-05/1.449, allocations: 11.89 kB / 0.5488 GB, free: 1.812 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.417e-05/1.449, allocations: 4 kB / 0.5488 GB, free: 1.809 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.901e-05/1.449, allocations: 11.98 kB / 0.5489 GB, free: 1.797 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-06/1.449, allocations: 0 / 0.5489 GB, free: 1.797 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0002321/1.45, allocations: 261 kB / 0.5491 GB, free: 1.551 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.5e-07/1.45, allocations: 4 kB / 0.5491 GB, free: 1.547 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004037/1.454, allocations: 1.231 MB / 0.5503 GB, free: 320 kB / 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.00735/1.461, allocations: 2.001 MB / 0.5523 GB, free: 14.55 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005312/1.462, allocations: 188.9 kB / 0.5524 GB, free: 14.36 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.462, allocations: 256 / 0.5524 GB, free: 14.36 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001859/1.462, allocations: 83.02 kB / 0.5525 GB, free: 14.28 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007071/1.463, allocations: 123 kB / 0.5526 GB, free: 14.17 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/1.464, allocations: 0.5905 MB / 0.5532 GB, free: 13.56 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.439e-05/1.464, allocations: 111 kB / 0.5533 GB, free: 13.44 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.000105/1.464, allocations: 25.06 kB / 0.5533 GB, free: 13.42 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/1.464, allocations: 138.1 kB / 0.5535 GB, free: 13.28 MB / 490.7 MB Notification: Performance of SimCode: time 1.102e-06/1.464, allocations: 0 / 0.5535 GB, free: 13.28 MB / 490.7 MB Notification: Performance of Templates: time 0.06519/1.529, allocations: 50.42 MB / 0.6027 GB, free: 11.17 MB / 0.5261 GB " [Timeout remaining time 658] 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: 5.928955303970724]