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.8154/0.8154, allocations: 153.8 MB / 172.7 MB, free: 4.879 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.0005075/0.0005075, allocations: 15.97 kB / 249.7 MB, free: 4.434 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.172, allocations: 33.35 MB / 283.1 MB, free: 1.754 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.86/2.032, allocations: 307.6 MB / 0.5768 GB, free: 17.25 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03146/2.063, allocations: 31.1 MB / 0.6072 GB, free: 2.383 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003478/2.064, allocations: 4.125 kB / 0.6072 GB, free: 2.383 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.0006189/2.064, allocations: 265.7 kB / 0.6075 GB, free: 2.324 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003883/2.065, allocations: 285.5 kB / 0.6077 GB, free: 2.223 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.02482/2.09, allocations: 9.935 MB / 0.6174 GB, free: 11.84 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009304/2.091, allocations: 0.4988 MB / 0.6179 GB, free: 11.34 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002605/2.091, allocations: 165.8 kB / 0.6181 GB, free: 11.18 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003983/2.091, allocations: 251.1 kB / 0.6183 GB, free: 10.93 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003714/2.092, allocations: 307 kB / 0.6186 GB, free: 10.63 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.507e-05/2.092, allocations: 24 kB / 0.6186 GB, free: 10.61 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0319/2.123, allocations: 16.91 MB / 0.6351 GB, free: 9.672 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002531/2.124, allocations: 171.4 kB / 0.6353 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002693/2.124, allocations: 210.7 kB / 0.6355 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02075/2.145, allocations: 8.906 MB / 0.6442 GB, free: 376 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/2.145, allocations: 0 / 0.6442 GB, free: 376 kB / 0.4981 GB Notification: Performance of FrontEnd: time 1.653e-06/2.145, allocations: 0 / 0.6442 GB, free: 376 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.562e-05/2.145, allocations: 0 / 0.6442 GB, free: 376 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.00439/2.149, allocations: 1.815 MB / 0.646 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/2.149, allocations: 8.031 kB / 0.646 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.412e-05/2.149, allocations: 70.53 kB / 0.6461 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001701/2.149, allocations: 79.45 kB / 0.6461 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006042/2.15, allocations: 440.9 kB / 0.6466 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.736e-05/2.15, allocations: 20.5 kB / 0.6466 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.428e-05/2.15, allocations: 24 kB / 0.6466 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006299/2.151, allocations: 488.3 kB / 0.6471 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/2.151, allocations: 0.75 kB / 0.6471 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.791e-05/2.151, allocations: 12.69 kB / 0.6471 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/2.151, allocations: 11.98 kB / 0.6471 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004468/2.151, allocations: 345.7 kB / 0.6474 GB, free: 12.97 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.03628/2.188, allocations: 11.43 MB / 0.6586 GB, free: 1.453 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006005/2.188, allocations: 150.6 kB / 0.6587 GB, free: 1.297 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/2.188, allocations: 80.83 kB / 0.6588 GB, free: 1.215 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1491/2.337, allocations: 43.61 MB / 0.7014 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.916e-05/2.337, allocations: 40.28 kB / 0.7014 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=38): time 2.544e-06/2.337, allocations: 0 / 0.7014 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of matching and sorting (n=38): time 0.001961/2.339, allocations: 0.5254 MB / 0.7019 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.254e-05/2.339, allocations: 106.8 kB / 0.702 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/2.341, allocations: 1.012 MB / 0.703 GB, free: 3.836 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/2.341, allocations: 25.7 kB / 0.7031 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002799/2.341, allocations: 308.5 kB / 0.7034 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/2.342, allocations: 126.8 kB / 0.7035 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/2.342, allocations: 69.64 kB / 0.7035 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002325/2.342, allocations: 378.8 kB / 0.7039 GB, free: 2.922 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002185/2.342, allocations: 160.4 kB / 0.7041 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003391/2.342, allocations: 295.2 kB / 0.7043 GB, free: 2.438 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004433/2.343, allocations: 339.9 kB / 0.7047 GB, free: 2.078 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/2.343, allocations: 0 / 0.7047 GB, free: 2.078 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008475/2.344, allocations: 0.5424 MB / 0.7052 GB, free: 1.527 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/2.344, allocations: 8 kB / 0.7052 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/2.344, allocations: 0.625 kB / 0.7052 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001546/2.345, allocations: 214.2 kB / 0.7054 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.672e-05/2.345, allocations: 27.92 kB / 0.7054 GB, free: 1.281 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007172/2.346, allocations: 0.6713 MB / 0.7061 GB, free: 0.5859 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002562/2.346, allocations: 47.72 kB / 0.7061 GB, free: 0.5391 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.434e-05/2.346, allocations: 12.69 kB / 0.7061 GB, free: 0.5273 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.0002842/2.347, allocations: 257.6 kB / 0.7064 GB, free: 272 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/2.347, allocations: 67.53 kB / 0.7064 GB, free: 204 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009026/2.348, allocations: 0.6913 MB / 0.7071 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003656/2.348, allocations: 239.2 kB / 0.7074 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.381e-06/2.348, allocations: 0.9375 kB / 0.7074 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/2.348, allocations: 7.922 kB / 0.7074 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001371/2.349, allocations: 0.8919 MB / 0.7082 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/2.349, allocations: 3.938 kB / 0.7082 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.514e-05/2.349, allocations: 17.17 kB / 0.7083 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008541/2.35, allocations: 177.5 kB / 0.7084 GB, free: 14.04 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/2.35, allocations: 4 kB / 0.7084 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006687/2.351, allocations: 0.7123 MB / 0.7091 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/2.351, allocations: 5.5 kB / 0.7091 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005182/2.352, allocations: 403.8 kB / 0.7095 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002148/2.352, allocations: 95.47 kB / 0.7096 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.759e-05/2.352, allocations: 15.89 kB / 0.7096 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/2.352, allocations: 21 kB / 0.7096 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.117e-05/2.352, allocations: 15.91 kB / 0.7097 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/2.352, allocations: 8 kB / 0.7097 GB, free: 12.72 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009895/2.353, allocations: 0.8114 MB / 0.7105 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/2.353, allocations: 0 / 0.7105 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003257/2.356, allocations: 1.27 MB / 0.7117 GB, free: 10.64 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.006531/2.363, allocations: 2.642 MB / 0.7143 GB, free: 8.004 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007598/2.364, allocations: 334.4 kB / 0.7146 GB, free: 7.676 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/2.364, allocations: 0 / 0.7146 GB, free: 7.676 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002936/2.364, allocations: 106.6 kB / 0.7147 GB, free: 7.57 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008818/2.365, allocations: 151.8 kB / 0.7148 GB, free: 7.438 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009396/2.374, allocations: 6.148 MB / 0.7208 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/2.375, allocations: 341.3 kB / 0.7212 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001843/2.375, allocations: 58.69 kB / 0.7212 GB, free: 0.7266 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000287/2.375, allocations: 231.4 kB / 0.7214 GB, free: 0.5 MB / 0.5762 GB Notification: Performance of SimCode: time 6.81e-07/2.375, allocations: 0 / 0.7214 GB, free: 0.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1077/2.483, allocations: 55.1 MB / 0.7753 GB, free: 10.15 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.72/17.2, allocations: 4.062 kB / 0.7753 GB, free: 10.14 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 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.156090959906578] Failed to read output from testmodel.py, exit status != 0: 17.692312566097826 17.702801005 15.55539777 Calling exit ...