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.8425/0.8425, allocations: 153.8 MB / 172.7 MB, free: 4.945 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.0005606/0.0005606, allocations: 15.97 kB / 249.8 MB, free: 4.52 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1736/0.1741, allocations: 33.36 MB / 283.2 MB, free: 1.828 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.795/1.97, allocations: 307.5 MB / 0.5768 GB, free: 15.99 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03494/2.004, allocations: 35.34 MB / 0.6114 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004096/2.005, allocations: 8.594 kB / 0.6114 GB, free: 13.93 MB / 494.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.0006961/2.006, allocations: 292.5 kB / 0.6116 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004926/2.006, allocations: 282 kB / 0.6119 GB, free: 13.75 MB / 494.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.03033/2.036, allocations: 10.07 MB / 0.6218 GB, free: 7.492 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001105/2.038, allocations: 0.5008 MB / 0.6222 GB, free: 6.992 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002746/2.038, allocations: 160.7 kB / 0.6224 GB, free: 6.832 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000425/2.038, allocations: 252.2 kB / 0.6226 GB, free: 6.586 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003833/2.039, allocations: 315.1 kB / 0.6229 GB, free: 6.277 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.525e-05/2.039, allocations: 24.72 kB / 0.623 GB, free: 6.254 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03722/2.076, allocations: 18.08 MB / 0.6406 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002701/2.076, allocations: 179.4 kB / 0.6408 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003333/2.076, allocations: 274.2 kB / 0.641 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02331/2.1, allocations: 8.899 MB / 0.6497 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/2.1, allocations: 0 / 0.6497 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.033e-06/2.1, allocations: 0 / 0.6497 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.102e-05/2.1, allocations: 0 / 0.6497 GB, free: 10.78 MB / 0.5137 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.005031/2.105, allocations: 1.826 MB / 0.6515 GB, free: 8.914 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/2.105, allocations: 8.031 kB / 0.6515 GB, free: 8.906 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.598e-05/2.105, allocations: 70.53 kB / 0.6516 GB, free: 8.828 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/2.105, allocations: 79.47 kB / 0.6517 GB, free: 8.75 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006135/2.106, allocations: 436.9 kB / 0.6521 GB, free: 8.297 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/2.106, allocations: 20.5 kB / 0.6521 GB, free: 8.277 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.682e-05/2.106, allocations: 24 kB / 0.6521 GB, free: 8.254 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000615/2.106, allocations: 438.7 kB / 0.6526 GB, free: 7.793 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/2.106, allocations: 5.359 kB / 0.6526 GB, free: 7.789 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.37e-05/2.106, allocations: 8 kB / 0.6526 GB, free: 7.781 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.911e-05/2.106, allocations: 15.98 kB / 0.6526 GB, free: 7.766 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000457/2.107, allocations: 349.6 kB / 0.6529 GB, free: 7.426 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.03464/2.142, allocations: 11.82 MB / 0.6645 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006122/2.142, allocations: 148.8 kB / 0.6646 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/2.142, allocations: 80.83 kB / 0.6647 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1405/2.283, allocations: 43.45 MB / 0.7071 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.092e-05/2.283, allocations: 38.5 kB / 0.7071 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 2.044e-06/2.283, allocations: 0 / 0.7071 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.00183/2.285, allocations: 0.5222 MB / 0.7077 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.818e-05/2.285, allocations: 106.8 kB / 0.7078 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001289/2.286, allocations: 1.004 MB / 0.7087 GB, free: 14 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/2.286, allocations: 29.7 kB / 0.7088 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002679/2.286, allocations: 312.4 kB / 0.7091 GB, free: 13.65 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/2.286, allocations: 130.8 kB / 0.7092 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.56e-05/2.286, allocations: 61.69 kB / 0.7092 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001999/2.287, allocations: 378.8 kB / 0.7096 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/2.287, allocations: 157.4 kB / 0.7098 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002762/2.287, allocations: 247.1 kB / 0.71 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004291/2.288, allocations: 340 kB / 0.7103 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/2.288, allocations: 0 / 0.7103 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007764/2.288, allocations: 0.5385 MB / 0.7108 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/2.288, allocations: 8.781 kB / 0.7109 GB, free: 11.74 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/2.288, allocations: 224 / 0.7109 GB, free: 11.74 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001551/2.29, allocations: 225.8 kB / 0.7111 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.783e-05/2.29, allocations: 24.86 kB / 0.7111 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006953/2.291, allocations: 0.6695 MB / 0.7117 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/2.291, allocations: 48.64 kB / 0.7118 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/2.291, allocations: 8 kB / 0.7118 GB, free: 10.74 MB / 0.5762 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.000283/2.291, allocations: 257.7 kB / 0.712 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.024e-05/2.291, allocations: 63.58 kB / 0.7121 GB, free: 10.42 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008622/2.292, allocations: 0.6867 MB / 0.7128 GB, free: 9.656 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003728/2.293, allocations: 247.1 kB / 0.713 GB, free: 9.406 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/2.293, allocations: 2.594 kB / 0.713 GB, free: 9.406 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/2.293, allocations: 11.86 kB / 0.713 GB, free: 9.395 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001318/2.294, allocations: 0.9433 MB / 0.7139 GB, free: 8.398 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/2.294, allocations: 0 / 0.7139 GB, free: 8.398 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.637e-05/2.294, allocations: 23.92 kB / 0.714 GB, free: 8.375 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008728/2.295, allocations: 179.5 kB / 0.7141 GB, free: 8.199 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/2.295, allocations: 8 kB / 0.7141 GB, free: 8.191 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006753/2.296, allocations: 0.6981 MB / 0.7148 GB, free: 7.469 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/2.296, allocations: 8 kB / 0.7148 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005028/2.296, allocations: 406.1 kB / 0.7152 GB, free: 7.043 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001932/2.296, allocations: 99.47 kB / 0.7153 GB, free: 6.945 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.622e-05/2.296, allocations: 15.89 kB / 0.7153 GB, free: 6.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/2.296, allocations: 8 kB / 0.7153 GB, free: 6.922 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.155e-05/2.297, allocations: 24.94 kB / 0.7154 GB, free: 6.898 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.005e-05/2.297, allocations: 4 kB / 0.7154 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009746/2.298, allocations: 0.8114 MB / 0.7162 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/2.298, allocations: 0 / 0.7162 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003461/2.301, allocations: 1.27 MB / 0.7174 GB, free: 4.816 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.006261/2.307, allocations: 2.655 MB / 0.72 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008188/2.308, allocations: 335 kB / 0.7203 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/2.308, allocations: 0 / 0.7203 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003006/2.308, allocations: 108.6 kB / 0.7204 GB, free: 1.73 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009159/2.309, allocations: 152.2 kB / 0.7206 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009693/2.319, allocations: 6.163 MB / 0.7266 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006342/2.32, allocations: 0.9323 MB / 0.7275 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001987/2.32, allocations: 60.59 kB / 0.7275 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000287/2.32, allocations: 227.4 kB / 0.7278 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of SimCode: time 1.002e-06/2.32, allocations: 0 / 0.7278 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1021/2.422, allocations: 54.83 MB / 0.7813 GB, free: 3.879 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.86/17.28, allocations: 5.562 kB / 0.7813 GB, free: 3.879 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.375593095000113] Failed to read output from testmodel.py, exit status != 0: 17.79912689799994 17.810014305 15.707664317 Calling exit ...