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.5036/0.5036, allocations: 111.6 MB / 131.2 MB, free: 4.598 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.114e-06/2.114e-06, allocations: 0 / 176.1 MB, free: 9.25 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.566e-05/2.777e-05, allocations: 4.984 kB / 176.1 MB, free: 9.246 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.12/1.12, allocations: 257 MB / 433.1 MB, free: 404 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03429/1.154, allocations: 33.34 MB / 466.4 MB, free: 14.93 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002465/1.154, allocations: 4 kB / 466.5 MB, free: 14.93 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.0005116/1.155, allocations: 155.2 kB / 466.6 MB, free: 14.78 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000268/1.155, allocations: 179 kB / 466.8 MB, free: 14.6 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.02311/1.178, allocations: 9.939 MB / 476.7 MB, free: 4.617 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005702/1.179, allocations: 406 kB / 477.1 MB, free: 4.219 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002157/1.179, allocations: 120.8 kB / 477.2 MB, free: 4.098 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003378/1.179, allocations: 247.3 kB / 477.5 MB, free: 3.855 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/1.179, allocations: 139.7 kB / 477.6 MB, free: 3.719 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 3.251e-05/1.179, allocations: 20 kB / 477.6 MB, free: 3.699 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.215/1.394, allocations: 16.83 MB / 494.5 MB, free: 8.477 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/1.395, allocations: 75.67 kB / 494.5 MB, free: 8.477 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001676/1.395, allocations: 100.8 kB / 494.6 MB, free: 8.477 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01816/1.413, allocations: 10.82 MB / 0.4936 GB, free: 4.734 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/1.413, allocations: 0 / 0.4936 GB, free: 4.734 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.673e-06/1.413, allocations: 2.344 kB / 0.4936 GB, free: 4.734 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.128e-05/1.413, allocations: 0.875 kB / 0.4936 GB, free: 4.734 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.00377/1.417, allocations: 1.603 MB / 0.4952 GB, free: 3.574 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/1.417, allocations: 16.56 kB / 0.4952 GB, free: 3.566 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.67e-05/1.417, allocations: 54.8 kB / 0.4952 GB, free: 3.539 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/1.417, allocations: 221 kB / 0.4955 GB, free: 3.348 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/1.417, allocations: 17.31 kB / 0.4955 GB, free: 3.344 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/1.417, allocations: 22.03 kB / 0.4955 GB, free: 3.336 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002977/1.417, allocations: 266.7 kB / 0.4957 GB, free: 3.137 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/1.417, allocations: 3.5 kB / 0.4958 GB, free: 3.137 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/1.417, allocations: 11.59 kB / 0.4958 GB, free: 3.129 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/1.417, allocations: 8.828 kB / 0.4958 GB, free: 3.125 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001366/1.418, allocations: 114.4 kB / 0.4959 GB, free: 3.098 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.01792/1.435, allocations: 11.19 MB / 0.5068 GB, free: 12 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001726/1.436, allocations: 90.12 kB / 0.5069 GB, free: 11.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.44e-05/1.436, allocations: 43.67 kB / 0.5069 GB, free: 11.86 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07743/1.513, allocations: 43.75 MB / 0.5497 GB, free: 140 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/1.513, allocations: 37.39 kB / 0.5497 GB, free: 92 kB / 474.7 MB Notification: Performance of pre-optimization done (n=34): time 2.054e-06/1.513, allocations: 0 / 0.5497 GB, free: 92 kB / 474.7 MB Notification: Performance of matching and sorting (n=34): time 0.0007231/1.514, allocations: 287.9 kB / 0.55 GB, free: 15.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/1.514, allocations: 51.41 kB / 0.55 GB, free: 15.74 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/1.514, allocations: 334.2 kB / 0.5503 GB, free: 15.4 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/1.514, allocations: 33.7 kB / 0.5504 GB, free: 15.36 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/1.514, allocations: 239.3 kB / 0.5506 GB, free: 15.12 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.966e-05/1.514, allocations: 118.1 kB / 0.5507 GB, free: 15.01 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.577e-05/1.514, allocations: 63.34 kB / 0.5508 GB, free: 14.94 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/1.515, allocations: 0.5196 MB / 0.5513 GB, free: 14.41 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.34e-05/1.515, allocations: 43.27 kB / 0.5513 GB, free: 14.37 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.618e-05/1.515, allocations: 111.7 kB / 0.5514 GB, free: 14.24 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001603/1.515, allocations: 162.3 kB / 0.5516 GB, free: 14.06 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/1.515, allocations: 0 / 0.5516 GB, free: 14.06 MB / 490.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003001/1.515, allocations: 245.2 kB / 0.5518 GB, free: 13.82 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/1.515, allocations: 4 kB / 0.5518 GB, free: 13.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/1.515, allocations: 4 kB / 0.5518 GB, free: 13.81 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004524/1.516, allocations: 111.4 kB / 0.5519 GB, free: 13.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.539e-05/1.516, allocations: 16 kB / 0.5519 GB, free: 13.69 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005616/1.516, allocations: 0.8654 MB / 0.5528 GB, free: 12.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.596e-05/1.516, allocations: 23.73 kB / 0.5528 GB, free: 12.77 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/1.516, allocations: 8 kB / 0.5528 GB, free: 12.76 MB / 490.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.0001018/1.516, allocations: 160.6 kB / 0.553 GB, free: 12.59 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.556e-05/1.516, allocations: 27.81 kB / 0.553 GB, free: 12.57 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005737/1.517, allocations: 0.656 MB / 0.5536 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002004/1.517, allocations: 186.8 kB / 0.5538 GB, free: 11.63 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/1.517, allocations: 0 / 0.5538 GB, free: 11.63 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/1.517, allocations: 0.5 kB / 0.5538 GB, free: 11.63 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006737/1.518, allocations: 0.6922 MB / 0.5545 GB, free: 10.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/1.518, allocations: 0 / 0.5545 GB, free: 10.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.885e-05/1.518, allocations: 20.61 kB / 0.5545 GB, free: 10.88 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001813/1.518, allocations: 79.88 kB / 0.5546 GB, free: 10.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/1.518, allocations: 15.92 kB / 0.5546 GB, free: 10.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003528/1.519, allocations: 0.8567 MB / 0.5554 GB, free: 9.902 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.519, allocations: 4.594 kB / 0.5554 GB, free: 9.898 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003023/1.519, allocations: 368.4 kB / 0.5558 GB, free: 9.52 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.422e-05/1.519, allocations: 43.73 kB / 0.5558 GB, free: 9.477 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.82e-05/1.519, allocations: 11.92 kB / 0.5559 GB, free: 9.465 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.121e-05/1.519, allocations: 4 kB / 0.5559 GB, free: 9.461 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.458e-05/1.519, allocations: 8.922 kB / 0.5559 GB, free: 9.453 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-06/1.519, allocations: 4 kB / 0.5559 GB, free: 9.449 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001901/1.519, allocations: 283.1 kB / 0.5561 GB, free: 9.172 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/1.519, allocations: 0 / 0.5561 GB, free: 9.172 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002544/1.522, allocations: 1.228 MB / 0.5573 GB, free: 7.941 MB / 490.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.004115/1.526, allocations: 1.926 MB / 0.5592 GB, free: 6.254 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005785/1.526, allocations: 210.2 kB / 0.5594 GB, free: 6.043 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/1.526, allocations: 0 / 0.5594 GB, free: 6.043 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001416/1.527, allocations: 87.73 kB / 0.5595 GB, free: 5.957 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004846/1.527, allocations: 135.2 kB / 0.5596 GB, free: 5.836 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/1.528, allocations: 0.5892 MB / 0.5602 GB, free: 5.227 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.179e-05/1.528, allocations: 118.8 kB / 0.5603 GB, free: 5.094 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 7.94e-05/1.528, allocations: 29.03 kB / 0.5603 GB, free: 5.066 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.786e-05/1.528, allocations: 20.5 kB / 0.5604 GB, free: 5.043 MB / 490.7 MB Notification: Performance of SimCode: time 1.082e-06/1.528, allocations: 0 / 0.5604 GB, free: 5.043 MB / 490.7 MB Notification: Performance of Templates: time 0.04364/1.572, allocations: 43.52 MB / 0.6029 GB, free: 9.828 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.343603925779462]