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.9206/0.9206, allocations: 120.4 MB / 139.5 MB, free: 492 kB / 126.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 2.484e-06/2.484e-06, allocations: 0 / 217.1 MB, free: 13.8 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.382e-05/3.631e-05, allocations: 2.281 kB / 217.1 MB, free: 13.8 MB / 206.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.547/1.547, allocations: 254.2 MB / 471.4 MB, free: 10.6 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.2552/1.802, allocations: 30.83 MB / 0.4904 GB, free: 7.738 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002306/1.803, allocations: 1.969 kB / 0.4904 GB, free: 7.738 MB / 446.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.0005659/1.803, allocations: 154.1 kB / 0.4906 GB, free: 7.652 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003846/1.804, allocations: 177.2 kB / 0.4908 GB, free: 7.523 MB / 446.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.03221/1.836, allocations: 9.931 MB / 0.5005 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007412/1.837, allocations: 408.1 kB / 0.5008 GB, free: 368 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002288/1.837, allocations: 102.2 kB / 0.5009 GB, free: 272 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003912/1.837, allocations: 251.8 kB / 0.5012 GB, free: 20 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000238/1.837, allocations: 145.8 kB / 0.5013 GB, free: 15.88 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.802e-05/1.838, allocations: 18.47 kB / 0.5013 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03329/1.871, allocations: 16.87 MB / 0.5178 GB, free: 15 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001575/1.871, allocations: 76.5 kB / 0.5179 GB, free: 14.92 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/1.871, allocations: 95.72 kB / 0.518 GB, free: 14.83 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02286/1.894, allocations: 10.92 MB / 0.5286 GB, free: 3.883 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/1.894, allocations: 0 / 0.5286 GB, free: 3.883 MB / 478.1 MB Notification: Performance of FrontEnd: time 4.218e-06/1.894, allocations: 5.938 kB / 0.5286 GB, free: 3.879 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.551e-05/1.894, allocations: 0 / 0.5286 GB, free: 3.879 MB / 478.1 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.003948/1.898, allocations: 1.496 MB / 0.5301 GB, free: 2.344 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/1.898, allocations: 8.688 kB / 0.5301 GB, free: 2.336 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.456e-05/1.898, allocations: 41.34 kB / 0.5302 GB, free: 2.297 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/1.898, allocations: 236 kB / 0.5304 GB, free: 2.043 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.777e-05/1.898, allocations: 16.5 kB / 0.5304 GB, free: 2.023 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.355e-05/1.898, allocations: 16 kB / 0.5304 GB, free: 2.008 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004888/1.899, allocations: 331.7 kB / 0.5307 GB, free: 1.66 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/1.899, allocations: 2 kB / 0.5307 GB, free: 1.66 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.498e-05/1.899, allocations: 12.56 kB / 0.5307 GB, free: 1.648 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/1.899, allocations: 4 kB / 0.5307 GB, free: 1.645 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003185/1.899, allocations: 217.1 kB / 0.5309 GB, free: 1.434 MB / 478.1 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.03744/1.937, allocations: 10.85 MB / 0.5415 GB, free: 6.633 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/1.937, allocations: 130.5 kB / 0.5417 GB, free: 6.496 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001313/1.937, allocations: 92.83 kB / 0.5418 GB, free: 6.402 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1841/2.121, allocations: 43.57 MB / 0.5843 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.066e-05/2.121, allocations: 34.56 kB / 0.5843 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=34): time 3.085e-06/2.121, allocations: 0 / 0.5843 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of matching and sorting (n=34): time 0.00159/2.123, allocations: 423.5 kB / 0.5847 GB, free: 10.32 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/2.123, allocations: 55.34 kB / 0.5848 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005043/2.123, allocations: 324 kB / 0.5851 GB, free: 9.926 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/2.124, allocations: 29.7 kB / 0.5851 GB, free: 9.891 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002181/2.124, allocations: 192.5 kB / 0.5853 GB, free: 9.699 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/2.124, allocations: 116.1 kB / 0.5854 GB, free: 9.586 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/2.124, allocations: 49.66 kB / 0.5855 GB, free: 9.531 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000242/2.124, allocations: 342.8 kB / 0.5858 GB, free: 9.188 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/2.124, allocations: 95.97 kB / 0.5859 GB, free: 9.094 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/2.125, allocations: 137.5 kB / 0.586 GB, free: 8.945 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/2.125, allocations: 256.5 kB / 0.5863 GB, free: 8.68 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/2.125, allocations: 4 kB / 0.5863 GB, free: 8.676 MB / 0.5294 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005421/2.125, allocations: 329.9 kB / 0.5866 GB, free: 8.344 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/2.126, allocations: 11.94 kB / 0.5866 GB, free: 8.332 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/2.126, allocations: 0 / 0.5866 GB, free: 8.332 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009249/2.126, allocations: 141.5 kB / 0.5867 GB, free: 8.191 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.598e-05/2.127, allocations: 11.98 kB / 0.5868 GB, free: 8.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006493/2.127, allocations: 0.613 MB / 0.5873 GB, free: 7.543 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001459/2.127, allocations: 23.78 kB / 0.5874 GB, free: 7.52 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.074e-05/2.127, allocations: 7.984 kB / 0.5874 GB, free: 7.512 MB / 0.5294 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.0001904/2.128, allocations: 165.8 kB / 0.5875 GB, free: 7.34 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.565e-05/2.128, allocations: 28.88 kB / 0.5876 GB, free: 7.312 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000983/2.129, allocations: 0.6404 MB / 0.5882 GB, free: 6.598 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004979/2.129, allocations: 256.7 kB / 0.5884 GB, free: 6.34 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/2.129, allocations: 2.625 kB / 0.5884 GB, free: 6.34 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/2.129, allocations: 4.547 kB / 0.5884 GB, free: 6.336 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/2.13, allocations: 0.7209 MB / 0.5891 GB, free: 5.574 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/2.13, allocations: 0 / 0.5891 GB, free: 5.574 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.789e-05/2.13, allocations: 21.69 kB / 0.5892 GB, free: 5.555 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003923/2.131, allocations: 100.8 kB / 0.5893 GB, free: 5.453 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/2.131, allocations: 8 kB / 0.5893 GB, free: 5.445 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006076/2.131, allocations: 0.6396 MB / 0.5899 GB, free: 4.781 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/2.131, allocations: 3.938 kB / 0.5899 GB, free: 4.777 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005912/2.132, allocations: 375.2 kB / 0.5903 GB, free: 4.395 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 8.932e-05/2.132, allocations: 41.28 kB / 0.5903 GB, free: 4.355 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.022e-05/2.132, allocations: 15.89 kB / 0.5903 GB, free: 4.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/2.132, allocations: 4.625 kB / 0.5903 GB, free: 4.336 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.153e-05/2.132, allocations: 12.03 kB / 0.5903 GB, free: 4.324 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/2.132, allocations: 12 kB / 0.5903 GB, free: 4.312 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003435/2.133, allocations: 299.2 kB / 0.5906 GB, free: 4.023 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.1e-08/2.133, allocations: 0 / 0.5906 GB, free: 4.023 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003393/2.136, allocations: 1.231 MB / 0.5918 GB, free: 2.789 MB / 0.5294 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.006061/2.142, allocations: 1.924 MB / 0.5937 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0007173/2.143, allocations: 269.3 kB / 0.594 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/2.143, allocations: 0 / 0.594 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003146/2.143, allocations: 121.2 kB / 0.5941 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008151/2.144, allocations: 102.6 kB / 0.5942 GB, free: 408 kB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/2.145, allocations: 0.642 MB / 0.5948 GB, free: 15.72 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/2.145, allocations: 200.8 kB / 0.595 GB, free: 15.51 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 9.233e-05/2.145, allocations: 27.97 kB / 0.595 GB, free: 15.48 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.154e-05/2.146, allocations: 24.5 kB / 0.595 GB, free: 15.46 MB / 0.545 GB Notification: Performance of SimCode: time 3.11e-07/2.146, allocations: 0 / 0.595 GB, free: 15.46 MB / 0.545 GB Notification: Performance of Templates: time 0.06399/2.209, allocations: 42.67 MB / 0.6367 GB, free: 5.051 MB / 0.5762 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: 8.497328285127878] Failed to read output from testmodel.py, exit status != 0: 2.615641061216593 2.625343036 0.728861174 Calling exit ...