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.8621/0.8621, allocations: 153.9 MB / 172.7 MB, free: 4.949 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.0005138/0.0005138, allocations: 15.97 kB / 249.8 MB, free: 4.48 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.1691, allocations: 33.36 MB / 283.2 MB, free: 1.812 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.825/1.994, allocations: 307.6 MB / 0.577 GB, free: 15.86 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2335/2.227, allocations: 194.1 MB / 0.7665 GB, free: 2.852 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000684/2.228, allocations: 11.94 kB / 0.7665 GB, free: 2.84 MB / 0.6231 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.0005828/2.229, allocations: 211.2 kB / 0.7667 GB, free: 2.633 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0008323/2.229, allocations: 278.6 kB / 0.767 GB, free: 2.359 MB / 0.6231 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.04059/2.27, allocations: 12.65 MB / 0.7793 GB, free: 5.707 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.001011/2.271, allocations: 0.5419 MB / 0.7799 GB, free: 5.16 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000442/2.271, allocations: 237.1 kB / 0.7801 GB, free: 4.926 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005227/2.272, allocations: 271.2 kB / 0.7803 GB, free: 4.66 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005487/2.272, allocations: 394.8 kB / 0.7807 GB, free: 4.273 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 8.865e-05/2.273, allocations: 40 kB / 0.7808 GB, free: 4.234 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04535/2.318, allocations: 21.21 MB / 0.8015 GB, free: 14.99 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0003911/2.318, allocations: 219.3 kB / 0.8017 GB, free: 14.78 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0005059/2.319, allocations: 337.9 kB / 0.802 GB, free: 14.45 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.02703/2.346, allocations: 10.81 MB / 0.8126 GB, free: 3.609 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 9.007e-06/2.346, allocations: 11.94 kB / 0.8126 GB, free: 3.598 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.593e-06/2.346, allocations: 0 / 0.8126 GB, free: 3.598 MB / 0.67 GB Notification: Performance of Transformations before backend: time 5.298e-05/2.346, allocations: 0 / 0.8126 GB, free: 3.598 MB / 0.67 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.006653/2.353, allocations: 2.295 MB / 0.8148 GB, free: 1.258 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/2.353, allocations: 11.97 kB / 0.8148 GB, free: 1.246 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001256/2.353, allocations: 78.52 kB / 0.8149 GB, free: 1.16 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002818/2.353, allocations: 92.75 kB / 0.815 GB, free: 1.07 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009652/2.354, allocations: 0.5131 MB / 0.8155 GB, free: 0.5273 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.999e-05/2.354, allocations: 29 kB / 0.8155 GB, free: 0.5 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.395e-05/2.354, allocations: 40 kB / 0.8156 GB, free: 472 kB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008443/2.355, allocations: 491.5 kB / 0.816 GB, free: 15.94 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/2.355, allocations: 0 / 0.816 GB, free: 15.94 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.204e-05/2.355, allocations: 17.88 kB / 0.816 GB, free: 15.93 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/2.355, allocations: 8 kB / 0.816 GB, free: 15.92 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007208/2.356, allocations: 418.3 kB / 0.8164 GB, free: 15.51 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00955/2.365, allocations: 4.379 MB / 0.8207 GB, free: 10.93 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006097/2.366, allocations: 114.6 kB / 0.8208 GB, free: 10.81 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.041e-05/2.366, allocations: 40.84 kB / 0.8209 GB, free: 10.77 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4533/2.819, allocations: 88.37 MB / 0.9072 GB, free: 247.5 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/2.819, allocations: 40.69 kB / 0.9072 GB, free: 247.5 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=11): time 1.653e-06/2.819, allocations: 0 / 0.9072 GB, free: 247.5 MB / 0.6856 GB Notification: Performance of matching and sorting (n=11): time 0.001954/2.821, allocations: 394.1 kB / 0.9076 GB, free: 247.1 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/2.821, allocations: 106.8 kB / 0.9077 GB, free: 247 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/2.822, allocations: 1.118 MB / 0.9088 GB, free: 245.9 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/2.822, allocations: 37.64 kB / 0.9088 GB, free: 245.8 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.000189/2.822, allocations: 392.9 kB / 0.9092 GB, free: 245.5 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 2.342e-05/2.823, allocations: 40.62 kB / 0.9092 GB, free: 245.5 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.695e-05/2.823, allocations: 81.59 kB / 0.9093 GB, free: 245.4 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 7.696e-05/2.823, allocations: 382.5 kB / 0.9097 GB, free: 245 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/2.823, allocations: 131.9 kB / 0.9098 GB, free: 244.9 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/2.823, allocations: 263.1 kB / 0.91 GB, free: 244.6 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002644/2.823, allocations: 321.5 kB / 0.9104 GB, free: 244.2 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/2.823, allocations: 0 / 0.9104 GB, free: 244.2 MB / 0.6856 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001174/2.824, allocations: 0.5675 MB / 0.9109 GB, free: 243.7 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/2.824, allocations: 4.625 kB / 0.9109 GB, free: 243.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/2.824, allocations: 4 kB / 0.9109 GB, free: 243.7 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001426/2.826, allocations: 198 kB / 0.9111 GB, free: 243.5 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/2.826, allocations: 55.72 kB / 0.9112 GB, free: 243.4 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004169/2.826, allocations: 0.6255 MB / 0.9118 GB, free: 242.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002657/2.827, allocations: 49.77 kB / 0.9118 GB, free: 242.7 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/2.827, allocations: 16 kB / 0.9118 GB, free: 242.7 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.0002237/2.827, allocations: 270.8 kB / 0.9121 GB, free: 242.5 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.922e-05/2.827, allocations: 75.52 kB / 0.9122 GB, free: 242.4 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005957/2.828, allocations: 267.7 kB / 0.9124 GB, free: 242.1 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/2.828, allocations: 7.938 kB / 0.9124 GB, free: 242.1 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/2.828, allocations: 0 / 0.9124 GB, free: 242.1 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/2.828, allocations: 0 / 0.9124 GB, free: 242.1 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001554/2.829, allocations: 0.8242 MB / 0.9132 GB, free: 241.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/2.829, allocations: 1.969 kB / 0.9132 GB, free: 241.2 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.833e-05/2.829, allocations: 4 kB / 0.9132 GB, free: 241.2 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009998/2.83, allocations: 170.5 kB / 0.9134 GB, free: 241.1 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/2.83, allocations: 0 / 0.9134 GB, free: 241.1 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003665/2.831, allocations: 0.6215 MB / 0.914 GB, free: 240.4 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/2.831, allocations: 0 / 0.914 GB, free: 240.4 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/2.832, allocations: 430.9 kB / 0.9144 GB, free: 240 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002031/2.832, allocations: 114.6 kB / 0.9145 GB, free: 239.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.912e-05/2.832, allocations: 10.11 kB / 0.9145 GB, free: 239.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/2.832, allocations: 4 kB / 0.9145 GB, free: 239.9 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.38e-05/2.832, allocations: 14.5 kB / 0.9146 GB, free: 239.9 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/2.832, allocations: 8 kB / 0.9146 GB, free: 239.9 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0006733/2.833, allocations: 0.8114 MB / 0.9154 GB, free: 239.1 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.11e-07/2.833, allocations: 0 / 0.9154 GB, free: 239.1 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003445/2.836, allocations: 1.671 MB / 0.917 GB, free: 237.6 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.006409/2.843, allocations: 3.278 MB / 0.9202 GB, free: 234.8 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0005249/2.843, allocations: 235.9 kB / 0.9204 GB, free: 234.6 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/2.843, allocations: 0 / 0.9204 GB, free: 234.6 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001519/2.843, allocations: 60.47 kB / 0.9205 GB, free: 234.5 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005959/2.844, allocations: 100.6 kB / 0.9206 GB, free: 234.4 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007705/2.852, allocations: 6.403 MB / 0.9268 GB, free: 227.8 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/2.852, allocations: 0.9377 MB / 0.9277 GB, free: 226.9 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001647/2.852, allocations: 82.03 kB / 0.9278 GB, free: 226.8 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001944/2.852, allocations: 219.4 kB / 0.928 GB, free: 226.6 MB / 0.6856 GB Notification: Performance of SimCode: time 7.82e-07/2.852, allocations: 0 / 0.928 GB, free: 226.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1216/2.974, allocations: 61.03 MB / 0.9876 GB, free: 166.5 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.34/19.31, allocations: 8.812 kB / 0.9876 GB, free: 166.5 MB / 0.6856 GB " [Timeout remaining time 640] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 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: 21.37440693913959] Failed to read output from testmodel.py, exit status != 0: 19.613168518058956 19.623936146 17.275528462 Calling exit ...