Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.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.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",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.7773/0.7773, allocations: 150.9 MB / 166.4 MB, free: 14.26 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003197, allocations: 19.98 kB / 204.6 MB, free: 9.523 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1343, allocations: 31.33 MB / 236 MB, free: 5.43 MB / 190.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.TestPipePressureLoss): time 1.512/1.647, allocations: 294.7 MB / 0.5183 GB, free: 13.02 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03613/1.683, allocations: 34.43 MB / 0.5519 GB, free: 10.72 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001931/1.683, allocations: 3.938 kB / 0.5519 GB, free: 10.72 MB / 446.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/PipePressureLoss.mo:35:3-37: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/PipePressureLoss.mo:38:3-40:37: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.0003326/1.683, allocations: 103.4 kB / 0.552 GB, free: 10.62 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000188/1.684, allocations: 103.2 kB / 0.5521 GB, free: 10.52 MB / 446.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.0221/1.706, allocations: 9.567 MB / 0.5614 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004572/1.706, allocations: 342.4 kB / 0.5618 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/1.706, allocations: 110.3 kB / 0.5619 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001927/1.707, allocations: 155.3 kB / 0.562 GB, free: 364 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/1.707, allocations: 111.4 kB / 0.5621 GB, free: 252 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.727e-05/1.707, allocations: 20 kB / 0.5621 GB, free: 232 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02572/1.732, allocations: 17.67 MB / 0.5794 GB, free: 14.54 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.274e-05/1.733, allocations: 47.78 kB / 0.5794 GB, free: 14.49 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001607/1.733, allocations: 131.3 kB / 0.5796 GB, free: 14.36 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01777/1.751, allocations: 8.422 MB / 0.5878 GB, free: 5.922 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/1.751, allocations: 4 kB / 0.5878 GB, free: 5.918 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.372e-06/1.751, allocations: 0 / 0.5878 GB, free: 5.918 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/1.751, allocations: 0 / 0.5878 GB, free: 5.918 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.003841/1.754, allocations: 1.439 MB / 0.5892 GB, free: 4.43 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/1.754, allocations: 8.031 kB / 0.5892 GB, free: 4.422 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.93e-05/1.755, allocations: 74.47 kB / 0.5893 GB, free: 4.34 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.891e-05/1.755, allocations: 27.62 kB / 0.5893 GB, free: 4.312 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002061/1.755, allocations: 227.5 kB / 0.5895 GB, free: 4.051 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.262e-05/1.755, allocations: 12.44 kB / 0.5895 GB, free: 4.039 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.614e-05/1.755, allocations: 20 kB / 0.5895 GB, free: 4.02 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003778/1.755, allocations: 307.3 kB / 0.5898 GB, free: 3.688 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/1.755, allocations: 0 / 0.5898 GB, free: 3.688 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/1.755, allocations: 4 kB / 0.5898 GB, free: 3.684 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.737e-05/1.755, allocations: 12 kB / 0.5898 GB, free: 3.672 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002342/1.756, allocations: 175 kB / 0.59 GB, free: 3.504 MB / 478.1 MB 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.03609/1.792, allocations: 18.01 MB / 0.6076 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003037/1.792, allocations: 130.7 kB / 0.6077 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/1.792, allocations: 88.78 kB / 0.6078 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1519/1.944, allocations: 77.27 MB / 0.6833 GB, free: 9.352 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/1.944, allocations: 30.56 kB / 0.6833 GB, free: 9.312 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.866e-06/1.944, allocations: 0 / 0.6833 GB, free: 9.312 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001018/1.945, allocations: 455.8 kB / 0.6837 GB, free: 8.84 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/1.945, allocations: 55.39 kB / 0.6838 GB, free: 8.773 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002239/1.945, allocations: 219.1 kB / 0.684 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/1.945, allocations: 25.7 kB / 0.684 GB, free: 8.52 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.881e-05/1.946, allocations: 148.5 kB / 0.6842 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.977e-05/1.946, allocations: 110.3 kB / 0.6843 GB, free: 8.262 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.399e-05/1.946, allocations: 61.53 kB / 0.6843 GB, free: 8.195 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001161/1.946, allocations: 338.8 kB / 0.6846 GB, free: 7.855 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/1.946, allocations: 71.91 kB / 0.6847 GB, free: 7.785 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001263/1.946, allocations: 112.3 kB / 0.6848 GB, free: 7.66 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002555/1.946, allocations: 208.6 kB / 0.685 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/1.946, allocations: 0 / 0.685 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000434/1.947, allocations: 305.5 kB / 0.6853 GB, free: 7.133 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/1.947, allocations: 4 kB / 0.6853 GB, free: 7.129 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/1.947, allocations: 0 / 0.6853 GB, free: 7.129 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008748/1.948, allocations: 167.8 kB / 0.6855 GB, free: 6.965 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.83e-05/1.948, allocations: 15.92 kB / 0.6855 GB, free: 6.949 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005031/1.948, allocations: 0.6343 MB / 0.6861 GB, free: 6.289 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/1.948, allocations: 19.69 kB / 0.6861 GB, free: 6.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/1.948, allocations: 8 kB / 0.6861 GB, free: 6.262 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (pipePressureLoss.C2.b,pipePressureLoss.C1.a,PuitsP1.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 (11): * Single equations (assignments): 8 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000127/1.949, allocations: 133.8 kB / 0.6863 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.844e-05/1.949, allocations: 27.72 kB / 0.6863 GB, free: 6.094 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006975/1.949, allocations: 0.5925 MB / 0.6869 GB, free: 5.43 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000357/1.95, allocations: 227.4 kB / 0.6871 GB, free: 5.199 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/1.95, allocations: 0 / 0.6871 GB, free: 5.199 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/1.95, allocations: 0 / 0.6871 GB, free: 5.199 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009278/1.951, allocations: 0.7467 MB / 0.6878 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/1.951, allocations: 0 / 0.6878 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.367e-05/1.951, allocations: 16 kB / 0.6878 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003594/1.951, allocations: 109.9 kB / 0.6879 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/1.951, allocations: 4 kB / 0.6879 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00045/1.952, allocations: 0.6624 MB / 0.6886 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/1.952, allocations: 0 / 0.6886 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00042/1.952, allocations: 343.7 kB / 0.6889 GB, free: 3.227 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.804e-05/1.952, allocations: 104.8 kB / 0.689 GB, free: 3.105 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.609e-05/1.952, allocations: 15.84 kB / 0.689 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.901e-05/1.952, allocations: 4.062 kB / 0.689 GB, free: 3.086 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.616e-05/1.952, allocations: 11.98 kB / 0.689 GB, free: 3.074 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.994e-06/1.952, allocations: 4 kB / 0.6891 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002276/1.953, allocations: 237.9 kB / 0.6893 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.9e-07/1.953, allocations: 0 / 0.6893 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002775/1.955, allocations: 1.183 MB / 0.6904 GB, free: 1.656 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (11): * Single equations (assignments): 10 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1458/2.101, allocations: 2.495 MB / 0.6929 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005457/2.102, allocations: 237.8 kB / 0.6931 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/2.102, allocations: 2.062 kB / 0.6931 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001924/2.102, allocations: 95.2 kB / 0.6932 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007593/2.103, allocations: 131.2 kB / 0.6933 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003822/2.106, allocations: 3.021 MB / 0.6963 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001595/2.107, allocations: 0.7677 MB / 0.697 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001098/2.107, allocations: 18.8 kB / 0.697 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.534e-05/2.107, allocations: 96.27 kB / 0.6971 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of SimCode: time 5.91e-07/2.107, allocations: 0 / 0.6971 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06897/2.176, allocations: 47.66 MB / 0.7437 GB, free: 198.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/14.43, allocations: 3.984 kB / 0.7437 GB, free: 198.3 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss_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_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1)