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.8581/0.8581, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003825/0.0003825, allocations: 15.48 kB / 236.6 MB, free: 1.996 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07359/0.07399, allocations: 31.35 MB / 267.9 MB, free: 7.547 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.824/1.898, allocations: 295 MB / 0.5498 GB, free: 12.87 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04498/1.943, allocations: 35.08 MB / 0.584 GB, free: 9.645 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003313/1.943, allocations: 4 kB / 0.584 GB, free: 9.641 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.0007284/1.944, allocations: 291 kB / 0.5843 GB, free: 9.355 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005455/1.945, allocations: 278.9 kB / 0.5846 GB, free: 9.082 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.0264/1.971, allocations: 9.994 MB / 0.5943 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008023/1.972, allocations: 0.4949 MB / 0.5948 GB, free: 14.58 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002588/1.972, allocations: 176.5 kB / 0.595 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00029/1.972, allocations: 239.1 kB / 0.5952 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003031/1.973, allocations: 303 kB / 0.5955 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.631e-05/1.973, allocations: 24 kB / 0.5955 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03233/2.005, allocations: 18.04 MB / 0.6131 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000266/2.006, allocations: 179.4 kB / 0.6133 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003308/2.006, allocations: 278.2 kB / 0.6136 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02125/2.027, allocations: 8.871 MB / 0.6222 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/2.027, allocations: 4 kB / 0.6222 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.315e-06/2.027, allocations: 0 / 0.6222 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.153e-05/2.027, allocations: 0 / 0.6222 GB, free: 2.441 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.00499/2.032, allocations: 1.894 MB / 0.6241 GB, free: 500 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/2.032, allocations: 8.031 kB / 0.6241 GB, free: 492 kB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.326e-05/2.032, allocations: 74.45 kB / 0.6242 GB, free: 408 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/2.032, allocations: 71.53 kB / 0.6242 GB, free: 336 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005729/2.033, allocations: 0.4909 MB / 0.6247 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/2.033, allocations: 24.56 kB / 0.6247 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/2.033, allocations: 27.94 kB / 0.6248 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005464/2.034, allocations: 433.3 kB / 0.6252 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/2.034, allocations: 4 kB / 0.6252 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.287e-05/2.034, allocations: 8 kB / 0.6252 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.721e-05/2.034, allocations: 15.98 kB / 0.6252 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004123/2.034, allocations: 345.7 kB / 0.6255 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.03727/2.071, allocations: 18.69 MB / 0.6438 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006252/2.072, allocations: 178.6 kB / 0.644 GB, free: 10.17 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/2.072, allocations: 100.8 kB / 0.644 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3458/2.418, allocations: 77.92 MB / 0.7201 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/2.418, allocations: 39.56 kB / 0.7202 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 2.374e-06/2.418, allocations: 0 / 0.7202 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.001745/2.42, allocations: 0.5893 MB / 0.7208 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/2.42, allocations: 105.9 kB / 0.7209 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001223/2.421, allocations: 1.017 MB / 0.7218 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/2.421, allocations: 25.7 kB / 0.7219 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002102/2.421, allocations: 305.8 kB / 0.7222 GB, free: 209 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.942e-05/2.422, allocations: 130.3 kB / 0.7223 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.568e-05/2.422, allocations: 68.66 kB / 0.7224 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001035/2.422, allocations: 382.1 kB / 0.7227 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001735/2.422, allocations: 158.4 kB / 0.7229 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/2.422, allocations: 235 kB / 0.7231 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003264/2.423, allocations: 337.5 kB / 0.7234 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/2.423, allocations: 6.5 kB / 0.7234 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006933/2.423, allocations: 0.5323 MB / 0.7239 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/2.423, allocations: 7.219 kB / 0.7239 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/2.423, allocations: 0 / 0.7239 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/2.425, allocations: 226 kB / 0.7242 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.503e-05/2.425, allocations: 26.08 kB / 0.7242 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005435/2.425, allocations: 0.6784 MB / 0.7249 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000272/2.426, allocations: 49.25 kB / 0.7249 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.168e-05/2.426, allocations: 8.688 kB / 0.7249 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.0002501/2.426, allocations: 248.2 kB / 0.7251 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/2.426, allocations: 68.97 kB / 0.7252 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007614/2.427, allocations: 0.696 MB / 0.7259 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003115/2.427, allocations: 254.9 kB / 0.7261 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/2.427, allocations: 0 / 0.7261 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/2.427, allocations: 0 / 0.7261 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/2.428, allocations: 0.9853 MB / 0.7271 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/2.428, allocations: 1.125 kB / 0.7271 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.012e-05/2.429, allocations: 20.23 kB / 0.7271 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000814/2.429, allocations: 177 kB / 0.7273 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.814e-05/2.429, allocations: 7.75 kB / 0.7273 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004984/2.43, allocations: 0.7038 MB / 0.728 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/2.43, allocations: 0.5625 kB / 0.728 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004408/2.43, allocations: 419.1 kB / 0.7284 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001809/2.431, allocations: 179 kB / 0.7285 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.038e-05/2.431, allocations: 14.08 kB / 0.7286 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/2.431, allocations: 16.89 kB / 0.7286 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.095e-05/2.431, allocations: 11.5 kB / 0.7286 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/2.431, allocations: 13.08 kB / 0.7286 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0008706/2.432, allocations: 0.8092 MB / 0.7294 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.91e-07/2.432, allocations: 0 / 0.7294 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003213/2.435, allocations: 1.265 MB / 0.7306 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.006438/2.441, allocations: 2.655 MB / 0.7332 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008273/2.442, allocations: 360.6 kB / 0.7336 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/2.442, allocations: 0 / 0.7336 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002838/2.443, allocations: 114.8 kB / 0.7337 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.000997/2.444, allocations: 151.8 kB / 0.7338 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008787/2.452, allocations: 6.151 MB / 0.7398 GB, free: 203.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003895/2.453, allocations: 0.9356 MB / 0.7407 GB, free: 202.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001965/2.453, allocations: 68.17 kB / 0.7408 GB, free: 202.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002279/2.453, allocations: 231.8 kB / 0.741 GB, free: 202.5 MB / 0.5919 GB Notification: Performance of SimCode: time 1.032e-06/2.453, allocations: 0 / 0.741 GB, free: 202.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07997/2.533, allocations: 54.27 MB / 0.794 GB, free: 154.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.58/17.11, allocations: 11.92 kB / 0.794 GB, free: 154.3 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)