Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.9141/0.9141, allocations: 153.8 MB / 172.7 MB, free: 4.949 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005379/0.0005379, allocations: 11.97 kB / 249.8 MB, free: 4.504 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1847/0.1852, allocations: 33.36 MB / 283.2 MB, free: 1.824 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend): time 1.79/1.976, allocations: 307.6 MB / 0.577 GB, free: 15.97 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2187/2.194, allocations: 194.1 MB / 0.7665 GB, free: 2.844 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005753/2.195, allocations: 15.88 kB / 0.7665 GB, free: 2.828 MB / 0.6231 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourceP.mo:59:3-60:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SinkP.mo:47:3-48:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/Bend.mo:57:3-58:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/Bend.mo:59:3-60:67:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004283/2.195, allocations: 211.2 kB / 0.7667 GB, free: 2.621 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0005279/2.196, allocations: 274.7 kB / 0.767 GB, free: 2.352 MB / 0.6231 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.0347/2.231, allocations: 12.64 MB / 0.7793 GB, free: 5.711 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0009594/2.232, allocations: 0.5503 MB / 0.7799 GB, free: 5.156 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003549/2.232, allocations: 245.1 kB / 0.7801 GB, free: 4.914 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003924/2.232, allocations: 267.1 kB / 0.7803 GB, free: 4.652 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004375/2.233, allocations: 390.8 kB / 0.7807 GB, free: 4.27 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 6.184e-05/2.233, allocations: 40 kB / 0.7808 GB, free: 4.23 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04201/2.275, allocations: 21.22 MB / 0.8015 GB, free: 14.98 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.000286/2.275, allocations: 215.3 kB / 0.8017 GB, free: 14.77 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0003594/2.275, allocations: 334 kB / 0.802 GB, free: 14.45 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.02516/2.301, allocations: 10.82 MB / 0.8126 GB, free: 3.594 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/2.301, allocations: 0 / 0.8126 GB, free: 3.594 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.704e-06/2.301, allocations: 0 / 0.8126 GB, free: 3.594 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.007e-05/2.301, allocations: 0 / 0.8126 GB, free: 3.594 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.005417/2.306, allocations: 2.295 MB / 0.8148 GB, free: 1.254 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/2.306, allocations: 8.031 kB / 0.8148 GB, free: 1.246 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.599e-05/2.306, allocations: 78.52 kB / 0.8149 GB, free: 1.16 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002037/2.306, allocations: 91.44 kB / 0.815 GB, free: 1.07 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007787/2.307, allocations: 0.5169 MB / 0.8155 GB, free: 0.5234 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.518e-05/2.307, allocations: 33 kB / 0.8155 GB, free: 0.4922 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.336e-05/2.307, allocations: 40 kB / 0.8156 GB, free: 464 kB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007263/2.308, allocations: 491.5 kB / 0.816 GB, free: 15.93 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/2.308, allocations: 0 / 0.816 GB, free: 15.93 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.565e-05/2.308, allocations: 19.83 kB / 0.816 GB, free: 15.92 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/2.308, allocations: 8 kB / 0.816 GB, free: 15.91 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006288/2.309, allocations: 418.3 kB / 0.8164 GB, free: 15.51 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008825/2.317, allocations: 4.377 MB / 0.8207 GB, free: 10.93 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005534/2.318, allocations: 107.5 kB / 0.8208 GB, free: 10.81 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.644e-05/2.318, allocations: 40.89 kB / 0.8209 GB, free: 10.77 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4524/2.77, allocations: 88.38 MB / 0.9072 GB, free: 247.6 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/2.771, allocations: 38.31 kB / 0.9072 GB, free: 247.6 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=11): time 2.304e-06/2.771, allocations: 0 / 0.9072 GB, free: 247.6 MB / 0.6856 GB Notification: Performance of matching and sorting (n=11): time 0.001951/2.772, allocations: 389.2 kB / 0.9076 GB, free: 247.2 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/2.772, allocations: 111.8 kB / 0.9077 GB, free: 247.1 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/2.774, allocations: 1.114 MB / 0.9088 GB, free: 246 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/2.774, allocations: 32.52 kB / 0.9088 GB, free: 246 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001881/2.774, allocations: 400.6 kB / 0.9092 GB, free: 245.6 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 2.221e-05/2.774, allocations: 40.2 kB / 0.9092 GB, free: 245.6 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.368e-05/2.774, allocations: 81.59 kB / 0.9093 GB, free: 245.5 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 7.177e-05/2.774, allocations: 378.8 kB / 0.9097 GB, free: 245.1 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/2.774, allocations: 128.8 kB / 0.9098 GB, free: 245 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/2.774, allocations: 263 kB / 0.91 GB, free: 244.7 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/2.775, allocations: 327.1 kB / 0.9103 GB, free: 244.3 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/2.775, allocations: 0 / 0.9103 GB, free: 244.3 MB / 0.6856 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001164/2.776, allocations: 0.5604 MB / 0.9109 GB, free: 243.8 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/2.776, allocations: 8.625 kB / 0.9109 GB, free: 243.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/2.776, allocations: 4 kB / 0.9109 GB, free: 243.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001361/2.777, allocations: 207.5 kB / 0.9111 GB, free: 243.6 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/2.777, allocations: 53.05 kB / 0.9112 GB, free: 243.5 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004218/2.778, allocations: 0.625 MB / 0.9118 GB, free: 242.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002586/2.778, allocations: 45.48 kB / 0.9118 GB, free: 242.8 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/2.778, allocations: 20 kB / 0.9118 GB, free: 242.8 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,SinkP1.fluid,Bend.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Bend.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002277/2.778, allocations: 272.6 kB / 0.9121 GB, free: 242.6 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.27e-05/2.778, allocations: 71.59 kB / 0.9122 GB, free: 242.5 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005935/2.779, allocations: 268.5 kB / 0.9124 GB, free: 242.2 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/2.779, allocations: 3.938 kB / 0.9124 GB, free: 242.2 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/2.779, allocations: 4 kB / 0.9124 GB, free: 242.2 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/2.779, allocations: 0 / 0.9124 GB, free: 242.2 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/2.78, allocations: 0.8291 MB / 0.9132 GB, free: 241.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/2.78, allocations: 0 / 0.9132 GB, free: 241.3 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.964e-05/2.78, allocations: 4 kB / 0.9132 GB, free: 241.3 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009571/2.781, allocations: 167.3 kB / 0.9134 GB, free: 241.2 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/2.781, allocations: 0 / 0.9134 GB, free: 241.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003889/2.782, allocations: 0.6245 MB / 0.914 GB, free: 240.5 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/2.782, allocations: 0 / 0.914 GB, free: 240.5 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/2.783, allocations: 419.9 kB / 0.9144 GB, free: 240.1 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001939/2.783, allocations: 129 kB / 0.9145 GB, free: 240 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.646e-05/2.783, allocations: 7 kB / 0.9145 GB, free: 240 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001772/2.783, allocations: 7.984 kB / 0.9145 GB, free: 240 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.039e-05/2.783, allocations: 11.98 kB / 0.9146 GB, free: 240 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/2.783, allocations: 4 kB / 0.9146 GB, free: 240 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.00067/2.784, allocations: 0.8114 MB / 0.9154 GB, free: 239.2 MB / 0.6856 GB Notification: Performance of sort global known variables: time 8e-08/2.784, allocations: 0 / 0.9154 GB, free: 239.2 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003937/2.788, allocations: 1.676 MB / 0.917 GB, free: 237.8 MB / 0.6856 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 (3): * Single equations (assignments): 2 * 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.007259/2.795, allocations: 3.269 MB / 0.9202 GB, free: 234.9 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0006015/2.796, allocations: 240.7 kB / 0.9204 GB, free: 234.7 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/2.796, allocations: 4 kB / 0.9204 GB, free: 234.7 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001519/2.796, allocations: 50.17 kB / 0.9205 GB, free: 234.6 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006501/2.797, allocations: 102.4 kB / 0.9206 GB, free: 234.5 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008482/2.805, allocations: 6.403 MB / 0.9268 GB, free: 228 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000344/2.805, allocations: 0.9454 MB / 0.9277 GB, free: 227 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001774/2.806, allocations: 73.28 kB / 0.9278 GB, free: 226.9 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000207/2.806, allocations: 215.4 kB / 0.928 GB, free: 226.7 MB / 0.6856 GB Notification: Performance of SimCode: time 1.213e-06/2.806, allocations: 0 / 0.928 GB, free: 226.7 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08632/2.892, allocations: 61.04 MB / 0.9876 GB, free: 166.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.42/18.31, allocations: 17.78 kB / 0.9876 GB, free: 166.5 MB / 0.6856 GB " [Timeout remaining time 641] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Fluid.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_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.35105370999986] Failed to read output from testmodel.py, exit status != 0: 18.610243476999813 18.619239155 16.316340269 Calling exit ...