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.9724/0.9724, allocations: 150.9 MB / 166.5 MB, free: 14.34 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005148/0.000515, allocations: 16.75 kB / 236.6 MB, free: 1.984 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05816/0.05869, allocations: 31.35 MB / 268 MB, free: 7.52 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.752/1.811, allocations: 295.4 MB / 0.5502 GB, free: 12.62 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04866/1.86, allocations: 35.08 MB / 0.5844 GB, free: 9.406 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005713/1.861, allocations: 4 kB / 0.5844 GB, free: 9.402 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.001075/1.862, allocations: 263 kB / 0.5847 GB, free: 9.145 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006888/1.862, allocations: 262.8 kB / 0.5849 GB, free: 8.887 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.03048/1.893, allocations: 9.817 MB / 0.5945 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008477/1.894, allocations: 0.491 MB / 0.595 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000304/1.894, allocations: 192.4 kB / 0.5952 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003576/1.894, allocations: 235.1 kB / 0.5954 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003625/1.895, allocations: 295.1 kB / 0.5957 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.074e-05/1.895, allocations: 24 kB / 0.5957 GB, free: 13.83 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03407/1.929, allocations: 18.04 MB / 0.6133 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002417/1.929, allocations: 175.4 kB / 0.6135 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003325/1.93, allocations: 282.2 kB / 0.6138 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02397/1.953, allocations: 8.874 MB / 0.6224 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/1.954, allocations: 4 kB / 0.6224 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.274e-06/1.954, allocations: 0 / 0.6224 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.122e-05/1.954, allocations: 0 / 0.6224 GB, free: 2.414 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.005124/1.959, allocations: 1.887 MB / 0.6243 GB, free: 480 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/1.959, allocations: 8.031 kB / 0.6243 GB, free: 472 kB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.966e-05/1.959, allocations: 66.53 kB / 0.6244 GB, free: 396 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/1.959, allocations: 71.53 kB / 0.6244 GB, free: 324 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006489/1.96, allocations: 0.4949 MB / 0.6249 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/1.96, allocations: 20.5 kB / 0.6249 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.113e-05/1.96, allocations: 31.88 kB / 0.625 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006345/1.96, allocations: 433.3 kB / 0.6254 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/1.96, allocations: 4 kB / 0.6254 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.515e-05/1.96, allocations: 4 kB / 0.6254 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.114e-05/1.96, allocations: 15.98 kB / 0.6254 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004851/1.961, allocations: 345.7 kB / 0.6257 GB, free: 14.91 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.04185/2.003, allocations: 18.71 MB / 0.644 GB, free: 10.32 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005908/2.003, allocations: 178.5 kB / 0.6442 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/2.004, allocations: 104.8 kB / 0.6443 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3556/2.359, allocations: 77.91 MB / 0.7204 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/2.359, allocations: 32.19 kB / 0.7204 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 2.585e-06/2.359, allocations: 1.031 kB / 0.7204 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.001741/2.361, allocations: 0.5988 MB / 0.721 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/2.361, allocations: 107.5 kB / 0.7211 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001008/2.362, allocations: 1.009 MB / 0.7221 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/2.362, allocations: 26.83 kB / 0.7221 GB, free: 209 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001849/2.362, allocations: 310.4 kB / 0.7224 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.482e-05/2.362, allocations: 128.8 kB / 0.7225 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.889e-05/2.362, allocations: 66.69 kB / 0.7226 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.567e-05/2.363, allocations: 386.9 kB / 0.7229 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/2.363, allocations: 154 kB / 0.7231 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001957/2.363, allocations: 239 kB / 0.7233 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000321/2.363, allocations: 333.1 kB / 0.7236 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/2.363, allocations: 0 / 0.7236 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006243/2.364, allocations: 0.5371 MB / 0.7242 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/2.364, allocations: 9.438 kB / 0.7242 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/2.364, allocations: 3.656 kB / 0.7242 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001555/2.365, allocations: 229.4 kB / 0.7244 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.032e-05/2.366, allocations: 19.78 kB / 0.7244 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005501/2.366, allocations: 0.681 MB / 0.7251 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002243/2.366, allocations: 42.89 kB / 0.7251 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/2.366, allocations: 5.406 kB / 0.7251 GB, free: 207.7 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.0002488/2.367, allocations: 259.4 kB / 0.7254 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.335e-05/2.367, allocations: 69.66 kB / 0.7254 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007196/2.367, allocations: 0.696 MB / 0.7261 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003227/2.368, allocations: 248.3 kB / 0.7263 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/2.368, allocations: 1.5 kB / 0.7263 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/2.368, allocations: 2.578 kB / 0.7263 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0011/2.369, allocations: 0.9801 MB / 0.7273 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/2.369, allocations: 1.125 kB / 0.7273 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.165e-05/2.369, allocations: 24.58 kB / 0.7273 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008232/2.37, allocations: 176 kB / 0.7275 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/2.37, allocations: 9.203 kB / 0.7275 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004683/2.37, allocations: 0.6934 MB / 0.7282 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/2.37, allocations: 4.062 kB / 0.7282 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004264/2.371, allocations: 424.7 kB / 0.7286 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/2.371, allocations: 180.7 kB / 0.7288 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.229e-05/2.371, allocations: 9.969 kB / 0.7288 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001842/2.371, allocations: 12.48 kB / 0.7288 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.046e-05/2.371, allocations: 16.92 kB / 0.7288 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/2.371, allocations: 7.625 kB / 0.7288 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0008314/2.372, allocations: 0.8088 MB / 0.7296 GB, free: 206 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.31e-07/2.372, allocations: 2.844 kB / 0.7296 GB, free: 206 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003721/2.376, allocations: 1.272 MB / 0.7308 GB, free: 206 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.007155/2.383, allocations: 2.651 MB / 0.7334 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000895/2.384, allocations: 361.4 kB / 0.7338 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/2.384, allocations: 0 / 0.7338 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002775/2.384, allocations: 119.5 kB / 0.7339 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009871/2.385, allocations: 146.3 kB / 0.734 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00868/2.394, allocations: 6.155 MB / 0.74 GB, free: 203.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/2.394, allocations: 0.9374 MB / 0.741 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001953/2.395, allocations: 62.05 kB / 0.741 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002112/2.395, allocations: 233.7 kB / 0.7412 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of SimCode: time 9.62e-07/2.395, allocations: 0 / 0.7412 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08391/2.479, allocations: 54.26 MB / 0.7942 GB, free: 154 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.49/17.97, allocations: 12.92 kB / 0.7942 GB, free: 154 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)