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.8308/0.8308, allocations: 153.8 MB / 172.7 MB, free: 4.887 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.0005154/0.0005154, allocations: 19.97 kB / 249.8 MB, free: 4.418 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.1748, allocations: 33.35 MB / 283.1 MB, free: 1.738 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.817/1.992, allocations: 307.7 MB / 0.5769 GB, free: 17.32 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1977/2.19, allocations: 167.5 MB / 0.7405 GB, free: 13.55 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004278/2.19, allocations: 11.94 kB / 0.7405 GB, free: 13.54 MB / 0.6075 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.0004008/2.191, allocations: 203.8 kB / 0.7407 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004794/2.191, allocations: 282.7 kB / 0.741 GB, free: 13.07 MB / 0.6075 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.0302/2.221, allocations: 12.44 MB / 0.7531 GB, free: 0.6211 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0007697/2.222, allocations: 0.5457 MB / 0.7536 GB, free: 76 kB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003302/2.222, allocations: 242 kB / 0.7539 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003641/2.223, allocations: 279.1 kB / 0.7541 GB, free: 15.56 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003925/2.223, allocations: 360.9 kB / 0.7545 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 6.381e-05/2.223, allocations: 40 kB / 0.7545 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0349/2.258, allocations: 19.68 MB / 0.7737 GB, free: 11.46 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0002989/2.258, allocations: 219.3 kB / 0.7739 GB, free: 11.25 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0003271/2.259, allocations: 254.4 kB / 0.7742 GB, free: 11 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02381/2.283, allocations: 10.81 MB / 0.7847 GB, free: 164 kB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/2.283, allocations: 0 / 0.7847 GB, free: 164 kB / 0.6387 GB Notification: Performance of FrontEnd: time 1.703e-06/2.283, allocations: 0 / 0.7847 GB, free: 164 kB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.119e-05/2.283, allocations: 0 / 0.7847 GB, free: 164 kB / 0.6387 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.005024/2.288, allocations: 2.287 MB / 0.787 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/2.288, allocations: 9.438 kB / 0.787 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.329e-05/2.288, allocations: 82.53 kB / 0.7871 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001987/2.288, allocations: 91.42 kB / 0.7872 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008018/2.289, allocations: 0.5208 MB / 0.7877 GB, free: 13.09 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.484e-05/2.289, allocations: 29 kB / 0.7877 GB, free: 13.06 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.017e-05/2.289, allocations: 40 kB / 0.7877 GB, free: 13.02 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007434/2.29, allocations: 0.534 MB / 0.7882 GB, free: 12.44 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/2.29, allocations: 0 / 0.7882 GB, free: 12.44 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.422e-05/2.29, allocations: 16 kB / 0.7883 GB, free: 12.42 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/2.29, allocations: 8.625 kB / 0.7883 GB, free: 12.41 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006094/2.29, allocations: 422.3 kB / 0.7887 GB, free: 12 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00808/2.298, allocations: 3.747 MB / 0.7923 GB, free: 8.188 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005154/2.299, allocations: 110.5 kB / 0.7924 GB, free: 8.07 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.551e-05/2.299, allocations: 44 kB / 0.7925 GB, free: 8.027 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4503/2.749, allocations: 88.71 MB / 0.8791 GB, free: 277.2 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/2.749, allocations: 43.16 kB / 0.8792 GB, free: 277.1 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=11): time 1.953e-06/2.749, allocations: 0 / 0.8792 GB, free: 277.1 MB / 0.6856 GB Notification: Performance of matching and sorting (n=11): time 0.001969/2.751, allocations: 401.4 kB / 0.8795 GB, free: 276.8 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/2.751, allocations: 111.6 kB / 0.8796 GB, free: 276.7 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001263/2.753, allocations: 1.126 MB / 0.8807 GB, free: 275.8 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/2.753, allocations: 29.33 kB / 0.8808 GB, free: 275.8 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/2.753, allocations: 393.7 kB / 0.8811 GB, free: 275.6 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 3.357e-05/2.753, allocations: 49.44 kB / 0.8812 GB, free: 275.6 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/2.753, allocations: 78.66 kB / 0.8813 GB, free: 275.5 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 9.65e-05/2.753, allocations: 378.7 kB / 0.8816 GB, free: 275.2 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/2.753, allocations: 127.9 kB / 0.8817 GB, free: 275.1 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/2.753, allocations: 311.9 kB / 0.882 GB, free: 274.7 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002953/2.754, allocations: 321.1 kB / 0.8824 GB, free: 274.5 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/2.754, allocations: 4 kB / 0.8824 GB, free: 274.5 MB / 0.6856 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001236/2.755, allocations: 0.5555 MB / 0.8829 GB, free: 273.9 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/2.755, allocations: 13.91 kB / 0.8829 GB, free: 273.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/2.755, allocations: 4 kB / 0.8829 GB, free: 273.9 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001409/2.756, allocations: 194.2 kB / 0.8831 GB, free: 273.7 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/2.756, allocations: 47.92 kB / 0.8831 GB, free: 273.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004469/2.757, allocations: 0.6315 MB / 0.8838 GB, free: 273 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003117/2.757, allocations: 48.52 kB / 0.8838 GB, free: 273 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.986e-05/2.757, allocations: 12 kB / 0.8838 GB, free: 273 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.000252/2.758, allocations: 278.3 kB / 0.8841 GB, free: 272.7 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/2.758, allocations: 71.53 kB / 0.8842 GB, free: 272.6 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006215/2.758, allocations: 265.1 kB / 0.8844 GB, free: 272.4 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/2.758, allocations: 4 kB / 0.8844 GB, free: 272.3 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/2.758, allocations: 0 / 0.8844 GB, free: 272.3 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/2.758, allocations: 0 / 0.8844 GB, free: 272.3 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001579/2.76, allocations: 0.7946 MB / 0.8852 GB, free: 271.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/2.76, allocations: 4 kB / 0.8852 GB, free: 271.5 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.062e-05/2.76, allocations: 4 kB / 0.8852 GB, free: 271.5 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009802/2.761, allocations: 152.6 kB / 0.8853 GB, free: 271.4 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/2.761, allocations: 8 kB / 0.8853 GB, free: 271.3 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003698/2.761, allocations: 0.6314 MB / 0.886 GB, free: 270.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/2.761, allocations: 64 / 0.886 GB, free: 270.7 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/2.762, allocations: 421.2 kB / 0.8864 GB, free: 270.3 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002143/2.763, allocations: 114.5 kB / 0.8865 GB, free: 270.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.906e-05/2.763, allocations: 4 kB / 0.8865 GB, free: 270.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/2.763, allocations: 15.98 kB / 0.8865 GB, free: 270.1 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/2.763, allocations: 7.984 kB / 0.8865 GB, free: 270.1 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/2.763, allocations: 4 kB / 0.8865 GB, free: 270.1 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0006624/2.763, allocations: 0.8153 MB / 0.8873 GB, free: 269.3 MB / 0.6856 GB Notification: Performance of sort global known variables: time 7.1e-08/2.763, allocations: 0.7656 kB / 0.8873 GB, free: 269.3 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003089/2.767, allocations: 1.673 MB / 0.8889 GB, free: 267.9 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.006299/2.773, allocations: 3.275 MB / 0.8921 GB, free: 265 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0005586/2.773, allocations: 231.8 kB / 0.8924 GB, free: 264.8 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/2.773, allocations: 0 / 0.8924 GB, free: 264.8 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001446/2.774, allocations: 55.89 kB / 0.8924 GB, free: 264.7 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006035/2.774, allocations: 98.94 kB / 0.8925 GB, free: 264.7 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008221/2.782, allocations: 6.418 MB / 0.8988 GB, free: 258 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002593/2.783, allocations: 351.4 kB / 0.8991 GB, free: 257.7 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001788/2.783, allocations: 70.69 kB / 0.8992 GB, free: 257.6 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002016/2.783, allocations: 215.4 kB / 0.8994 GB, free: 257.4 MB / 0.6856 GB Notification: Performance of SimCode: time 9.82e-07/2.783, allocations: 0 / 0.8994 GB, free: 257.4 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08915/2.872, allocations: 61.4 MB / 0.9593 GB, free: 196.9 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.64/18.51, allocations: 12.25 kB / 0.9594 GB, free: 196.9 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.438395977020264] Failed to read output from testmodel.py, exit status != 0: 18.83091194042936 18.840393854 16.555459596 Calling exit ...