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.8598/0.8598, allocations: 153.8 MB / 172.7 MB, free: 4.863 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.0007123/0.0007123, allocations: 7.984 kB / 250.3 MB, free: 3.93 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1862/0.1869, allocations: 33.36 MB / 283.6 MB, free: 2.055 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.919/2.106, allocations: 307.5 MB / 0.5773 GB, free: 17.23 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03513/2.141, allocations: 30.81 MB / 0.6073 GB, free: 2.508 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003798/2.141, allocations: 2.781 kB / 0.6073 GB, free: 2.508 MB / 478.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.000567/2.142, allocations: 158.5 kB / 0.6075 GB, free: 2.457 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002949/2.142, allocations: 169.1 kB / 0.6077 GB, free: 2.371 MB / 478.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.02813/2.17, allocations: 9.847 MB / 0.6173 GB, free: 12.44 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007566/2.171, allocations: 398.8 kB / 0.6177 GB, free: 12.05 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00023/2.171, allocations: 112.7 kB / 0.6178 GB, free: 11.94 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003242/2.172, allocations: 176.4 kB / 0.6179 GB, free: 11.77 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002313/2.172, allocations: 171.3 kB / 0.6181 GB, free: 11.6 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.286e-05/2.172, allocations: 19.94 kB / 0.6181 GB, free: 11.58 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03345/2.205, allocations: 16.83 MB / 0.6346 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001461/2.206, allocations: 71.77 kB / 0.6346 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001992/2.206, allocations: 131.3 kB / 0.6347 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01905/2.225, allocations: 8.552 MB / 0.6431 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/2.225, allocations: 0 / 0.6431 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.483e-06/2.225, allocations: 0 / 0.6431 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.108e-05/2.225, allocations: 4 kB / 0.6431 GB, free: 1.953 MB / 0.4981 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.004/2.229, allocations: 1.508 MB / 0.6446 GB, free: 416 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/2.229, allocations: 8.031 kB / 0.6446 GB, free: 408 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.93e-05/2.229, allocations: 39.72 kB / 0.6446 GB, free: 368 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003338/2.229, allocations: 233.9 kB / 0.6448 GB, free: 112 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/2.229, allocations: 17.12 kB / 0.6449 GB, free: 96 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.145e-05/2.229, allocations: 20 kB / 0.6449 GB, free: 76 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004966/2.23, allocations: 327.4 kB / 0.6452 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/2.23, allocations: 0.875 kB / 0.6452 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/2.23, allocations: 12 kB / 0.6452 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.719e-05/2.23, allocations: 11.98 kB / 0.6452 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003202/2.23, allocations: 213.2 kB / 0.6454 GB, free: 15.5 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.03793/2.268, allocations: 10.88 MB / 0.656 GB, free: 4.566 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002328/2.268, allocations: 123.6 kB / 0.6562 GB, free: 4.438 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001294/2.269, allocations: 88.83 kB / 0.6562 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1585/2.427, allocations: 43.59 MB / 0.6988 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.245e-05/2.427, allocations: 30.56 kB / 0.6988 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.324e-06/2.427, allocations: 0 / 0.6988 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001188/2.428, allocations: 428.3 kB / 0.6992 GB, free: 8.254 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/2.428, allocations: 51.41 kB / 0.6993 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003859/2.429, allocations: 320 kB / 0.6996 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/2.429, allocations: 25.7 kB / 0.6996 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001528/2.429, allocations: 196.5 kB / 0.6998 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.255e-05/2.429, allocations: 115 kB / 0.6999 GB, free: 7.531 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.592e-05/2.429, allocations: 58.58 kB / 0.7 GB, free: 7.469 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001665/2.429, allocations: 338.8 kB / 0.7003 GB, free: 7.129 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/2.429, allocations: 95.95 kB / 0.7004 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/2.429, allocations: 140.9 kB / 0.7005 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003385/2.43, allocations: 248.8 kB / 0.7008 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/2.43, allocations: 0 / 0.7008 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005311/2.43, allocations: 341.7 kB / 0.7011 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/2.43, allocations: 12.12 kB / 0.7011 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/2.43, allocations: 0 / 0.7011 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008251/2.431, allocations: 140.6 kB / 0.7012 GB, free: 6.129 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.303e-05/2.431, allocations: 13.5 kB / 0.7012 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006139/2.432, allocations: 0.6114 MB / 0.7018 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/2.432, allocations: 27.78 kB / 0.7019 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/2.432, allocations: 4 kB / 0.7019 GB, free: 5.449 MB / 0.5606 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.000174/2.432, allocations: 162.3 kB / 0.702 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.611e-05/2.432, allocations: 25.5 kB / 0.7021 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000919/2.433, allocations: 0.6407 MB / 0.7027 GB, free: 4.539 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004602/2.434, allocations: 259.2 kB / 0.7029 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/2.434, allocations: 0 / 0.7029 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/2.434, allocations: 3.984 kB / 0.7029 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/2.435, allocations: 0.715 MB / 0.7036 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/2.435, allocations: 4 kB / 0.7036 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.828e-05/2.435, allocations: 15.94 kB / 0.7036 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003534/2.435, allocations: 104.8 kB / 0.7037 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/2.435, allocations: 0 / 0.7037 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005911/2.436, allocations: 0.646 MB / 0.7044 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/2.436, allocations: 1.125 kB / 0.7044 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005478/2.436, allocations: 381.7 kB / 0.7047 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/2.436, allocations: 51.67 kB / 0.7048 GB, free: 2.281 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.202e-05/2.436, allocations: 7.938 kB / 0.7048 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/2.437, allocations: 8 kB / 0.7048 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.023e-05/2.437, allocations: 9.859 kB / 0.7048 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/2.437, allocations: 4.938 kB / 0.7048 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000366/2.437, allocations: 303.1 kB / 0.7051 GB, free: 1.957 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/2.437, allocations: 0 / 0.7051 GB, free: 1.957 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003151/2.44, allocations: 1.231 MB / 0.7063 GB, free: 0.7227 MB / 0.5606 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.004845/2.445, allocations: 1.762 MB / 0.708 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007104/2.446, allocations: 266.9 kB / 0.7083 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/2.446, allocations: 0 / 0.7083 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003202/2.446, allocations: 103.9 kB / 0.7084 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007851/2.447, allocations: 124.1 kB / 0.7085 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/2.448, allocations: 0.6546 MB / 0.7091 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/2.448, allocations: 197.4 kB / 0.7093 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.77e-05/2.448, allocations: 39.66 kB / 0.7094 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.005e-05/2.448, allocations: 23.44 kB / 0.7094 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of SimCode: time 4.21e-07/2.448, allocations: 0 / 0.7094 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of Templates: time 0.06141/2.51, allocations: 42.98 MB / 0.7514 GB, free: 3.105 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: 8.618470137938857] Failed to read output from testmodel.py, exit status != 0: 2.908018732443452 2.918152342 0.6905517290000001 Calling exit ...