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.5842/0.5842, allocations: 120.4 MB / 139.5 MB, free: 12.98 MB / 138.7 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 3.025e-06/3.025e-06, allocations: 0 / 216.6 MB, free: 8.68 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.517e-05/2.819e-05, allocations: 3.406 kB / 216.6 MB, free: 8.676 MB / 202.7 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.03/1.03, allocations: 254.3 MB / 471 MB, free: 8.797 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.26/1.29, allocations: 31.09 MB / 0.4903 GB, free: 0.9062 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003457/1.29, allocations: 2.812 kB / 0.4903 GB, free: 0.9062 MB / 442.7 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.0006954/1.291, allocations: 270.6 kB / 0.4905 GB, free: 0.9062 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004265/1.291, allocations: 286.5 kB / 0.4908 GB, free: 0.8867 MB / 442.7 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.02324/1.315, allocations: 10.03 MB / 0.5006 GB, free: 14.72 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.000802/1.315, allocations: 0.5061 MB / 0.5011 GB, free: 14.45 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002675/1.316, allocations: 167.6 kB / 0.5013 GB, free: 14.36 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004308/1.316, allocations: 327.2 kB / 0.5016 GB, free: 14.18 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002861/1.316, allocations: 280.2 kB / 0.5018 GB, free: 14.08 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 4.165e-05/1.317, allocations: 25.56 kB / 0.5019 GB, free: 14.08 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0253/1.342, allocations: 16.94 MB / 0.5184 GB, free: 1.594 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002562/1.342, allocations: 177.8 kB / 0.5186 GB, free: 1.426 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000253/1.342, allocations: 154.7 kB / 0.5187 GB, free: 1.281 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02112/1.363, allocations: 11.26 MB / 0.5297 GB, free: 6.531 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/1.363, allocations: 0 / 0.5297 GB, free: 6.531 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.014e-06/1.363, allocations: 3.938 kB / 0.5297 GB, free: 6.527 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.572e-06/1.363, allocations: 1.219 kB / 0.5297 GB, free: 6.527 MB / 474.7 MB 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.003953/1.367, allocations: 1.811 MB / 0.5315 GB, free: 4.68 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/1.367, allocations: 8.875 kB / 0.5315 GB, free: 4.672 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.562e-05/1.368, allocations: 71.09 kB / 0.5316 GB, free: 4.594 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/1.368, allocations: 72.94 kB / 0.5316 GB, free: 4.523 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004121/1.368, allocations: 433.8 kB / 0.532 GB, free: 4.086 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/1.368, allocations: 16.5 kB / 0.5321 GB, free: 4.07 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.471e-05/1.368, allocations: 27.94 kB / 0.5321 GB, free: 4.043 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004409/1.369, allocations: 491.9 kB / 0.5326 GB, free: 3.516 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/1.369, allocations: 1.125 kB / 0.5326 GB, free: 3.516 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.072e-05/1.369, allocations: 12 kB / 0.5326 GB, free: 3.504 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/1.369, allocations: 15.98 kB / 0.5326 GB, free: 3.488 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002902/1.369, allocations: 347 kB / 0.5329 GB, free: 3.152 MB / 474.7 MB 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.01899/1.388, allocations: 11.43 MB / 0.5441 GB, free: 7.812 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005432/1.388, allocations: 154.6 kB / 0.5442 GB, free: 7.656 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.086e-05/1.389, allocations: 81.86 kB / 0.5443 GB, free: 7.574 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07326/1.462, allocations: 43.61 MB / 0.5869 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/1.462, allocations: 34.56 kB / 0.5869 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=38): time 2.485e-06/1.462, allocations: 4 kB / 0.5869 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of matching and sorting (n=38): time 0.001229/1.463, allocations: 0.5182 MB / 0.5874 GB, free: 11.36 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/1.463, allocations: 102.8 kB / 0.5875 GB, free: 11.24 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00091/1.464, allocations: 1.008 MB / 0.5885 GB, free: 10.22 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/1.464, allocations: 34.73 kB / 0.5886 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/1.464, allocations: 306.1 kB / 0.5888 GB, free: 9.883 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.29e-05/1.464, allocations: 133.5 kB / 0.589 GB, free: 9.754 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.662e-05/1.464, allocations: 69.64 kB / 0.589 GB, free: 9.68 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001144/1.464, allocations: 386.7 kB / 0.5894 GB, free: 9.293 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/1.465, allocations: 164.4 kB / 0.5896 GB, free: 9.133 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/1.465, allocations: 290.9 kB / 0.5898 GB, free: 8.809 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002753/1.465, allocations: 343.8 kB / 0.5902 GB, free: 8.445 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/1.465, allocations: 0 / 0.5902 GB, free: 8.445 MB / 0.5261 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005039/1.466, allocations: 0.5347 MB / 0.5907 GB, free: 7.902 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/1.466, allocations: 8.75 kB / 0.5907 GB, free: 7.895 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/1.466, allocations: 0 / 0.5907 GB, free: 7.895 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008398/1.466, allocations: 225.2 kB / 0.5909 GB, free: 7.672 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.568e-05/1.466, allocations: 23.98 kB / 0.5909 GB, free: 7.648 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004613/1.467, allocations: 0.6767 MB / 0.5916 GB, free: 6.949 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/1.467, allocations: 39.67 kB / 0.5916 GB, free: 6.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.551e-05/1.467, allocations: 12.62 kB / 0.5916 GB, free: 6.898 MB / 0.5261 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.0002054/1.467, allocations: 245.8 kB / 0.5919 GB, free: 6.648 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.672e-05/1.467, allocations: 69.59 kB / 0.5919 GB, free: 6.582 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005732/1.468, allocations: 0.6944 MB / 0.5926 GB, free: 5.809 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002193/1.468, allocations: 259.2 kB / 0.5929 GB, free: 5.547 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.381e-06/1.468, allocations: 0 / 0.5929 GB, free: 5.547 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/1.468, allocations: 0.875 kB / 0.5929 GB, free: 5.547 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008701/1.469, allocations: 0.8833 MB / 0.5937 GB, free: 4.613 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.227e-06/1.469, allocations: 0 / 0.5937 GB, free: 4.613 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.501e-05/1.469, allocations: 17.22 kB / 0.5938 GB, free: 4.598 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004541/1.47, allocations: 177.4 kB / 0.5939 GB, free: 4.422 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/1.47, allocations: 4 kB / 0.5939 GB, free: 4.418 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003947/1.47, allocations: 0.708 MB / 0.5946 GB, free: 3.684 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/1.47, allocations: 4.641 kB / 0.5946 GB, free: 3.68 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003175/1.47, allocations: 416.7 kB / 0.595 GB, free: 3.25 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/1.47, allocations: 99.42 kB / 0.5951 GB, free: 3.152 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.682e-05/1.47, allocations: 11.89 kB / 0.5951 GB, free: 3.141 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.921e-05/1.47, allocations: 15.98 kB / 0.5951 GB, free: 3.125 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.294e-05/1.471, allocations: 7.984 kB / 0.5951 GB, free: 3.117 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/1.471, allocations: 11.98 kB / 0.5952 GB, free: 3.105 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005954/1.471, allocations: 0.8075 MB / 0.5959 GB, free: 2.305 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.81e-07/1.471, allocations: 0.6562 kB / 0.5959 GB, free: 2.305 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002595/1.474, allocations: 1.274 MB / 0.5972 GB, free: 1.027 MB / 0.5261 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.004659/1.478, allocations: 2.82 MB / 0.5999 GB, free: 14.41 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005398/1.479, allocations: 331.3 kB / 0.6003 GB, free: 14.08 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/1.479, allocations: 64 / 0.6003 GB, free: 14.08 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001519/1.479, allocations: 114.2 kB / 0.6004 GB, free: 13.97 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005712/1.48, allocations: 148.5 kB / 0.6005 GB, free: 13.83 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006191/1.486, allocations: 6.155 MB / 0.6065 GB, free: 7.531 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/1.486, allocations: 338.3 kB / 0.6068 GB, free: 7.18 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001353/1.486, allocations: 57.8 kB / 0.6069 GB, free: 7.125 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/1.486, allocations: 232.4 kB / 0.6071 GB, free: 6.898 MB / 0.5417 GB Notification: Performance of SimCode: time 1.022e-06/1.486, allocations: 0 / 0.6071 GB, free: 6.898 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07367/1.56, allocations: 55.39 MB / 0.6612 GB, free: 15.91 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.12/10.68, allocations: 0 / 0.6612 GB, free: 15.91 MB / 0.6042 GB " [Timeout remaining time 649] (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: 12.359753450378776] Failed to read output from testmodel.py, exit status != 0: 11.197135793976486 11.098183421 9.73294974 Calling exit ...