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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.805/0.805, 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: "" <> 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.0005097/0.0005097, allocations: 23.97 kB / 249.7 MB, free: 4.434 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1621/0.1626, allocations: 33.35 MB / 283.1 MB, free: 1.742 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.TestBend): time 1.778/1.941, allocations: 307.6 MB / 0.5768 GB, free: 17.51 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03204/1.973, allocations: 31.11 MB / 0.6072 GB, free: 2.559 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003612/1.973, allocations: 6.031 kB / 0.6072 GB, free: 2.559 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/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 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.000655/1.974, allocations: 259.8 kB / 0.6075 GB, free: 2.504 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004067/1.974, allocations: 281.6 kB / 0.6077 GB, free: 2.406 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.02714/2.002, allocations: 9.943 MB / 0.6174 GB, free: 11.82 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001015/2.003, allocations: 0.491 MB / 0.6179 GB, free: 11.33 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002814/2.003, allocations: 168.5 kB / 0.6181 GB, free: 11.16 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004217/2.003, allocations: 259.1 kB / 0.6183 GB, free: 10.91 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003779/2.004, allocations: 299.1 kB / 0.6186 GB, free: 10.62 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.713e-05/2.004, allocations: 28 kB / 0.6186 GB, free: 10.59 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03452/2.038, allocations: 16.91 MB / 0.6351 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003165/2.039, allocations: 175.4 kB / 0.6353 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000359/2.039, allocations: 202.7 kB / 0.6355 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02154/2.06, allocations: 8.91 MB / 0.6442 GB, free: 364 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.297e-05/2.06, allocations: 4 kB / 0.6442 GB, free: 360 kB / 0.4981 GB Notification: Performance of FrontEnd: time 2.325e-06/2.06, allocations: 4 kB / 0.6442 GB, free: 356 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.044e-05/2.06, allocations: 0 / 0.6442 GB, free: 356 kB / 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.00484/2.065, allocations: 1.81 MB / 0.646 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/2.065, allocations: 16.02 kB / 0.646 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001033/2.065, allocations: 66.53 kB / 0.6461 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/2.066, allocations: 76.5 kB / 0.6461 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006642/2.066, allocations: 436.9 kB / 0.6466 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.979e-05/2.066, allocations: 24.5 kB / 0.6466 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.982e-05/2.066, allocations: 27.94 kB / 0.6466 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006408/2.067, allocations: 484.3 kB / 0.6471 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/2.067, allocations: 0 / 0.6471 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/2.067, allocations: 12 kB / 0.6471 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/2.067, allocations: 15.98 kB / 0.6471 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004829/2.068, allocations: 353.6 kB / 0.6474 GB, free: 12.94 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.03616/2.104, allocations: 11.43 MB / 0.6586 GB, free: 1.434 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006092/2.104, allocations: 156.1 kB / 0.6587 GB, free: 1.273 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/2.104, allocations: 80.83 kB / 0.6588 GB, free: 1.191 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1477/2.252, allocations: 43.61 MB / 0.7014 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/2.252, allocations: 34.5 kB / 0.7014 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=38): time 2.205e-06/2.252, allocations: 0 / 0.7014 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of matching and sorting (n=38): time 0.001816/2.254, allocations: 0.5268 MB / 0.7019 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.835e-05/2.254, allocations: 106.8 kB / 0.702 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/2.255, allocations: 1.008 MB / 0.703 GB, free: 3.824 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.415e-05/2.255, allocations: 34.39 kB / 0.7031 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002768/2.256, allocations: 300.5 kB / 0.7034 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/2.256, allocations: 138.8 kB / 0.7035 GB, free: 3.352 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/2.256, allocations: 61.64 kB / 0.7035 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002/2.256, allocations: 378.8 kB / 0.7039 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000221/2.256, allocations: 168.4 kB / 0.7041 GB, free: 2.742 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003181/2.257, allocations: 290.5 kB / 0.7043 GB, free: 2.418 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00044/2.257, allocations: 340.9 kB / 0.7047 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/2.257, allocations: 0 / 0.7047 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000786/2.258, allocations: 0.5464 MB / 0.7052 GB, free: 1.504 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/2.258, allocations: 4 kB / 0.7052 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/2.258, allocations: 5.062 kB / 0.7052 GB, free: 1.496 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001541/2.259, allocations: 216.8 kB / 0.7054 GB, free: 1.281 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.101e-05/2.26, allocations: 19.94 kB / 0.7054 GB, free: 1.262 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007237/2.26, allocations: 0.6663 MB / 0.7061 GB, free: 0.5703 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002271/2.26, allocations: 47.81 kB / 0.7061 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/2.26, allocations: 12 kB / 0.7061 GB, free: 0.5117 MB / 0.5606 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.0002856/2.261, allocations: 254.4 kB / 0.7064 GB, free: 260 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.188e-05/2.261, allocations: 67.53 kB / 0.7064 GB, free: 192 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009065/2.262, allocations: 0.6955 MB / 0.7071 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003742/2.262, allocations: 243.2 kB / 0.7074 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/2.262, allocations: 0 / 0.7074 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/2.262, allocations: 11.92 kB / 0.7074 GB, free: 15.15 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/2.264, allocations: 0.8772 MB / 0.7082 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/2.264, allocations: 0 / 0.7082 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.651e-05/2.264, allocations: 23.92 kB / 0.7083 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008481/2.264, allocations: 178.9 kB / 0.7084 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/2.264, allocations: 9.062 kB / 0.7084 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006867/2.265, allocations: 0.7084 MB / 0.7091 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/2.265, allocations: 3.938 kB / 0.7091 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005175/2.266, allocations: 407.1 kB / 0.7095 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002192/2.266, allocations: 99.48 kB / 0.7096 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.688e-05/2.266, allocations: 15.89 kB / 0.7096 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001859/2.266, allocations: 8.062 kB / 0.7096 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.883e-05/2.266, allocations: 19.91 kB / 0.7097 GB, free: 12.72 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/2.266, allocations: 5.125 kB / 0.7097 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001008/2.267, allocations: 0.8152 MB / 0.7105 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/2.267, allocations: 4 kB / 0.7105 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003229/2.27, allocations: 1.27 MB / 0.7117 GB, free: 10.63 MB / 0.5762 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.005682/2.276, allocations: 2.647 MB / 0.7143 GB, free: 7.984 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007452/2.277, allocations: 324.7 kB / 0.7146 GB, free: 7.664 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/2.277, allocations: 0 / 0.7146 GB, free: 7.664 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002993/2.277, allocations: 114.6 kB / 0.7147 GB, free: 7.551 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008346/2.278, allocations: 146.9 kB / 0.7148 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008684/2.287, allocations: 6.157 MB / 0.7209 GB, free: 1.113 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004079/2.287, allocations: 337.3 kB / 0.7212 GB, free: 0.7617 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001756/2.287, allocations: 61.16 kB / 0.7212 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002918/2.288, allocations: 227.4 kB / 0.7214 GB, free: 496 kB / 0.5762 GB Notification: Performance of SimCode: time 1.233e-06/2.288, allocations: 0 / 0.7214 GB, free: 496 kB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1139/2.401, allocations: 55.1 MB / 0.7753 GB, free: 10.13 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.68/17.08, allocations: 5 kB / 0.7753 GB, free: 10.13 MB / 0.6387 GB " [Timeout remaining time 642] (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.081964483950287] Failed to read output from testmodel.py, exit status != 0: 17.59175323229283 17.602749445 15.539638518 Calling exit ...