Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.8547/0.8547, allocations: 153.8 MB / 172.7 MB, free: 4.836 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005949/0.0005949, allocations: 11.97 kB / 250.3 MB, free: 3.918 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.1718, allocations: 33.35 MB / 283.6 MB, free: 2.059 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.864/2.035, allocations: 307.6 MB / 0.5773 GB, free: 17.32 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2052/2.241, allocations: 165 MB / 0.7385 GB, free: 15.69 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000402/2.241, allocations: 11.88 kB / 0.7385 GB, free: 15.68 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourceP.mo:59:3-60:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SinkP.mo:47:3-48:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/ControlValve.mo:44:3-45:68:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/ControlValve.mo:46:3-47:66:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004287/2.241, allocations: 100 kB / 0.7386 GB, free: 15.58 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005213/2.242, allocations: 166.9 kB / 0.7388 GB, free: 15.41 MB / 0.6075 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.03275/2.275, allocations: 11.62 MB / 0.7501 GB, free: 3.797 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0007561/2.275, allocations: 444.5 kB / 0.7505 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003458/2.276, allocations: 187.2 kB / 0.7507 GB, free: 3.18 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002895/2.276, allocations: 195.3 kB / 0.7509 GB, free: 2.988 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003146/2.276, allocations: 211.1 kB / 0.7511 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.426e-05/2.276, allocations: 32 kB / 0.7511 GB, free: 2.75 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0389/2.315, allocations: 18.68 MB / 0.7694 GB, free: 52 kB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0002316/2.316, allocations: 119.6 kB / 0.7695 GB, free: 15.93 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0002677/2.316, allocations: 179 kB / 0.7697 GB, free: 15.76 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02279/2.339, allocations: 9.899 MB / 0.7793 GB, free: 5.832 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/2.339, allocations: 4 kB / 0.7793 GB, free: 5.828 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.663e-06/2.339, allocations: 0 / 0.7793 GB, free: 5.828 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.567e-05/2.339, allocations: 0 / 0.7793 GB, free: 5.828 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.004687/2.343, allocations: 1.872 MB / 0.7812 GB, free: 3.91 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/2.343, allocations: 12.03 kB / 0.7812 GB, free: 3.898 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/2.343, allocations: 57.36 kB / 0.7812 GB, free: 3.844 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005587/2.344, allocations: 315.1 kB / 0.7815 GB, free: 3.512 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.142e-05/2.344, allocations: 26.25 kB / 0.7816 GB, free: 3.484 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.828e-05/2.344, allocations: 40 kB / 0.7816 GB, free: 3.445 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006587/2.345, allocations: 376.9 kB / 0.782 GB, free: 3.055 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/2.345, allocations: 3.938 kB / 0.782 GB, free: 3.051 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/2.345, allocations: 16 kB / 0.782 GB, free: 3.035 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/2.345, allocations: 8 kB / 0.782 GB, free: 3.027 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004967/2.345, allocations: 262.4 kB / 0.7822 GB, free: 2.77 MB / 0.6387 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.008219/2.354, allocations: 3.185 MB / 0.7853 GB, free: 15.53 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002585/2.354, allocations: 106.7 kB / 0.7854 GB, free: 15.42 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.985e-05/2.354, allocations: 48.83 kB / 0.7855 GB, free: 15.37 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.446/2.8, allocations: 67.12 MB / 0.851 GB, free: 302 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.445e-05/2.8, allocations: 37.94 kB / 0.8511 GB, free: 301.9 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=7): time 2.124e-06/2.8, allocations: 0 / 0.8511 GB, free: 301.9 MB / 0.6856 GB Notification: Performance of matching and sorting (n=7): time 0.0008672/2.801, allocations: 250.2 kB / 0.8513 GB, free: 301.9 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.73e-05/2.801, allocations: 58.91 kB / 0.8514 GB, free: 301.8 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004985/2.801, allocations: 447.5 kB / 0.8518 GB, free: 301.7 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.181e-05/2.801, allocations: 27.48 kB / 0.8518 GB, free: 301.7 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/2.802, allocations: 263.2 kB / 0.8521 GB, free: 301.6 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 2.579e-05/2.802, allocations: 29.2 kB / 0.8521 GB, free: 301.5 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/2.802, allocations: 72.06 kB / 0.8522 GB, free: 301.5 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 6.093e-05/2.802, allocations: 342.7 kB / 0.8525 GB, free: 301.2 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/2.802, allocations: 61.62 kB / 0.8526 GB, free: 301.2 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/2.802, allocations: 157 kB / 0.8527 GB, free: 301.1 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000248/2.802, allocations: 237.9 kB / 0.8529 GB, free: 301 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/2.802, allocations: 0 / 0.8529 GB, free: 301 MB / 0.6856 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005415/2.803, allocations: 309.3 kB / 0.8532 GB, free: 300.9 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/2.803, allocations: 9.062 kB / 0.8532 GB, free: 300.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/2.803, allocations: 2.156 kB / 0.8532 GB, free: 300.9 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007738/2.804, allocations: 113.1 kB / 0.8533 GB, free: 300.9 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/2.804, allocations: 40.86 kB / 0.8534 GB, free: 300.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003719/2.804, allocations: 0.5712 MB / 0.8539 GB, free: 300.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001821/2.804, allocations: 24.62 kB / 0.854 GB, free: 300.3 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/2.804, allocations: 14.53 kB / 0.854 GB, free: 300.3 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,ControlValve.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,ControlValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.00016/2.804, allocations: 179.9 kB / 0.8541 GB, free: 300.2 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.661e-05/2.805, allocations: 42.95 kB / 0.8542 GB, free: 300.2 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000428/2.805, allocations: 216.3 kB / 0.8544 GB, free: 300.1 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/2.805, allocations: 3.812 kB / 0.8544 GB, free: 300.1 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/2.805, allocations: 0 / 0.8544 GB, free: 300.1 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/2.805, allocations: 4 kB / 0.8544 GB, free: 300.1 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002371/2.805, allocations: 272.7 kB / 0.8547 GB, free: 300 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/2.805, allocations: 0 / 0.8547 GB, free: 300 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.375e-05/2.805, allocations: 3.969 kB / 0.8547 GB, free: 300 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004216/2.806, allocations: 78.95 kB / 0.8547 GB, free: 300 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/2.806, allocations: 3.969 kB / 0.8547 GB, free: 300 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003271/2.806, allocations: 0.5683 MB / 0.8553 GB, free: 299.5 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/2.806, allocations: 4.594 kB / 0.8553 GB, free: 299.5 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003212/2.806, allocations: 202.9 kB / 0.8555 GB, free: 299.4 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001204/2.806, allocations: 56.97 kB / 0.8556 GB, free: 299.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.702e-05/2.806, allocations: 3.5 kB / 0.8556 GB, free: 299.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.93e-05/2.807, allocations: 0 / 0.8556 GB, free: 299.4 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/2.807, allocations: 7.734 kB / 0.8556 GB, free: 299.4 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/2.807, allocations: 4.672 kB / 0.8556 GB, free: 299.4 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002805/2.807, allocations: 300.7 kB / 0.8559 GB, free: 299.3 MB / 0.6856 GB Notification: Performance of sort global known variables: time 8e-08/2.807, allocations: 4.062 kB / 0.8559 GB, free: 299.3 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003102/2.81, allocations: 1.486 MB / 0.8573 GB, free: 299.3 MB / 0.6856 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 (4): * Single equations (assignments): 3 * 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.005224/2.815, allocations: 2.236 MB / 0.8595 GB, free: 298.5 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.000475/2.816, allocations: 164.2 kB / 0.8597 GB, free: 298.4 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/2.816, allocations: 0 / 0.8597 GB, free: 298.4 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001518/2.816, allocations: 58.3 kB / 0.8597 GB, free: 298.3 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003997/2.816, allocations: 70.5 kB / 0.8598 GB, free: 298.3 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/2.817, allocations: 0.6528 MB / 0.8604 GB, free: 297.7 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001649/2.817, allocations: 211.6 kB / 0.8606 GB, free: 297.5 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001168/2.818, allocations: 45.19 kB / 0.8607 GB, free: 297.5 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.487e-05/2.818, allocations: 28.17 kB / 0.8607 GB, free: 297.5 MB / 0.6856 GB Notification: Performance of SimCode: time 4.61e-07/2.818, allocations: 0 / 0.8607 GB, free: 297.5 MB / 0.6856 GB Notification: Performance of Templates: time 0.04813/2.866, allocations: 46.42 MB / 0.906 GB, free: 251.9 MB / 0.6856 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.0125364176929] Failed to read output from testmodel.py, exit status != 0: 2.9947510845959187 3.00356225 0.662597707 Calling exit ...