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.5461/0.5461, allocations: 120.4 MB / 140.2 MB, free: 12.97 MB / 138.7 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.635e-06/2.635e-06, allocations: 0 / 217.9 MB, free: 8.676 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.17e-05/2.434e-05, allocations: 4.688 kB / 217.9 MB, free: 8.672 MB / 202.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.022/1.022, allocations: 254.2 MB / 472.1 MB, free: 8.852 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.262/1.284, allocations: 30.81 MB / 0.4912 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001799/1.284, allocations: 3.594 kB / 0.4912 GB, free: 0.8867 MB / 442.7 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.0005293/1.284, allocations: 158.9 kB / 0.4913 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002744/1.285, allocations: 174.7 kB / 0.4915 GB, free: 0.8711 MB / 442.7 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.02013/1.305, allocations: 9.924 MB / 0.5012 GB, free: 14.91 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.000509/1.305, allocations: 409.8 kB / 0.5016 GB, free: 14.76 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002049/1.305, allocations: 115.1 kB / 0.5017 GB, free: 14.7 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003185/1.306, allocations: 249.2 kB / 0.5019 GB, free: 14.55 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/1.306, allocations: 144.6 kB / 0.502 GB, free: 14.5 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/1.306, allocations: 17.81 kB / 0.5021 GB, free: 14.5 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02327/1.329, allocations: 16.86 MB / 0.5185 GB, free: 2.52 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001203/1.329, allocations: 73.84 kB / 0.5186 GB, free: 2.453 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001475/1.33, allocations: 100.2 kB / 0.5187 GB, free: 2.359 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01535/1.345, allocations: 10.92 MB / 0.5294 GB, free: 7.93 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/1.345, allocations: 0.6562 kB / 0.5294 GB, free: 7.93 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.452e-06/1.345, allocations: 1.812 kB / 0.5294 GB, free: 7.93 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.191e-06/1.345, allocations: 0 / 0.5294 GB, free: 7.93 MB / 474.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.002792/1.348, allocations: 1.506 MB / 0.5308 GB, free: 6.391 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/1.348, allocations: 8.031 kB / 0.5308 GB, free: 6.383 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.742e-05/1.348, allocations: 45.25 kB / 0.5309 GB, free: 6.34 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002213/1.348, allocations: 235.2 kB / 0.5311 GB, free: 6.094 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/1.348, allocations: 18.22 kB / 0.5311 GB, free: 6.074 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.08e-05/1.348, allocations: 16 kB / 0.5311 GB, free: 6.059 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003152/1.348, allocations: 327.8 kB / 0.5314 GB, free: 5.719 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/1.348, allocations: 3.047 kB / 0.5315 GB, free: 5.719 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/1.348, allocations: 8 kB / 0.5315 GB, free: 5.711 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/1.348, allocations: 12.5 kB / 0.5315 GB, free: 5.699 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002105/1.349, allocations: 217.7 kB / 0.5317 GB, free: 5.484 MB / 474.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.01771/1.366, allocations: 10.85 MB / 0.5423 GB, free: 10.73 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001653/1.366, allocations: 127.8 kB / 0.5424 GB, free: 10.6 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.349e-05/1.367, allocations: 92.83 kB / 0.5425 GB, free: 10.51 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.072/1.439, allocations: 43.58 MB / 0.585 GB, free: 14.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.179e-05/1.439, allocations: 39.12 kB / 0.5851 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=34): time 2.345e-06/1.439, allocations: 4 kB / 0.5851 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of matching and sorting (n=34): time 0.0009247/1.44, allocations: 411.5 kB / 0.5855 GB, free: 14.44 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/1.44, allocations: 56.34 kB / 0.5855 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002664/1.44, allocations: 316 kB / 0.5858 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/1.44, allocations: 29.7 kB / 0.5859 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/1.44, allocations: 194.2 kB / 0.5861 GB, free: 13.83 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.16e-05/1.44, allocations: 117 kB / 0.5862 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.58e-05/1.44, allocations: 45.7 kB / 0.5862 GB, free: 13.66 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.659e-05/1.44, allocations: 346.7 kB / 0.5865 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.697e-05/1.44, allocations: 95.97 kB / 0.5866 GB, free: 13.22 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001064/1.44, allocations: 136.2 kB / 0.5868 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/1.441, allocations: 257.7 kB / 0.587 GB, free: 12.81 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/1.441, allocations: 1.5 kB / 0.587 GB, free: 12.81 MB / 0.5261 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003257/1.441, allocations: 342.3 kB / 0.5873 GB, free: 12.46 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/1.441, allocations: 5.719 kB / 0.5873 GB, free: 12.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/1.441, allocations: 0 / 0.5873 GB, free: 12.46 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004961/1.441, allocations: 137.4 kB / 0.5875 GB, free: 12.32 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.594e-05/1.441, allocations: 15.98 kB / 0.5875 GB, free: 12.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000379/1.442, allocations: 0.6171 MB / 0.5881 GB, free: 11.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.683e-05/1.442, allocations: 19.78 kB / 0.5881 GB, free: 11.65 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.248e-05/1.442, allocations: 12 kB / 0.5881 GB, free: 11.64 MB / 0.5261 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.0001244/1.442, allocations: 160.2 kB / 0.5883 GB, free: 11.47 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.59e-05/1.442, allocations: 32.38 kB / 0.5883 GB, free: 11.44 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005573/1.443, allocations: 0.6437 MB / 0.5889 GB, free: 10.72 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000235/1.443, allocations: 257.2 kB / 0.5892 GB, free: 10.46 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/1.443, allocations: 0 / 0.5892 GB, free: 10.46 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/1.443, allocations: 2.156 kB / 0.5892 GB, free: 10.46 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006599/1.444, allocations: 0.7202 MB / 0.5899 GB, free: 9.711 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/1.444, allocations: 0 / 0.5899 GB, free: 9.711 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.701e-05/1.444, allocations: 19.98 kB / 0.5899 GB, free: 9.691 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002075/1.444, allocations: 108.7 kB / 0.59 GB, free: 9.582 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/1.444, allocations: 4.625 kB / 0.59 GB, free: 9.578 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000323/1.444, allocations: 0.6466 MB / 0.5906 GB, free: 8.906 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/1.444, allocations: 0 / 0.5906 GB, free: 8.906 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003122/1.444, allocations: 376 kB / 0.591 GB, free: 8.52 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 5.12e-05/1.445, allocations: 39.73 kB / 0.591 GB, free: 8.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.544e-05/1.445, allocations: 8.438 kB / 0.591 GB, free: 8.473 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.243e-05/1.445, allocations: 4 kB / 0.591 GB, free: 8.469 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.856e-05/1.445, allocations: 11.97 kB / 0.5911 GB, free: 8.457 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/1.445, allocations: 5.219 kB / 0.5911 GB, free: 8.453 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002132/1.445, allocations: 303.2 kB / 0.5914 GB, free: 8.156 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7e-08/1.445, allocations: 0 / 0.5914 GB, free: 8.156 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002512/1.447, allocations: 1.235 MB / 0.5926 GB, free: 6.918 MB / 0.5261 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.003443/1.451, allocations: 1.935 MB / 0.5944 GB, free: 5.215 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0004393/1.451, allocations: 262.5 kB / 0.5947 GB, free: 4.953 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/1.451, allocations: 4 kB / 0.5947 GB, free: 4.949 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001518/1.451, allocations: 112.7 kB / 0.5948 GB, free: 4.84 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004423/1.452, allocations: 113.8 kB / 0.5949 GB, free: 4.734 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008306/1.453, allocations: 0.6713 MB / 0.5956 GB, free: 4.027 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001259/1.453, allocations: 196.8 kB / 0.5958 GB, free: 3.82 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.385e-05/1.453, allocations: 28.5 kB / 0.5958 GB, free: 3.793 MB / 0.5261 GB Notification: Performance of SimCode: time 5.31e-07/1.453, allocations: 0 / 0.5958 GB, free: 3.793 MB / 0.5261 GB Notification: Performance of Templates: time 0.0289/1.482, allocations: 26.27 MB / 0.6214 GB, free: 9.664 MB / 0.5573 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=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.235057685524225] Failed to read output from testmodel.py, exit status != 0: 1.7256201189011335 1.6517004 0.304322398 Calling exit ...