Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/package.mo): time 0.4803/0.4803, allocations: 111.7 MB / 121.6 MB, free: 4.789 MB / 122.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0865/0.5668, allocations: 33.97 MB / 155.5 MB, free: 3.719 MB / 154.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/package.mo) Running command: translateModel(ThermoSysPro.Examples.SimpleExamples.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 156.8 MB, free: 2.473 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.013e-05/1.18e-05, allocations: 9.266 kB / 156.8 MB, free: 2.465 MB / 154.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.SimpleExamples.TestControlValve): time 1.002/1.002, allocations: 233.3 MB / 390.1 MB, free: 2.629 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02685/1.029, allocations: 33.49 MB / 423.6 MB, free: 1.012 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.617e-05/1.029, allocations: 4 kB / 423.6 MB, free: 1.008 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-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). [Non-standard Modelica: --allowNonStandardModelica=unbalancedModel] [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-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). [Non-standard Modelica: --allowNonStandardModelica=unbalancedModel] [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-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). [Non-standard Modelica: --allowNonStandardModelica=unbalancedModel] [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-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). [Non-standard Modelica: --allowNonStandardModelica=unbalancedModel] Notification: Performance of NFTyping.typeComponents: time 0.0003059/1.029, allocations: 165.4 kB / 423.8 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001593/1.029, allocations: 179 kB / 424 MB, free: 0.6758 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01377/1.043, allocations: 8.73 MB / 432.7 MB, free: 7.906 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003739/1.043, allocations: 398.1 kB / 433.1 MB, free: 7.516 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/1.044, allocations: 123.6 kB / 433.2 MB, free: 7.398 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002713/1.044, allocations: 263.3 kB / 433.5 MB, free: 7.141 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001467/1.044, allocations: 131.7 kB / 433.6 MB, free: 7.012 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.368e-05/1.044, allocations: 16 kB / 433.6 MB, free: 6.996 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteam/IF97_packages.mo:470:9-470:27:writable] Warning: 'cv' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteam/IF97_packages.mo:525:9-525:27:writable] Warning: 'cv' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteam/IF97_packages.mo:708:9-708:27:writable] Warning: 'cv' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51:60:writable] Warning: 'dh1satp' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51:60:writable] Warning: 'dh2satp' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151:writable] Warning: 'du1satp_der' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151:writable] Warning: 'du2satp_der' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. Notification: Performance of NFFlatten.collectFunctions: time 0.02093/1.065, allocations: 18.17 MB / 451.8 MB, free: 4.805 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001012/1.065, allocations: 67.78 kB / 451.9 MB, free: 4.738 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/1.065, allocations: 87.75 kB / 451.9 MB, free: 4.652 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0105/1.076, allocations: 8.301 MB / 460.2 MB, free: 12.33 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.257e-05/1.076, allocations: 0 / 460.2 MB, free: 12.33 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.623e-06/1.076, allocations: 4 kB / 460.2 MB, free: 12.33 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.332e-05/1.076, allocations: 0 / 460.2 MB, free: 12.33 MB / 458.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.002514/1.078, allocations: 2.105 MB / 462.4 MB, free: 10.17 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.981e-05/1.078, allocations: 8.625 kB / 462.4 MB, free: 10.16 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.609e-05/1.078, allocations: 39.97 kB / 462.4 MB, free: 10.12 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001695/1.078, allocations: 200 kB / 462.6 MB, free: 9.898 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/1.078, allocations: 12.5 kB / 462.6 MB, free: 9.887 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.874e-05/1.078, allocations: 31.98 kB / 462.6 MB, free: 9.855 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002188/1.079, allocations: 239.2 kB / 462.9 MB, free: 9.59 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/1.079, allocations: 0 / 462.9 MB, free: 9.59 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/1.079, allocations: 8 kB / 462.9 MB, free: 9.582 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/1.079, allocations: 11.98 kB / 462.9 MB, free: 9.57 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.019e-05/1.079, allocations: 85.3 kB / 463 MB, free: 9.488 MB / 458.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.0135/1.092, allocations: 9.191 MB / 472.2 MB, free: 248 kB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001028/1.092, allocations: 102.5 kB / 472.3 MB, free: 136 kB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.245e-05/1.092, allocations: 33.91 kB / 472.3 MB, free: 100 kB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06045/1.153, allocations: 39.07 MB / 0.4994 GB, free: 8.984 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/1.153, allocations: 38.56 kB / 0.4994 GB, free: 8.938 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=34): time 2.244e-06/1.153, allocations: 4 kB / 0.4994 GB, free: 8.934 MB / 0.4948 GB Notification: Performance of matching and sorting (n=34): time 0.0004852/1.153, allocations: 216.2 kB / 0.4996 GB, free: 8.715 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.14e-05/1.153, allocations: 51.41 kB / 0.4997 GB, free: 8.652 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001549/1.154, allocations: 251 kB / 0.4999 GB, free: 8.391 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.26e-05/1.154, allocations: 29.7 kB / 0.4999 GB, free: 8.355 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 6.976e-05/1.154, allocations: 176.9 kB / 0.5001 GB, free: 8.18 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 4.666e-05/1.154, allocations: 111 kB / 0.5002 GB, free: 8.07 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.802e-05/1.154, allocations: 53.61 kB / 0.5003 GB, free: 8.012 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.767e-05/1.154, allocations: 342.8 kB / 0.5006 GB, free: 7.668 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.89e-05/1.154, allocations: 30.81 kB / 0.5006 GB, free: 7.637 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.038e-05/1.154, allocations: 76.17 kB / 0.5007 GB, free: 7.547 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001022/1.154, allocations: 131.3 kB / 0.5008 GB, free: 7.402 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/1.154, allocations: 4 kB / 0.5008 GB, free: 7.398 MB / 0.4948 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0001682/1.154, allocations: 180.9 kB / 0.501 GB, free: 7.211 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/1.154, allocations: 4 kB / 0.501 GB, free: 7.207 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/1.154, allocations: 7.875 kB / 0.501 GB, free: 7.203 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003158/1.154, allocations: 80.88 kB / 0.5011 GB, free: 7.121 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.603e-05/1.155, allocations: 15.98 kB / 0.5011 GB, free: 7.105 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000268/1.155, allocations: 0.5601 MB / 0.5016 GB, free: 6.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.792e-05/1.155, allocations: 19.84 kB / 0.5017 GB, free: 6.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.118e-06/1.155, allocations: 3.984 kB / 0.5017 GB, free: 6.496 MB / 0.4948 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 (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 7.666e-05/1.155, allocations: 128.6 kB / 0.5018 GB, free: 6.359 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.277e-05/1.155, allocations: 19.98 kB / 0.5018 GB, free: 6.34 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003995/1.155, allocations: 0.5141 MB / 0.5023 GB, free: 5.754 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001279/1.155, allocations: 153.1 kB / 0.5025 GB, free: 5.594 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/1.155, allocations: 0 / 0.5025 GB, free: 5.594 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/1.156, allocations: 4 kB / 0.5025 GB, free: 5.59 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004643/1.156, allocations: 0.5328 MB / 0.503 GB, free: 5.027 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/1.156, allocations: 3.938 kB / 0.503 GB, free: 5.023 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.622e-05/1.156, allocations: 19.98 kB / 0.503 GB, free: 5.004 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 3.552e-05/1.156, allocations: 35.73 kB / 0.503 GB, free: 4.969 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001324/1.156, allocations: 59.64 kB / 0.5031 GB, free: 4.906 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.603e-06/1.156, allocations: 4 kB / 0.5031 GB, free: 4.902 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002381/1.156, allocations: 0.5969 MB / 0.5037 GB, free: 4.277 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.156, allocations: 3.938 kB / 0.5037 GB, free: 4.273 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001896/1.157, allocations: 303 kB / 0.504 GB, free: 3.957 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.352e-05/1.157, allocations: 15.88 kB / 0.504 GB, free: 3.941 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.825e-05/1.157, allocations: 4 kB / 0.504 GB, free: 3.938 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.506e-05/1.157, allocations: 11.92 kB / 0.504 GB, free: 3.926 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-06/1.157, allocations: 3.938 kB / 0.504 GB, free: 3.922 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 8.854e-05/1.157, allocations: 140.8 kB / 0.5041 GB, free: 3.785 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6e-08/1.157, allocations: 0 / 0.5041 GB, free: 3.785 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002044/1.159, allocations: 1.227 MB / 0.5053 GB, free: 2.555 MB / 0.4948 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.002995/1.162, allocations: 2.085 MB / 0.5074 GB, free: 476 kB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0002634/1.162, allocations: 162.6 kB / 0.5075 GB, free: 304 kB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/1.162, allocations: 7.984 kB / 0.5075 GB, free: 296 kB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 9.561e-05/1.162, allocations: 68.77 kB / 0.5076 GB, free: 224 kB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/1.163, allocations: 141.2 kB / 0.5077 GB, free: 76 kB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1535/1.316, allocations: 0.6004 MB / 0.5083 GB, free: 78.99 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.143e-05/1.316, allocations: 105.8 kB / 0.5084 GB, free: 78.92 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 9.781e-05/1.316, allocations: 22 kB / 0.5085 GB, free: 78.92 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/1.316, allocations: 112.8 kB / 0.5086 GB, free: 78.87 MB / 0.4948 GB Notification: Performance of SimCode: time 1.202e-06/1.316, allocations: 0 / 0.5086 GB, free: 78.87 MB / 0.4948 GB Notification: Performance of Templates: time 0.03764/1.354, allocations: 49.87 MB / 0.5573 GB, free: 54.69 MB / 0.4948 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.06799/1.422, allocations: 53.73 MB / 0.6097 GB, free: 14.54 MB / 0.4948 GB " [Timeout remaining time 659] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.58371851220727]