Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_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.8175/0.8175, allocations: 150.9 MB / 166.5 MB, free: 14.36 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003298/0.0003298, allocations: 13.47 kB / 236.5 MB, free: 2.07 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0628/0.06314, allocations: 31.35 MB / 267.9 MB, free: 7.609 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.Book.SimpleExamples.PressureLoss.TestBend): time 1.662/1.725, allocations: 294.8 MB / 0.5495 GB, free: 12.86 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04052/1.766, allocations: 35.09 MB / 0.5838 GB, free: 9.629 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002951/1.766, allocations: 4 kB / 0.5838 GB, free: 9.625 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.0005934/1.767, allocations: 291 kB / 0.5841 GB, free: 9.34 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003516/1.767, allocations: 274.9 kB / 0.5843 GB, free: 9.07 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.02772/1.795, allocations: 9.997 MB / 0.5941 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009623/1.796, allocations: 498.8 kB / 0.5946 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002817/1.796, allocations: 180.5 kB / 0.5947 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003495/1.796, allocations: 239.1 kB / 0.595 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003348/1.797, allocations: 295.1 kB / 0.5952 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.316e-05/1.797, allocations: 24 kB / 0.5953 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03098/1.828, allocations: 18.05 MB / 0.6129 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002552/1.828, allocations: 183.4 kB / 0.6131 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003216/1.828, allocations: 270.2 kB / 0.6133 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02081/1.849, allocations: 8.874 MB / 0.622 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/1.849, allocations: 3.984 kB / 0.622 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.496e-06/1.849, allocations: 4 kB / 0.622 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.508e-05/1.849, allocations: 0 / 0.622 GB, free: 2.43 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.004622/1.854, allocations: 1.886 MB / 0.6238 GB, free: 496 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/1.854, allocations: 8.031 kB / 0.6238 GB, free: 488 kB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.225e-05/1.854, allocations: 74.53 kB / 0.6239 GB, free: 404 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/1.854, allocations: 71.53 kB / 0.624 GB, free: 332 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005794/1.855, allocations: 0.4948 MB / 0.6245 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/1.855, allocations: 16.56 kB / 0.6245 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.015e-05/1.855, allocations: 27.94 kB / 0.6245 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005596/1.855, allocations: 437.2 kB / 0.6249 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/1.855, allocations: 0 / 0.6249 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.335e-05/1.855, allocations: 15.98 kB / 0.6249 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/1.855, allocations: 15.98 kB / 0.625 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004018/1.856, allocations: 337.7 kB / 0.6253 GB, free: 14.92 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.03708/1.893, allocations: 18.7 MB / 0.6435 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005674/1.893, allocations: 170.6 kB / 0.6437 GB, free: 10.17 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/1.894, allocations: 104.8 kB / 0.6438 GB, free: 10.06 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3292/2.223, allocations: 77.93 MB / 0.7199 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/2.223, allocations: 36.47 kB / 0.7199 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 2.515e-06/2.223, allocations: 0 / 0.7199 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.001682/2.225, allocations: 0.5904 MB / 0.7205 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/2.225, allocations: 112.9 kB / 0.7206 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/2.226, allocations: 1.001 MB / 0.7216 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/2.226, allocations: 31.08 kB / 0.7216 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001873/2.226, allocations: 306.4 kB / 0.7219 GB, free: 209 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.23e-05/2.226, allocations: 129.9 kB / 0.722 GB, free: 209 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.194e-05/2.226, allocations: 66.55 kB / 0.7221 GB, free: 209 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.168e-05/2.226, allocations: 384.9 kB / 0.7225 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001664/2.226, allocations: 158.5 kB / 0.7226 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/2.226, allocations: 235.8 kB / 0.7229 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002993/2.227, allocations: 343.1 kB / 0.7232 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/2.227, allocations: 0 / 0.7232 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000595/2.227, allocations: 0.5329 MB / 0.7237 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/2.227, allocations: 5.625 kB / 0.7237 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/2.227, allocations: 3.312 kB / 0.7237 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001493/2.229, allocations: 224.2 kB / 0.7239 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.254e-05/2.229, allocations: 23.95 kB / 0.7239 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005314/2.23, allocations: 0.6823 MB / 0.7246 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002063/2.23, allocations: 41 kB / 0.7247 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.925e-05/2.23, allocations: 9.281 kB / 0.7247 GB, free: 207.8 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.0002208/2.23, allocations: 253.8 kB / 0.7249 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.332e-05/2.23, allocations: 66.66 kB / 0.725 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007251/2.231, allocations: 0.6983 MB / 0.7257 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003053/2.231, allocations: 252.3 kB / 0.7259 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/2.231, allocations: 0 / 0.7259 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.81e-06/2.231, allocations: 2.344 kB / 0.7259 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001124/2.232, allocations: 0.9802 MB / 0.7269 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/2.232, allocations: 0 / 0.7269 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.068e-05/2.232, allocations: 18.19 kB / 0.7269 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008223/2.233, allocations: 181.6 kB / 0.727 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/2.233, allocations: 4.688 kB / 0.727 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004645/2.234, allocations: 0.7049 MB / 0.7277 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/2.234, allocations: 2.812 kB / 0.7277 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004033/2.234, allocations: 426 kB / 0.7281 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001726/2.234, allocations: 174.6 kB / 0.7283 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.659e-05/2.234, allocations: 17.05 kB / 0.7283 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001882/2.235, allocations: 15.3 kB / 0.7283 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.398e-05/2.235, allocations: 10.03 kB / 0.7284 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.218e-06/2.235, allocations: 8.938 kB / 0.7284 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007987/2.235, allocations: 0.81 MB / 0.7291 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/2.235, allocations: 1.031 kB / 0.7292 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003536/2.239, allocations: 1.274 MB / 0.7304 GB, free: 206.1 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.005377/2.244, allocations: 2.646 MB / 0.733 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007525/2.245, allocations: 359.2 kB / 0.7333 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/2.245, allocations: 0 / 0.7333 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002721/2.245, allocations: 113.7 kB / 0.7334 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008804/2.246, allocations: 154 kB / 0.7336 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007388/2.254, allocations: 6.154 MB / 0.7396 GB, free: 203.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/2.254, allocations: 0.936 MB / 0.7405 GB, free: 202.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001596/2.254, allocations: 59.83 kB / 0.7406 GB, free: 202.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002016/2.254, allocations: 228.6 kB / 0.7408 GB, free: 202.5 MB / 0.5919 GB Notification: Performance of SimCode: time 6.02e-07/2.254, allocations: 0 / 0.7408 GB, free: 202.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07397/2.328, allocations: 54.3 MB / 0.7938 GB, free: 154.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/16.24, allocations: 5 kB / 0.7938 GB, free: 154.3 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.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_Examples_Book_SimpleExamples_PressureLoss_TestBend.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)