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 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8718/0.8718, allocations: 150.9 MB / 166.5 MB, free: 14.36 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005084/0.0005084, allocations: 13.48 kB / 236.5 MB, free: 2.066 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06222/0.06275, allocations: 31.35 MB / 267.9 MB, free: 7.578 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend): time 1.737/1.8, allocations: 295.4 MB / 0.5501 GB, free: 12.68 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5404/2.341, allocations: 190.5 MB / 0.7361 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003673/2.341, allocations: 8.656 kB / 0.7361 GB, free: 1.781 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59: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 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47: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 4.0.0-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 4.0.0-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.0004699/2.342, allocations: 207.1 kB / 0.7363 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0006478/2.342, allocations: 273.2 kB / 0.7366 GB, free: 1.781 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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.03306/2.375, allocations: 12.29 MB / 0.7486 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0007031/2.376, allocations: 0.5329 MB / 0.7491 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002869/2.376, allocations: 276.1 kB / 0.7494 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002676/2.377, allocations: 250.3 kB / 0.7496 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003052/2.377, allocations: 353.4 kB / 0.75 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.351e-05/2.377, allocations: 46.5 kB / 0.75 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03686/2.414, allocations: 21.07 MB / 0.7706 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003342/2.414, allocations: 209.2 kB / 0.7708 GB, free: 15.94 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0004581/2.415, allocations: 328.2 kB / 0.7711 GB, free: 15.92 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.02905/2.444, allocations: 10.77 MB / 0.7816 GB, free: 12 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/2.444, allocations: 0 / 0.7816 GB, free: 12 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.986e-06/2.444, allocations: 3.375 kB / 0.7816 GB, free: 12 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.445e-05/2.444, allocations: 0.9688 kB / 0.7816 GB, free: 12 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.006068/2.45, allocations: 2.325 MB / 0.7839 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/2.45, allocations: 11.47 kB / 0.7839 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.651e-05/2.45, allocations: 79.78 kB / 0.784 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/2.45, allocations: 87.91 kB / 0.7841 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007311/2.451, allocations: 0.5569 MB / 0.7846 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/2.451, allocations: 29.53 kB / 0.7846 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.844e-05/2.451, allocations: 38.91 kB / 0.7847 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006531/2.452, allocations: 493.2 kB / 0.7851 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/2.452, allocations: 6.25 kB / 0.7851 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.414e-05/2.452, allocations: 14.25 kB / 0.7852 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/2.452, allocations: 11.25 kB / 0.7852 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005304/2.452, allocations: 419.6 kB / 0.7856 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01058/2.463, allocations: 6.687 MB / 0.7921 GB, free: 4.496 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006068/2.464, allocations: 117.5 kB / 0.7922 GB, free: 4.457 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/2.464, allocations: 44.59 kB / 0.7923 GB, free: 4.445 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3533/2.817, allocations: 155.7 MB / 0.9443 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.726e-05/2.817, allocations: 34.56 kB / 0.9443 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.345e-06/2.817, allocations: 0 / 0.9443 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.002375/2.819, allocations: 482.6 kB / 0.9448 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.766e-05/2.82, allocations: 103.9 kB / 0.9449 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001851/2.821, allocations: 1.071 MB / 0.9459 GB, free: 8.789 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.46e-05/2.821, allocations: 29.7 kB / 0.9459 GB, free: 8.754 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003856/2.822, allocations: 390.7 kB / 0.9463 GB, free: 8.371 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.342e-05/2.822, allocations: 39.69 kB / 0.9464 GB, free: 8.332 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/2.822, allocations: 81.59 kB / 0.9464 GB, free: 8.246 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002315/2.822, allocations: 382.7 kB / 0.9468 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002214/2.823, allocations: 129 kB / 0.9469 GB, free: 7.738 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003713/2.823, allocations: 264.1 kB / 0.9472 GB, free: 7.426 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004584/2.823, allocations: 322.9 kB / 0.9475 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/2.823, allocations: 0 / 0.9475 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001619/2.825, allocations: 0.5579 MB / 0.948 GB, free: 6.535 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/2.825, allocations: 21.09 kB / 0.948 GB, free: 6.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/2.825, allocations: 5.203 kB / 0.9481 GB, free: 6.516 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00157/2.827, allocations: 191 kB / 0.9482 GB, free: 6.328 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001853/2.827, allocations: 51.16 kB / 0.9483 GB, free: 6.281 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007188/2.828, allocations: 0.6256 MB / 0.9489 GB, free: 5.637 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003946/2.828, allocations: 49.03 kB / 0.9489 GB, free: 5.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.202e-05/2.828, allocations: 20 kB / 0.949 GB, free: 5.57 MB / 0.7794 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.0003802/2.828, allocations: 263.9 kB / 0.9492 GB, free: 5.309 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/2.829, allocations: 63.58 kB / 0.9493 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007873/2.829, allocations: 270.2 kB / 0.9495 GB, free: 4.977 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-06/2.829, allocations: 2.688 kB / 0.9495 GB, free: 4.977 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/2.829, allocations: 0 / 0.9495 GB, free: 4.977 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/2.829, allocations: 3.938 kB / 0.9495 GB, free: 4.973 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002091/2.832, allocations: 0.8389 MB / 0.9504 GB, free: 4.086 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/2.832, allocations: 0 / 0.9504 GB, free: 4.086 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.647e-05/2.832, allocations: 7.719 kB / 0.9504 GB, free: 4.082 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001138/2.833, allocations: 159.7 kB / 0.9505 GB, free: 3.926 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/2.833, allocations: 4.094 kB / 0.9505 GB, free: 3.922 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000658/2.833, allocations: 0.6373 MB / 0.9511 GB, free: 3.262 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/2.833, allocations: 0 / 0.9511 GB, free: 3.262 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/2.835, allocations: 412.2 kB / 0.9515 GB, free: 2.852 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002677/2.835, allocations: 176.5 kB / 0.9517 GB, free: 2.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.142e-05/2.835, allocations: 8 kB / 0.9517 GB, free: 2.652 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002006/2.835, allocations: 7.984 kB / 0.9517 GB, free: 2.645 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.95e-05/2.835, allocations: 7.984 kB / 0.9517 GB, free: 2.637 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/2.836, allocations: 4 kB / 0.9517 GB, free: 2.633 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001122/2.837, allocations: 0.7871 MB / 0.9525 GB, free: 1.852 MB / 0.7794 GB Notification: Performance of sort global known variables: time 9.12e-07/2.837, allocations: 0 / 0.9525 GB, free: 1.852 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00462/2.841, allocations: 1.665 MB / 0.9541 GB, free: 188 kB / 0.7794 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.009957/2.851, allocations: 3.286 MB / 0.9573 GB, free: 13.18 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007057/2.852, allocations: 238.7 kB / 0.9576 GB, free: 12.96 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/2.852, allocations: 4.062 kB / 0.9576 GB, free: 12.96 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001995/2.852, allocations: 62.98 kB / 0.9576 GB, free: 12.9 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007572/2.853, allocations: 101.3 kB / 0.9577 GB, free: 12.81 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01247/2.865, allocations: 6.331 MB / 0.9639 GB, free: 6.324 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006705/2.866, allocations: 0.9314 MB / 0.9648 GB, free: 5.371 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002327/2.866, allocations: 78.88 kB / 0.9649 GB, free: 5.297 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000329/2.867, allocations: 215.4 kB / 0.9651 GB, free: 5.09 MB / 0.795 GB Notification: Performance of SimCode: time 9.92e-07/2.867, allocations: 0 / 0.9651 GB, free: 5.09 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3181/3.185, allocations: 60.67 MB / 1.024 GB, free: 455.4 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.35/18.53, allocations: 7.453 kB / 1.024 GB, free: 455.4 MB / 0.8419 GB (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)