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: translateModel(ThermoSysPro.Examples.SimpleExamples.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend") translateModel(ThermoSysPro.Examples.SimpleExamples.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.84/0.84, allocations: 150.9 MB / 166.5 MB, free: 14.34 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003661, allocations: 16.89 kB / 237.1 MB, free: 1.789 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05644/0.05682, allocations: 31.35 MB / 268.5 MB, free: 7.031 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.621/1.678, allocations: 294.9 MB / 0.5502 GB, free: 12.91 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03957/1.717, allocations: 35.1 MB / 0.5844 GB, free: 9.668 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002345/1.718, allocations: 4 kB / 0.5845 GB, free: 9.664 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.0005381/1.718, allocations: 269.1 kB / 0.5847 GB, free: 9.402 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003358/1.719, allocations: 258.8 kB / 0.585 GB, free: 9.148 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.02452/1.743, allocations: 9.824 MB / 0.5945 GB, free: 15.31 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007182/1.744, allocations: 0.4948 MB / 0.595 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002598/1.744, allocations: 176.5 kB / 0.5952 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003049/1.744, allocations: 231.1 kB / 0.5954 GB, free: 14.42 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003264/1.745, allocations: 299.1 kB / 0.5957 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.433e-05/1.745, allocations: 24 kB / 0.5957 GB, free: 14.1 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02989/1.775, allocations: 18.04 MB / 0.6133 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002188/1.775, allocations: 179.4 kB / 0.6135 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002891/1.775, allocations: 274.2 kB / 0.6138 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01824/1.793, allocations: 8.878 MB / 0.6225 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/1.793, allocations: 4 kB / 0.6225 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.004e-06/1.793, allocations: 0 / 0.6225 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.843e-05/1.794, allocations: 0 / 0.6225 GB, free: 2.684 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.00504/1.799, allocations: 1.882 MB / 0.6243 GB, free: 0.7422 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/1.799, allocations: 12.03 kB / 0.6243 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000124/1.799, allocations: 71.53 kB / 0.6244 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005855/1.799, allocations: 0.491 MB / 0.6249 GB, free: 128 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/1.799, allocations: 24.5 kB / 0.6249 GB, free: 104 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.843e-05/1.799, allocations: 27.98 kB / 0.6249 GB, free: 76 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005958/1.8, allocations: 441.2 kB / 0.6253 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/1.8, allocations: 0 / 0.6253 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/1.8, allocations: 12 kB / 0.6253 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/1.8, allocations: 11.98 kB / 0.6253 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004368/1.801, allocations: 337.7 kB / 0.6257 GB, free: 15.25 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.03955/1.84, allocations: 18.7 MB / 0.6439 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005818/1.841, allocations: 178.6 kB / 0.6441 GB, free: 10.49 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/1.841, allocations: 100.8 kB / 0.6442 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3336/2.174, allocations: 77.92 MB / 0.7203 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/2.175, allocations: 34.45 kB / 0.7203 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 2.835e-06/2.175, allocations: 4 kB / 0.7203 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.001672/2.176, allocations: 0.5878 MB / 0.7209 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/2.176, allocations: 108.7 kB / 0.721 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001093/2.177, allocations: 1.006 MB / 0.722 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/2.177, allocations: 28.58 kB / 0.722 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/2.178, allocations: 310.8 kB / 0.7223 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.379e-05/2.178, allocations: 131 kB / 0.7224 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.507e-05/2.178, allocations: 64.81 kB / 0.7225 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.839e-05/2.178, allocations: 386.7 kB / 0.7229 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/2.178, allocations: 155.3 kB / 0.723 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002077/2.178, allocations: 235.8 kB / 0.7232 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003161/2.179, allocations: 338.5 kB / 0.7236 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/2.179, allocations: 0 / 0.7236 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006326/2.179, allocations: 0.5296 MB / 0.7241 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/2.179, allocations: 7.781 kB / 0.7241 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/2.179, allocations: 10.58 kB / 0.7241 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001524/2.181, allocations: 225.4 kB / 0.7243 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.099e-05/2.181, allocations: 21.09 kB / 0.7243 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005334/2.181, allocations: 0.6806 MB / 0.725 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/2.182, allocations: 41.33 kB / 0.725 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.05e-05/2.182, allocations: 10.06 kB / 0.7251 GB, free: 208.1 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.0001972/2.182, allocations: 258.3 kB / 0.7253 GB, free: 208 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.041e-05/2.182, allocations: 65.22 kB / 0.7254 GB, free: 208 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006602/2.183, allocations: 0.7003 MB / 0.726 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002986/2.183, allocations: 247.6 kB / 0.7263 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/2.183, allocations: 0.5156 kB / 0.7263 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/2.183, allocations: 0 / 0.7263 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/2.184, allocations: 0.9873 MB / 0.7272 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/2.184, allocations: 0 / 0.7272 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.199e-05/2.184, allocations: 13.72 kB / 0.7273 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008618/2.185, allocations: 186.3 kB / 0.7274 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/2.185, allocations: 1.312 kB / 0.7274 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004545/2.185, allocations: 0.7001 MB / 0.7281 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/2.186, allocations: 4.062 kB / 0.7281 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004018/2.186, allocations: 423.4 kB / 0.7285 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001469/2.186, allocations: 179.9 kB / 0.7287 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.549e-05/2.186, allocations: 15.58 kB / 0.7287 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/2.186, allocations: 9.203 kB / 0.7287 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.015e-05/2.186, allocations: 18.73 kB / 0.7287 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.779e-06/2.186, allocations: 2.812 kB / 0.7287 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007679/2.187, allocations: 0.8112 MB / 0.7295 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.2e-07/2.187, allocations: 3.5 kB / 0.7295 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002666/2.19, allocations: 1.268 MB / 0.7308 GB, free: 206.4 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.005062/2.195, allocations: 1.804 MB / 0.7325 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006634/2.196, allocations: 358.3 kB / 0.7329 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/2.196, allocations: 0 / 0.7329 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002817/2.196, allocations: 109.8 kB / 0.733 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008255/2.197, allocations: 156.2 kB / 0.7331 GB, free: 206 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/2.198, allocations: 1.126 MB / 0.7342 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/2.198, allocations: 0.9349 MB / 0.7351 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001452/2.199, allocations: 60.08 kB / 0.7352 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.793e-05/2.199, allocations: 35.69 kB / 0.7352 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of SimCode: time 3.11e-07/2.199, allocations: 0 / 0.7352 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of Templates: time 0.04908/2.248, allocations: 45.66 MB / 0.7798 GB, free: 168 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.makefile (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 & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe 2>&1)