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.8392/0.8392, allocations: 153.8 MB / 170.2 MB, free: 13.77 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.0004957/0.0004957, allocations: 15.22 kB / 246.3 MB, free: 14.96 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06415/0.06465, allocations: 33.34 MB / 279.6 MB, free: 15.19 MB / 238.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.745/1.81, allocations: 307.5 MB / 0.5733 GB, free: 9.879 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.5241/2.334, allocations: 194 MB / 0.7627 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003591/2.334, allocations: 12.78 kB / 0.7627 GB, free: 13.29 MB / 0.5919 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.0003426/2.334, allocations: 205.8 kB / 0.7629 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004069/2.335, allocations: 281.2 kB / 0.7632 GB, free: 13.19 MB / 0.5919 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.03318/2.368, allocations: 12.53 MB / 0.7754 GB, free: 8.945 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0008105/2.369, allocations: 0.5418 MB / 0.776 GB, free: 8.781 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002914/2.369, allocations: 240.8 kB / 0.7762 GB, free: 8.691 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003266/2.369, allocations: 276.5 kB / 0.7765 GB, free: 8.637 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003466/2.37, allocations: 380.1 kB / 0.7768 GB, free: 8.555 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.056e-05/2.37, allocations: 40.12 kB / 0.7769 GB, free: 8.555 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03924/2.409, allocations: 21.17 MB / 0.7976 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000349/2.409, allocations: 212.2 kB / 0.7978 GB, free: 13.31 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0004029/2.41, allocations: 343.2 kB / 0.7981 GB, free: 13.01 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.03296/2.443, allocations: 10.81 MB / 0.8086 GB, free: 2.805 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/2.443, allocations: 4 kB / 0.8086 GB, free: 2.801 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.854e-06/2.443, allocations: 0 / 0.8086 GB, free: 2.801 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.165e-05/2.443, allocations: 0 / 0.8086 GB, free: 2.801 MB / 0.6075 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.006559/2.449, allocations: 2.381 MB / 0.811 GB, free: 368 kB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/2.449, allocations: 8.031 kB / 0.811 GB, free: 360 kB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.211e-05/2.449, allocations: 78.53 kB / 0.8111 GB, free: 272 kB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002178/2.45, allocations: 91.38 kB / 0.8111 GB, free: 180 kB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007733/2.45, allocations: 0.569 MB / 0.8117 GB, free: 15.58 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.543e-05/2.45, allocations: 33 kB / 0.8117 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.254e-05/2.45, allocations: 40 kB / 0.8118 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007257/2.451, allocations: 487.4 kB / 0.8122 GB, free: 15 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/2.451, allocations: 4 kB / 0.8122 GB, free: 15 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.082e-05/2.451, allocations: 16 kB / 0.8122 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/2.451, allocations: 15.94 kB / 0.8123 GB, free: 14.96 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006221/2.452, allocations: 422.3 kB / 0.8127 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00969/2.462, allocations: 6.714 MB / 0.8192 GB, free: 7.074 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005434/2.462, allocations: 110.5 kB / 0.8193 GB, free: 6.957 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.344e-05/2.462, allocations: 44.89 kB / 0.8194 GB, free: 6.91 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3388/2.801, allocations: 165.9 MB / 0.9814 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.764e-05/2.801, allocations: 34.5 kB / 0.9814 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 2.685e-06/2.801, allocations: 2.859 kB / 0.9814 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.002164/2.803, allocations: 477.1 kB / 0.9819 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.94e-05/2.803, allocations: 106.8 kB / 0.982 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001384/2.805, allocations: 1.114 MB / 0.9831 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/2.805, allocations: 33.7 kB / 0.9831 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003038/2.805, allocations: 398 kB / 0.9835 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.677e-05/2.805, allocations: 42.58 kB / 0.9835 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/2.805, allocations: 85.59 kB / 0.9836 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001685/2.805, allocations: 374.8 kB / 0.984 GB, free: 11.04 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/2.806, allocations: 127.9 kB / 0.9841 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002812/2.806, allocations: 261 kB / 0.9844 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003896/2.806, allocations: 327.1 kB / 0.9847 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/2.806, allocations: 0 / 0.9847 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001359/2.808, allocations: 0.5598 MB / 0.9852 GB, free: 9.664 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/2.808, allocations: 13.16 kB / 0.9852 GB, free: 9.652 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/2.808, allocations: 4 kB / 0.9852 GB, free: 9.648 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001472/2.809, allocations: 188.9 kB / 0.9854 GB, free: 9.465 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001524/2.809, allocations: 59.84 kB / 0.9855 GB, free: 9.406 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006004/2.81, allocations: 0.6264 MB / 0.9861 GB, free: 8.754 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002641/2.81, allocations: 47.66 kB / 0.9861 GB, free: 8.707 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.668e-05/2.81, allocations: 21.5 kB / 0.9861 GB, free: 8.688 MB / 0.8106 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.0002846/2.81, allocations: 268.4 kB / 0.9864 GB, free: 8.418 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.699e-05/2.81, allocations: 75.48 kB / 0.9865 GB, free: 8.344 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007023/2.811, allocations: 273.8 kB / 0.9867 GB, free: 8.062 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/2.811, allocations: 4 kB / 0.9867 GB, free: 8.059 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/2.811, allocations: 0 / 0.9867 GB, free: 8.059 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/2.811, allocations: 0 / 0.9867 GB, free: 8.059 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001766/2.813, allocations: 0.8546 MB / 0.9876 GB, free: 7.145 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/2.813, allocations: 0 / 0.9876 GB, free: 7.145 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.349e-05/2.813, allocations: 9.422 kB / 0.9876 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/2.814, allocations: 158.8 kB / 0.9877 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/2.814, allocations: 3.984 kB / 0.9877 GB, free: 6.977 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005605/2.815, allocations: 0.6322 MB / 0.9884 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/2.815, allocations: 0 / 0.9884 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/2.816, allocations: 416.5 kB / 0.9888 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002118/2.816, allocations: 192.5 kB / 0.9889 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.148e-05/2.816, allocations: 0 / 0.9889 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001811/2.816, allocations: 12.17 kB / 0.9889 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.046e-05/2.816, allocations: 11.98 kB / 0.989 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/2.816, allocations: 15.81 kB / 0.989 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0009261/2.817, allocations: 0.8153 MB / 0.9898 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of sort global known variables: time 8e-08/2.817, allocations: 0 / 0.9898 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004065/2.821, allocations: 1.675 MB / 0.9914 GB, free: 3.156 MB / 0.8106 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.007324/2.829, allocations: 3.28 MB / 0.9946 GB, free: 120 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006113/2.829, allocations: 235.6 kB / 0.9948 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/2.829, allocations: 1.062 kB / 0.9948 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001711/2.829, allocations: 48.03 kB / 0.9949 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005837/2.83, allocations: 96.47 kB / 0.995 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/2.84, allocations: 6.413 MB / 1.001 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005712/2.841, allocations: 0.9494 MB / 1.002 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001847/2.841, allocations: 65.91 kB / 1.002 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002667/2.841, allocations: 223.4 kB / 1.002 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of SimCode: time 1.022e-06/2.841, allocations: 0 / 1.002 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2702/3.111, allocations: 60.82 MB / 1.062 GB, free: 413 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.03/18.15, allocations: 14.84 kB / 1.062 GB, free: 413 MB / 0.8262 GB " [Timeout remaining time 642] (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.119203431007918] Failed to read output from testmodel.py, exit status != 0: 18.407957547009573 18.417044243 15.972272105 Calling exit ...