Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_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.8526/0.8526, allocations: 150.9 MB / 166.5 MB, free: 14.34 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006865/0.0006866, allocations: 19.72 kB / 236.5 MB, free: 2.047 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07247/0.07318, allocations: 31.35 MB / 267.9 MB, free: 7.594 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.TestPipePressureLoss): time 1.664/1.737, allocations: 295.2 MB / 0.5499 GB, free: 12.94 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0409/1.778, allocations: 34.43 MB / 0.5835 GB, free: 10.38 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000218/1.778, allocations: 4 kB / 0.5835 GB, free: 10.37 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/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.0003839/1.778, allocations: 113.9 kB / 0.5836 GB, free: 10.26 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002037/1.779, allocations: 103.1 kB / 0.5837 GB, free: 10.16 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.02384/1.802, allocations: 9.561 MB / 0.5931 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005807/1.803, allocations: 346.4 kB / 0.5934 GB, free: 252 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002161/1.803, allocations: 120.5 kB / 0.5935 GB, free: 132 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002454/1.804, allocations: 139.4 kB / 0.5936 GB, free: 15.99 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/1.804, allocations: 111.4 kB / 0.5937 GB, free: 15.88 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.915e-05/1.804, allocations: 16 kB / 0.5938 GB, free: 15.87 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03111/1.835, allocations: 17.89 MB / 0.6112 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.386e-05/1.835, allocations: 47.77 kB / 0.6113 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000195/1.835, allocations: 131.4 kB / 0.6114 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01906/1.854, allocations: 8.423 MB / 0.6196 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/1.854, allocations: 0 / 0.6196 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.863e-06/1.854, allocations: 4 kB / 0.6196 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.025e-05/1.854, allocations: 4 kB / 0.6196 GB, free: 5.324 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.004182/1.859, allocations: 1.486 MB / 0.6211 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/1.859, allocations: 8.031 kB / 0.6211 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.026e-05/1.859, allocations: 70.41 kB / 0.6212 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.981e-05/1.859, allocations: 31.81 kB / 0.6212 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002448/1.859, allocations: 227.4 kB / 0.6214 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.041e-05/1.859, allocations: 12.44 kB / 0.6214 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.972e-05/1.859, allocations: 27.94 kB / 0.6214 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004324/1.859, allocations: 299.3 kB / 0.6217 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/1.859, allocations: 11.92 kB / 0.6217 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.717e-05/1.86, allocations: 4 kB / 0.6217 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/1.86, allocations: 12 kB / 0.6218 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002615/1.86, allocations: 169.1 kB / 0.6219 GB, free: 2.852 MB / 0.4981 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.03823/1.898, allocations: 18.13 MB / 0.6396 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003256/1.898, allocations: 142.6 kB / 0.6398 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/1.899, allocations: 84.92 kB / 0.6398 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3285/2.227, allocations: 77.73 MB / 0.7157 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/2.227, allocations: 33.5 kB / 0.7158 GB, free: 212 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.444e-06/2.227, allocations: 0 / 0.7158 GB, free: 212 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0009927/2.228, allocations: 453.3 kB / 0.7162 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.14e-05/2.228, allocations: 54.69 kB / 0.7163 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002/2.228, allocations: 225.2 kB / 0.7165 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/2.228, allocations: 26.33 kB / 0.7165 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.063e-05/2.228, allocations: 156 kB / 0.7166 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.339e-05/2.228, allocations: 113 kB / 0.7168 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.78e-05/2.229, allocations: 48.69 kB / 0.7168 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.465e-05/2.229, allocations: 333.2 kB / 0.7171 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.999e-05/2.229, allocations: 72.45 kB / 0.7172 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/2.229, allocations: 113 kB / 0.7173 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002242/2.229, allocations: 211.2 kB / 0.7175 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/2.229, allocations: 3 kB / 0.7175 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003863/2.229, allocations: 300.9 kB / 0.7178 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/2.229, allocations: 8.562 kB / 0.7178 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/2.229, allocations: 1.469 kB / 0.7178 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008624/2.23, allocations: 161.7 kB / 0.7179 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.32e-05/2.23, allocations: 8.906 kB / 0.718 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003662/2.231, allocations: 0.6345 MB / 0.7186 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/2.231, allocations: 28.67 kB / 0.7186 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/2.231, allocations: 2.906 kB / 0.7186 GB, free: 210.5 MB / 0.5919 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 9.231e-05/2.231, allocations: 147.5 kB / 0.7187 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.862e-05/2.231, allocations: 25.55 kB / 0.7188 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005884/2.232, allocations: 0.6024 MB / 0.7194 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003097/2.232, allocations: 225.8 kB / 0.7196 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/2.232, allocations: 4 kB / 0.7196 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/2.232, allocations: 0 / 0.7196 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007514/2.233, allocations: 0.729 MB / 0.7203 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/2.233, allocations: 0.8438 kB / 0.7203 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.203e-05/2.233, allocations: 21.44 kB / 0.7203 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003276/2.233, allocations: 107.8 kB / 0.7204 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/2.233, allocations: 8.344 kB / 0.7204 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003139/2.233, allocations: 0.6532 MB / 0.7211 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/2.234, allocations: 0 / 0.7211 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003455/2.234, allocations: 348.3 kB / 0.7214 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.614e-05/2.234, allocations: 104 kB / 0.7215 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.853e-05/2.234, allocations: 16.28 kB / 0.7215 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.641e-05/2.234, allocations: 6.656 kB / 0.7215 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.603e-05/2.234, allocations: 6.266 kB / 0.7215 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.782e-06/2.234, allocations: 6.344 kB / 0.7215 GB, free: 209 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001784/2.234, allocations: 237 kB / 0.7218 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.2e-07/2.234, allocations: 0 / 0.7218 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002745/2.237, allocations: 1.199 MB / 0.7229 GB, free: 208.9 MB / 0.5919 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.004772/2.242, allocations: 2.529 MB / 0.7254 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004888/2.242, allocations: 239.7 kB / 0.7256 GB, free: 208 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/2.242, allocations: 3.031 kB / 0.7256 GB, free: 208 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001829/2.243, allocations: 93.59 kB / 0.7257 GB, free: 208 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007339/2.243, allocations: 119.8 kB / 0.7258 GB, free: 208 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003249/2.247, allocations: 3.053 MB / 0.7288 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001714/2.247, allocations: 0.7681 MB / 0.7296 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.143e-05/2.247, allocations: 22.22 kB / 0.7296 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.872e-05/2.247, allocations: 88.45 kB / 0.7297 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of SimCode: time 3.51e-07/2.247, allocations: 2.75 kB / 0.7297 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07357/2.321, allocations: 47.72 MB / 0.7763 GB, free: 171.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.63/15.95, allocations: 10.61 kB / 0.7763 GB, free: 171.3 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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_Book_SimpleExamples_PressureLoss_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)