Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.Examples.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_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.8243/0.8243, allocations: 150.9 MB / 166.5 MB, free: 14.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003539/0.000354, allocations: 17.61 kB / 236.6 MB, free: 1.988 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06167/0.06204, allocations: 31.35 MB / 267.9 MB, free: 7.543 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.Examples.SimpleExamples.TestBend): time 1.639/1.701, allocations: 295 MB / 0.5497 GB, free: 13.02 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04084/1.742, allocations: 35.09 MB / 0.584 GB, free: 9.785 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002583/1.742, allocations: 0 / 0.584 GB, free: 9.785 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/Bend.mo:55:3-57:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/Bend.mo:58:3-60:43:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0006028/1.743, allocations: 289.7 kB / 0.5843 GB, free: 9.504 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003645/1.743, allocations: 286.8 kB / 0.5845 GB, free: 9.223 MB / 478.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.0249/1.768, allocations: 9.987 MB / 0.5943 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007617/1.769, allocations: 0.4909 MB / 0.5948 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000262/1.769, allocations: 184.4 kB / 0.5949 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002877/1.77, allocations: 239.1 kB / 0.5952 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003206/1.77, allocations: 295.1 kB / 0.5955 GB, free: 14.02 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.137e-05/1.77, allocations: 24 kB / 0.5955 GB, free: 14 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03158/1.801, allocations: 18.05 MB / 0.6131 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002489/1.802, allocations: 183.4 kB / 0.6133 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003285/1.802, allocations: 274.2 kB / 0.6135 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02095/1.823, allocations: 8.874 MB / 0.6222 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.165e-06/1.823, allocations: 4 kB / 0.6222 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.713e-06/1.823, allocations: 0 / 0.6222 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.887e-05/1.823, allocations: 0 / 0.6222 GB, free: 2.578 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.005618/1.829, allocations: 1.886 MB / 0.624 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/1.829, allocations: 8.031 kB / 0.6241 GB, free: 0.625 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.068e-05/1.829, allocations: 74.53 kB / 0.6241 GB, free: 0.543 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/1.829, allocations: 71.53 kB / 0.6242 GB, free: 484 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006103/1.83, allocations: 0.4911 MB / 0.6247 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.585e-05/1.83, allocations: 16.56 kB / 0.6247 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.972e-05/1.83, allocations: 35.81 kB / 0.6247 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005689/1.83, allocations: 429.3 kB / 0.6251 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/1.83, allocations: 4 kB / 0.6251 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.424e-05/1.83, allocations: 8 kB / 0.6251 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/1.83, allocations: 19.92 kB / 0.6252 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000429/1.831, allocations: 341.7 kB / 0.6255 GB, free: 15.07 MB / 0.5137 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03727/1.868, allocations: 18.7 MB / 0.6438 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005605/1.869, allocations: 170.6 kB / 0.6439 GB, free: 10.31 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000138/1.869, allocations: 104.8 kB / 0.644 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3351/2.204, allocations: 77.92 MB / 0.7201 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/2.204, allocations: 32.94 kB / 0.7201 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 2.535e-06/2.204, allocations: 4 kB / 0.7202 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.001611/2.206, allocations: 0.592 MB / 0.7207 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/2.206, allocations: 106.5 kB / 0.7208 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/2.207, allocations: 1.008 MB / 0.7218 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/2.207, allocations: 29.7 kB / 0.7218 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001884/2.207, allocations: 309.6 kB / 0.7221 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.917e-05/2.207, allocations: 132.5 kB / 0.7223 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.04e-05/2.207, allocations: 64.48 kB / 0.7223 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.65e-05/2.207, allocations: 382.7 kB / 0.7227 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/2.207, allocations: 155.2 kB / 0.7228 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001928/2.208, allocations: 242.3 kB / 0.7231 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000308/2.208, allocations: 333.9 kB / 0.7234 GB, free: 209 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/2.208, allocations: 0 / 0.7234 GB, free: 209 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005838/2.208, allocations: 0.5312 MB / 0.7239 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/2.209, allocations: 5.812 kB / 0.7239 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/2.209, allocations: 10.5 kB / 0.7239 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001447/2.21, allocations: 229.5 kB / 0.7241 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.207e-05/2.21, allocations: 17.78 kB / 0.7242 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004968/2.211, allocations: 0.6846 MB / 0.7248 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/2.211, allocations: 43.12 kB / 0.7249 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/2.211, allocations: 16.05 kB / 0.7249 GB, free: 208.4 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (Bend.C2.b,Bend.C1.a,SinkP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001996/2.211, allocations: 248.8 kB / 0.7251 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.116e-05/2.211, allocations: 67 kB / 0.7252 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007499/2.212, allocations: 0.6973 MB / 0.7259 GB, free: 208 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002947/2.212, allocations: 247.6 kB / 0.7261 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/2.212, allocations: 0 / 0.7261 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/2.212, allocations: 7.859 kB / 0.7261 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/2.213, allocations: 0.9728 MB / 0.7271 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/2.213, allocations: 2.344 kB / 0.7271 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.904e-05/2.213, allocations: 22.8 kB / 0.7271 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007854/2.214, allocations: 181 kB / 0.7273 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/2.214, allocations: 0 / 0.7273 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004372/2.215, allocations: 0.7046 MB / 0.7279 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/2.215, allocations: 0.5625 kB / 0.7279 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003768/2.215, allocations: 424.5 kB / 0.7284 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/2.215, allocations: 181.6 kB / 0.7285 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.629e-05/2.215, allocations: 13.02 kB / 0.7285 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/2.215, allocations: 13.14 kB / 0.7285 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.669e-05/2.215, allocations: 12.23 kB / 0.7286 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/2.215, allocations: 6.609 kB / 0.7286 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007413/2.216, allocations: 0.8094 MB / 0.7294 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.352e-06/2.216, allocations: 0 / 0.7294 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00335/2.22, allocations: 1.276 MB / 0.7306 GB, free: 206.6 MB / 0.5919 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 (12): * Single equations (assignments): 11 * 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.005211/2.225, allocations: 2.647 MB / 0.7332 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006692/2.225, allocations: 360.3 kB / 0.7335 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/2.225, allocations: 1.125 kB / 0.7335 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002522/2.226, allocations: 120.1 kB / 0.7336 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007943/2.227, allocations: 142.5 kB / 0.7338 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006368/2.233, allocations: 6.157 MB / 0.7398 GB, free: 203.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003142/2.233, allocations: 0.9362 MB / 0.7407 GB, free: 203 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001417/2.233, allocations: 62.91 kB / 0.7408 GB, free: 203 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/2.234, allocations: 232.9 kB / 0.741 GB, free: 203 MB / 0.5919 GB Notification: Performance of SimCode: time 4.71e-07/2.234, allocations: 0 / 0.741 GB, free: 203 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07478/2.308, allocations: 54.27 MB / 0.794 GB, free: 155 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.98/17.29, allocations: 11.89 kB / 0.794 GB, free: 155 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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_Examples_SimpleExamples_TestBend.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe 2>&1)