Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8217/0.8217, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005207/0.0005209, allocations: 13.47 kB / 239.2 MB, free: 2.422 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06374/0.06428, allocations: 31.35 MB / 270.6 MB, free: 6.898 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend): time 1.761/1.825, allocations: 295.8 MB / 0.553 GB, free: 12.89 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0448/1.87, allocations: 35.08 MB / 0.5873 GB, free: 9.668 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003069/1.87, allocations: 4 kB / 0.5873 GB, free: 9.664 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-master/WaterSteam/PressureLosses/Bend.mo:55:3-57:42: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 4.0.0-master/WaterSteam/PressureLosses/Bend.mo:58:3-60:43: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.0006219/1.871, allocations: 271 kB / 0.5876 GB, free: 9.398 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003935/1.871, allocations: 262.8 kB / 0.5878 GB, free: 9.141 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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.02594/1.897, allocations: 9.814 MB / 0.5974 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009024/1.898, allocations: 0.4988 MB / 0.5979 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003024/1.898, allocations: 180.5 kB / 0.5981 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003528/1.899, allocations: 243.1 kB / 0.5983 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003632/1.899, allocations: 295.1 kB / 0.5986 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.754e-05/1.899, allocations: 24 kB / 0.5986 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03224/1.931, allocations: 18.04 MB / 0.6162 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002389/1.932, allocations: 179.4 kB / 0.6164 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003173/1.932, allocations: 274.2 kB / 0.6166 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02043/1.953, allocations: 8.874 MB / 0.6253 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/1.953, allocations: 4 kB / 0.6253 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.804e-06/1.953, allocations: 0 / 0.6253 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.588e-06/1.953, allocations: 4 kB / 0.6253 GB, free: 2.68 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004897/1.958, allocations: 1.89 MB / 0.6272 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/1.958, allocations: 8.031 kB / 0.6272 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.008e-05/1.958, allocations: 70.52 kB / 0.6272 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/1.958, allocations: 71.53 kB / 0.6273 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005979/1.958, allocations: 498.8 kB / 0.6278 GB, free: 44 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.857e-05/1.958, allocations: 16.56 kB / 0.6278 GB, free: 28 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.755e-05/1.959, allocations: 35.86 kB / 0.6278 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006048/1.959, allocations: 437.2 kB / 0.6282 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/1.959, allocations: 0 / 0.6282 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.593e-05/1.959, allocations: 12 kB / 0.6283 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.877e-05/1.959, allocations: 15.98 kB / 0.6283 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004517/1.96, allocations: 345.7 kB / 0.6286 GB, free: 15.16 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.03992/2, allocations: 18.7 MB / 0.6469 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006303/2, allocations: 178.6 kB / 0.647 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/2, allocations: 104.8 kB / 0.6471 GB, free: 10.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.344/2.344, allocations: 77.91 MB / 0.7232 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/2.345, allocations: 30.56 kB / 0.7233 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 2.334e-06/2.345, allocations: 0 / 0.7233 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.001693/2.346, allocations: 0.5962 MB / 0.7238 GB, free: 210 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.612e-05/2.346, allocations: 105.6 kB / 0.7239 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/2.347, allocations: 1.002 MB / 0.7249 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/2.347, allocations: 35.16 kB / 0.7249 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001832/2.347, allocations: 307.6 kB / 0.7252 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.122e-05/2.348, allocations: 132.3 kB / 0.7254 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.553e-05/2.348, allocations: 67.03 kB / 0.7254 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.734e-05/2.348, allocations: 384.3 kB / 0.7258 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001615/2.348, allocations: 156.3 kB / 0.7259 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/2.348, allocations: 244 kB / 0.7262 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003131/2.348, allocations: 332.1 kB / 0.7265 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/2.348, allocations: 0 / 0.7265 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005867/2.349, allocations: 0.534 MB / 0.727 GB, free: 209 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/2.349, allocations: 5.688 kB / 0.727 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/2.349, allocations: 2.812 kB / 0.727 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001515/2.351, allocations: 229.1 kB / 0.7272 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.433e-05/2.351, allocations: 24.28 kB / 0.7273 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005069/2.351, allocations: 0.6829 MB / 0.7279 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/2.351, allocations: 38.86 kB / 0.728 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.083e-05/2.351, allocations: 15.25 kB / 0.728 GB, free: 208.4 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (Bend.C2.b,Bend.C1.a,SinkP1.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 (18): * Single equations (assignments): 15 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002091/2.352, allocations: 250.7 kB / 0.7282 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.571e-05/2.352, allocations: 67.62 kB / 0.7283 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006879/2.352, allocations: 0.6987 MB / 0.729 GB, free: 208 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002898/2.353, allocations: 250 kB / 0.7292 GB, free: 208 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/2.353, allocations: 0 / 0.7292 GB, free: 208 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/2.353, allocations: 1.078 kB / 0.7292 GB, free: 208 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009978/2.354, allocations: 0.9843 MB / 0.7302 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/2.354, allocations: 1.875 kB / 0.7302 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.885e-05/2.354, allocations: 23.33 kB / 0.7302 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007973/2.355, allocations: 176.3 kB / 0.7304 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/2.355, allocations: 6.344 kB / 0.7304 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004448/2.355, allocations: 0.6981 MB / 0.7311 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/2.355, allocations: 0 / 0.7311 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003917/2.356, allocations: 432.5 kB / 0.7315 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001366/2.356, allocations: 177.5 kB / 0.7316 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.032e-05/2.356, allocations: 13.22 kB / 0.7316 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/2.356, allocations: 9.344 kB / 0.7317 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.852e-05/2.356, allocations: 10.92 kB / 0.7317 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/2.356, allocations: 11.03 kB / 0.7317 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007399/2.357, allocations: 0.8115 MB / 0.7325 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.01e-07/2.357, allocations: 0 / 0.7325 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002935/2.36, allocations: 1.27 MB / 0.7337 GB, free: 206.7 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (12): * Single equations (assignments): 11 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005075/2.365, allocations: 2.652 MB / 0.7363 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006775/2.365, allocations: 364.3 kB / 0.7366 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/2.365, allocations: 5.094 kB / 0.7366 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002688/2.366, allocations: 112.2 kB / 0.7368 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008211/2.367, allocations: 148.7 kB / 0.7369 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007024/2.374, allocations: 6.152 MB / 0.7429 GB, free: 203.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/2.374, allocations: 0.9415 MB / 0.7438 GB, free: 203 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001647/2.374, allocations: 56.28 kB / 0.7439 GB, free: 203 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/2.374, allocations: 234.6 kB / 0.7441 GB, free: 203 MB / 0.5919 GB Notification: Performance of SimCode: time 6.31e-07/2.374, allocations: 0 / 0.7441 GB, free: 203 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07622/2.451, allocations: 54.29 MB / 0.7971 GB, free: 154.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.61/17.06, allocations: 4.875 kB / 0.7971 GB, free: 154.5 MB / 0.5919 GB " [Timeout remaining time 643] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.019454353954643] Failed to read output from testmodel.py, exit status != 0: 17.322959360084496 17.332173129 15.377764611 Calling exit ...