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.9085/0.9085, allocations: 153.8 MB / 173.4 MB, free: 4.938 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/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 0.0005527/0.0005527, allocations: 11.97 kB / 251 MB, free: 3.996 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1871, allocations: 33.37 MB / 284.4 MB, free: 2.133 MB / 222.1 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.977/2.164, allocations: 307.4 MB / 0.578 GB, free: 16.12 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03626/2.201, allocations: 35.03 MB / 0.6122 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004125/2.201, allocations: 2.406 kB / 0.6122 GB, free: 14.23 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45: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:33:3-34:47: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:45:3-47:43: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:48:3-50:38: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.0006603/2.202, allocations: 186 kB / 0.6124 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003556/2.202, allocations: 173.5 kB / 0.6125 GB, free: 14.07 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:783:9-783: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:850:9-850: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:1088:9-1088: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:69:3-69: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:69:3-69: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:167:3-170:49: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:167:3-170:49: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.03156/2.234, allocations: 9.978 MB / 0.6223 GB, free: 8.16 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000807/2.234, allocations: 394.8 kB / 0.6227 GB, free: 7.773 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002532/2.235, allocations: 109.6 kB / 0.6228 GB, free: 7.668 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003501/2.235, allocations: 179.3 kB / 0.6229 GB, free: 7.492 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002557/2.235, allocations: 175.8 kB / 0.6231 GB, free: 7.32 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.725e-05/2.235, allocations: 22.25 kB / 0.6231 GB, free: 7.301 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04082/2.276, allocations: 18 MB / 0.6407 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000184/2.276, allocations: 76.64 kB / 0.6408 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002532/2.277, allocations: 167.1 kB / 0.6409 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02381/2.3, allocations: 8.54 MB / 0.6493 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/2.3, allocations: 0 / 0.6493 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.733e-06/2.3, allocations: 8 kB / 0.6493 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.05e-05/2.3, allocations: 0 / 0.6493 GB, free: 12.46 MB / 0.5137 GB 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.005085/2.306, allocations: 1.508 MB / 0.6508 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/2.306, allocations: 12.02 kB / 0.6508 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.758e-05/2.306, allocations: 43.72 kB / 0.6508 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003645/2.306, allocations: 232.9 kB / 0.651 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/2.306, allocations: 20.38 kB / 0.651 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.824e-05/2.306, allocations: 16 kB / 0.6511 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005085/2.307, allocations: 331.4 kB / 0.6514 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/2.307, allocations: 0 / 0.6514 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/2.307, allocations: 4 kB / 0.6514 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.017e-05/2.307, allocations: 17.3 kB / 0.6514 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000309/2.307, allocations: 213.1 kB / 0.6516 GB, free: 10 MB / 0.5137 GB 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.03651/2.343, allocations: 11.34 MB / 0.6627 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002341/2.344, allocations: 120 kB / 0.6628 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001254/2.344, allocations: 89.58 kB / 0.6629 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1452/2.489, allocations: 43.42 MB / 0.7053 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.587e-05/2.489, allocations: 34.56 kB / 0.7053 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.364e-06/2.489, allocations: 0 / 0.7053 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001263/2.49, allocations: 429.4 kB / 0.7057 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.839e-05/2.49, allocations: 55.41 kB / 0.7058 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004824/2.491, allocations: 356.4 kB / 0.7061 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/2.491, allocations: 29.64 kB / 0.7061 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/2.491, allocations: 186.6 kB / 0.7063 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000102/2.491, allocations: 115 kB / 0.7064 GB, free: 1.586 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.598e-05/2.491, allocations: 53.62 kB / 0.7065 GB, free: 1.527 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000176/2.491, allocations: 350.8 kB / 0.7068 GB, free: 1.176 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001402/2.492, allocations: 91.97 kB / 0.7069 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/2.492, allocations: 142.9 kB / 0.707 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000331/2.492, allocations: 249.7 kB / 0.7073 GB, free: 0.6758 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/2.492, allocations: 3.938 kB / 0.7073 GB, free: 0.6719 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005589/2.493, allocations: 349.9 kB / 0.7076 GB, free: 328 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/2.493, allocations: 4.625 kB / 0.7076 GB, free: 324 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/2.493, allocations: 4 kB / 0.7076 GB, free: 320 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008199/2.493, allocations: 140.8 kB / 0.7078 GB, free: 176 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.067e-05/2.494, allocations: 8 kB / 0.7078 GB, free: 168 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006488/2.494, allocations: 0.6234 MB / 0.7084 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001435/2.494, allocations: 27.77 kB / 0.7084 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.861e-05/2.494, allocations: 8.875 kB / 0.7084 GB, free: 15.48 MB / 0.5762 GB 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.0001777/2.495, allocations: 154.7 kB / 0.7086 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.091e-05/2.495, allocations: 31.8 kB / 0.7086 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008943/2.495, allocations: 0.6422 MB / 0.7092 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004488/2.496, allocations: 256.3 kB / 0.7095 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/2.496, allocations: 0 / 0.7095 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/2.496, allocations: 0 / 0.7095 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/2.497, allocations: 0.7998 MB / 0.7102 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/2.497, allocations: 0 / 0.7102 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.022e-05/2.497, allocations: 20.48 kB / 0.7103 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004024/2.498, allocations: 104.8 kB / 0.7104 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/2.498, allocations: 4 kB / 0.7104 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000603/2.498, allocations: 0.6487 MB / 0.711 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/2.498, allocations: 0 / 0.711 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005466/2.499, allocations: 386.2 kB / 0.7114 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.748e-05/2.499, allocations: 39.73 kB / 0.7114 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.126e-05/2.499, allocations: 19.95 kB / 0.7114 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/2.499, allocations: 4 kB / 0.7114 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/2.499, allocations: 12.91 kB / 0.7114 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/2.499, allocations: 4 kB / 0.7114 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003919/2.499, allocations: 331.1 kB / 0.7118 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/2.499, allocations: 0 / 0.7118 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003486/2.503, allocations: 1.228 MB / 0.713 GB, free: 10.64 MB / 0.5762 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 (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.006294/2.509, allocations: 1.768 MB / 0.7147 GB, free: 8.895 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007579/2.51, allocations: 257.5 kB / 0.7149 GB, free: 8.637 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/2.51, allocations: 0 / 0.7149 GB, free: 8.637 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003074/2.51, allocations: 115.4 kB / 0.715 GB, free: 8.527 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000784/2.511, allocations: 137.4 kB / 0.7152 GB, free: 8.406 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/2.512, allocations: 0.7039 MB / 0.7159 GB, free: 7.672 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004861/2.513, allocations: 0.8068 MB / 0.7166 GB, free: 6.84 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.728e-05/2.513, allocations: 31.42 kB / 0.7167 GB, free: 6.809 MB / 0.5762 GB Notification: Performance of SimCode: time 7.01e-07/2.513, allocations: 3.938 kB / 0.7167 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of Templates: time 0.04904/2.562, allocations: 26.2 MB / 0.7423 GB, free: 13.04 MB / 0.6075 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=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 11.858242477988824] Failed to read output from testmodel.py, exit status != 0: 2.7663340799044818 3.044503692 0.741154922 Calling exit ...