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.811/0.811, allocations: 153.8 MB / 172.7 MB, free: 4.867 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.0004952/0.0004952, allocations: 11.97 kB / 249.8 MB, free: 4.418 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1465, allocations: 33.35 MB / 283.1 MB, free: 1.734 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.83/1.976, allocations: 307.7 MB / 0.5769 GB, free: 17.36 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2063/2.183, allocations: 167.5 MB / 0.7405 GB, free: 13.49 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004346/2.183, allocations: 15.88 kB / 0.7405 GB, free: 13.48 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.0004581/2.183, allocations: 203.8 kB / 0.7407 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0006772/2.184, allocations: 282.6 kB / 0.741 GB, free: 13 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.03312/2.217, allocations: 12.44 MB / 0.7531 GB, free: 0.5508 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0008899/2.218, allocations: 0.5419 MB / 0.7536 GB, free: 8 kB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003683/2.218, allocations: 245 kB / 0.7539 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000386/2.219, allocations: 275.1 kB / 0.7541 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004113/2.219, allocations: 354.9 kB / 0.7545 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 6.337e-05/2.219, allocations: 40 kB / 0.7545 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03653/2.256, allocations: 19.69 MB / 0.7737 GB, free: 11.39 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0002988/2.256, allocations: 215.3 kB / 0.7739 GB, free: 11.18 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0002973/2.256, allocations: 258.4 kB / 0.7742 GB, free: 10.93 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02394/2.28, allocations: 10.8 MB / 0.7847 GB, free: 100 kB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/2.28, allocations: 0 / 0.7847 GB, free: 100 kB / 0.6387 GB Notification: Performance of FrontEnd: time 1.703e-06/2.28, allocations: 4 kB / 0.7847 GB, free: 96 kB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.093e-05/2.28, allocations: 0 / 0.7847 GB, free: 96 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.005437/2.286, allocations: 2.287 MB / 0.787 GB, free: 13.75 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/2.286, allocations: 8.031 kB / 0.787 GB, free: 13.75 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.438e-05/2.286, allocations: 83.14 kB / 0.7871 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002119/2.286, allocations: 87.44 kB / 0.7872 GB, free: 13.57 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008437/2.287, allocations: 0.5208 MB / 0.7877 GB, free: 13.02 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.698e-05/2.287, allocations: 32.94 kB / 0.7877 GB, free: 12.99 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.789e-05/2.287, allocations: 40 kB / 0.7877 GB, free: 12.95 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007793/2.288, allocations: 0.534 MB / 0.7883 GB, free: 12.37 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/2.288, allocations: 0 / 0.7883 GB, free: 12.37 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.868e-05/2.288, allocations: 16.88 kB / 0.7883 GB, free: 12.35 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/2.288, allocations: 8 kB / 0.7883 GB, free: 12.34 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006348/2.289, allocations: 410.4 kB / 0.7887 GB, free: 11.94 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008358/2.297, allocations: 3.759 MB / 0.7923 GB, free: 8.117 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005259/2.298, allocations: 114.6 kB / 0.7924 GB, free: 7.996 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.469e-05/2.298, allocations: 41.61 kB / 0.7925 GB, free: 7.953 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4658/2.763, allocations: 88.7 MB / 0.8791 GB, free: 277 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.694e-05/2.763, allocations: 44.22 kB / 0.8792 GB, free: 276.9 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=11): time 2.585e-06/2.763, allocations: 1.031 kB / 0.8792 GB, free: 276.9 MB / 0.6856 GB Notification: Performance of matching and sorting (n=11): time 0.002031/2.765, allocations: 405.6 kB / 0.8795 GB, free: 276.6 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/2.765, allocations: 108 kB / 0.8796 GB, free: 276.5 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001038/2.767, allocations: 1.125 MB / 0.8807 GB, free: 275.7 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/2.767, allocations: 29.7 kB / 0.8808 GB, free: 275.6 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002047/2.767, allocations: 397.1 kB / 0.8811 GB, free: 275.4 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/2.767, allocations: 38.98 kB / 0.8812 GB, free: 275.4 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.679e-05/2.767, allocations: 81.78 kB / 0.8813 GB, free: 275.3 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.095e-05/2.767, allocations: 381.2 kB / 0.8816 GB, free: 275 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/2.767, allocations: 129.1 kB / 0.8818 GB, free: 274.9 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001915/2.767, allocations: 309.2 kB / 0.882 GB, free: 274.6 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002709/2.768, allocations: 328.1 kB / 0.8824 GB, free: 274.3 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/2.768, allocations: 0 / 0.8824 GB, free: 274.3 MB / 0.6856 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001105/2.769, allocations: 0.5606 MB / 0.8829 GB, free: 273.7 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/2.769, allocations: 12 kB / 0.8829 GB, free: 273.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/2.769, allocations: 4 kB / 0.8829 GB, free: 273.7 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001336/2.77, allocations: 192.3 kB / 0.8831 GB, free: 273.5 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/2.77, allocations: 47.91 kB / 0.8831 GB, free: 273.4 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003995/2.771, allocations: 0.6288 MB / 0.8838 GB, free: 272.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/2.771, allocations: 50.53 kB / 0.8838 GB, free: 272.8 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/2.771, allocations: 12 kB / 0.8838 GB, free: 272.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.0002014/2.771, allocations: 285.2 kB / 0.8841 GB, free: 272.5 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.872e-05/2.771, allocations: 71.53 kB / 0.8842 GB, free: 272.4 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005668/2.772, allocations: 266.3 kB / 0.8844 GB, free: 272.1 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/2.772, allocations: 0 / 0.8844 GB, free: 272.1 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/2.772, allocations: 0.5469 kB / 0.8844 GB, free: 272.1 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/2.772, allocations: 0 / 0.8844 GB, free: 272.1 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001448/2.773, allocations: 0.7915 MB / 0.8852 GB, free: 271.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/2.773, allocations: 0 / 0.8852 GB, free: 271.3 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.841e-05/2.773, allocations: 9.297 kB / 0.8852 GB, free: 271.3 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009458/2.774, allocations: 153.7 kB / 0.8853 GB, free: 271.1 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/2.774, allocations: 8.031 kB / 0.8854 GB, free: 271.1 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003547/2.774, allocations: 0.6322 MB / 0.886 GB, free: 270.5 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/2.774, allocations: 3.938 kB / 0.886 GB, free: 270.5 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/2.776, allocations: 418.8 kB / 0.8864 GB, free: 270 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002025/2.776, allocations: 113.7 kB / 0.8865 GB, free: 269.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.599e-05/2.776, allocations: 0 / 0.8865 GB, free: 269.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/2.776, allocations: 12 kB / 0.8865 GB, free: 269.9 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.52e-05/2.776, allocations: 4.531 kB / 0.8865 GB, free: 269.9 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.216e-06/2.776, allocations: 7.984 kB / 0.8865 GB, free: 269.9 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0006408/2.777, allocations: 0.823 MB / 0.8873 GB, free: 269.1 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.1e-07/2.777, allocations: 0 / 0.8873 GB, free: 269.1 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003066/2.78, allocations: 1.671 MB / 0.8889 GB, free: 267.7 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.005815/2.786, allocations: 3.29 MB / 0.8922 GB, free: 264.9 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0004832/2.786, allocations: 224.7 kB / 0.8924 GB, free: 264.6 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/2.786, allocations: 0 / 0.8924 GB, free: 264.6 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001425/2.786, allocations: 56.12 kB / 0.8924 GB, free: 264.6 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000548/2.787, allocations: 90.48 kB / 0.8925 GB, free: 264.5 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007193/2.794, allocations: 6.419 MB / 0.8988 GB, free: 257.9 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/2.794, allocations: 347.4 kB / 0.8991 GB, free: 257.5 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001585/2.794, allocations: 68.25 kB / 0.8992 GB, free: 257.5 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001956/2.794, allocations: 215.4 kB / 0.8994 GB, free: 257.3 MB / 0.6856 GB Notification: Performance of SimCode: time 7.01e-07/2.794, allocations: 0 / 0.8994 GB, free: 257.3 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0895/2.884, allocations: 61.39 MB / 0.9593 GB, free: 196.8 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.31/18.2, allocations: 13.52 kB / 0.9593 GB, free: 196.8 MB / 0.6856 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 & /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: 20.008764242287725] Failed to read output from testmodel.py, exit status != 0: 18.48328045522794 18.492881585 16.210219197 Calling exit ...