Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.829/0.829, allocations: 150.9 MB / 167.1 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003319/0.000332, allocations: 15.98 kB / 206 MB, free: 9.047 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1523, allocations: 31.32 MB / 237.3 MB, free: 5.711 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.Fluid.Examples.SimpleExamples.TestBend): time 1.648/1.801, allocations: 294.7 MB / 0.5195 GB, free: 12.77 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4959/2.297, allocations: 190.5 MB / 0.7056 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003847/2.297, allocations: 8.312 kB / 0.7056 GB, free: 2.285 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Bend.mo:57:3-58:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Bend.mo:59:3-60:67:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.00049/2.297, allocations: 206.2 kB / 0.7058 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006644/2.298, allocations: 277.3 kB / 0.706 GB, free: 2.285 MB / 0.5762 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.03332/2.331, allocations: 12.29 MB / 0.718 GB, free: 2.129 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007865/2.332, allocations: 0.5322 MB / 0.7185 GB, free: 2.129 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000308/2.333, allocations: 280.9 kB / 0.7188 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002711/2.333, allocations: 252.5 kB / 0.7191 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003076/2.333, allocations: 352.4 kB / 0.7194 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.079e-05/2.333, allocations: 41.75 kB / 0.7194 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03918/2.372, allocations: 21.08 MB / 0.74 GB, free: 1.957 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003379/2.373, allocations: 203.5 kB / 0.7402 GB, free: 1.922 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004728/2.373, allocations: 322.9 kB / 0.7405 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0277/2.401, allocations: 10.77 MB / 0.751 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/2.401, allocations: 1.188 kB / 0.751 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.345e-06/2.401, allocations: 0 / 0.751 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.059e-05/2.401, allocations: 2.125 kB / 0.751 GB, free: 14.08 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.006148/2.407, allocations: 2.234 MB / 0.7532 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/2.407, allocations: 10.78 kB / 0.7532 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/2.407, allocations: 81.39 kB / 0.7533 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007199/2.408, allocations: 0.5578 MB / 0.7538 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/2.408, allocations: 28.75 kB / 0.7539 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.654e-05/2.408, allocations: 42.73 kB / 0.7539 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006309/2.409, allocations: 492.4 kB / 0.7544 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/2.409, allocations: 0 / 0.7544 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.493e-05/2.409, allocations: 19.56 kB / 0.7544 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/2.409, allocations: 11.89 kB / 0.7544 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005213/2.41, allocations: 413.7 kB / 0.7548 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009209/2.419, allocations: 6.693 MB / 0.7613 GB, free: 6.734 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000552/2.419, allocations: 118.9 kB / 0.7615 GB, free: 6.695 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.106e-05/2.419, allocations: 44.45 kB / 0.7615 GB, free: 6.684 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.324/2.743, allocations: 155.6 MB / 0.9135 GB, free: 0.8594 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.509e-05/2.744, allocations: 37.25 kB / 0.9135 GB, free: 0.8164 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 4.699e-06/2.744, allocations: 0 / 0.9135 GB, free: 0.8164 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.003343/2.747, allocations: 475.7 kB / 0.914 GB, free: 384 kB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.359e-05/2.747, allocations: 102.8 kB / 0.9141 GB, free: 256 kB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002028/2.749, allocations: 1.066 MB / 0.9151 GB, free: 15.44 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/2.749, allocations: 28.14 kB / 0.9152 GB, free: 15.41 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004099/2.75, allocations: 391.1 kB / 0.9155 GB, free: 15.16 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 4.936e-05/2.75, allocations: 40.33 kB / 0.9156 GB, free: 15.13 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/2.75, allocations: 75.39 kB / 0.9156 GB, free: 15.07 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0002171/2.75, allocations: 388.3 kB / 0.916 GB, free: 14.71 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003015/2.75, allocations: 127.6 kB / 0.9161 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004283/2.751, allocations: 261.9 kB / 0.9164 GB, free: 14.35 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000575/2.751, allocations: 323.4 kB / 0.9167 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/2.751, allocations: 0 / 0.9167 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002088/2.753, allocations: 0.5652 MB / 0.9172 GB, free: 13.62 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/2.754, allocations: 8 kB / 0.9172 GB, free: 13.62 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/2.754, allocations: 4.375 kB / 0.9173 GB, free: 13.61 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002318/2.756, allocations: 193.2 kB / 0.9174 GB, free: 13.44 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002612/2.756, allocations: 47.08 kB / 0.9175 GB, free: 13.39 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000829/2.757, allocations: 0.63 MB / 0.9181 GB, free: 12.79 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004641/2.757, allocations: 41.91 kB / 0.9181 GB, free: 12.75 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.719e-05/2.757, allocations: 19.38 kB / 0.9182 GB, free: 12.73 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,SinkP1.fluid,Bend.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Bend.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003191/2.758, allocations: 269.5 kB / 0.9184 GB, free: 12.52 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/2.758, allocations: 63.16 kB / 0.9185 GB, free: 12.45 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007063/2.759, allocations: 264.5 kB / 0.9187 GB, free: 12.24 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/2.759, allocations: 1.094 kB / 0.9187 GB, free: 12.24 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/2.759, allocations: 0 / 0.9187 GB, free: 12.24 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/2.759, allocations: 3.938 kB / 0.9187 GB, free: 12.24 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001803/2.76, allocations: 0.8392 MB / 0.9195 GB, free: 11.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/2.761, allocations: 0 / 0.9195 GB, free: 11.5 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.325e-05/2.761, allocations: 7.984 kB / 0.9196 GB, free: 11.49 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001059/2.762, allocations: 158.2 kB / 0.9197 GB, free: 11.35 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/2.762, allocations: 7.609 kB / 0.9197 GB, free: 11.35 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005035/2.762, allocations: 0.6295 MB / 0.9203 GB, free: 10.74 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/2.762, allocations: 5.156 kB / 0.9203 GB, free: 10.73 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/2.763, allocations: 414.3 kB / 0.9207 GB, free: 10.35 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002204/2.764, allocations: 169.7 kB / 0.9209 GB, free: 10.18 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.03e-05/2.764, allocations: 5 kB / 0.9209 GB, free: 10.18 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/2.764, allocations: 10.05 kB / 0.9209 GB, free: 10.17 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.547e-05/2.764, allocations: 5.875 kB / 0.9209 GB, free: 10.16 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/2.764, allocations: 7.984 kB / 0.9209 GB, free: 10.16 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0008464/2.765, allocations: 0.7794 MB / 0.9217 GB, free: 9.387 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.7e-07/2.765, allocations: 0 / 0.9217 GB, free: 9.387 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004648/2.77, allocations: 1.647 MB / 0.9233 GB, free: 7.738 MB / 0.7637 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 (3): * Single equations (assignments): 2 * 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.006313/2.776, allocations: 2.496 MB / 0.9257 GB, free: 5.535 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0005913/2.776, allocations: 248.3 kB / 0.926 GB, free: 5.309 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/2.776, allocations: 0 / 0.926 GB, free: 5.309 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001706/2.777, allocations: 55.83 kB / 0.926 GB, free: 5.254 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005991/2.777, allocations: 102.9 kB / 0.9261 GB, free: 5.16 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/2.779, allocations: 1.043 MB / 0.9271 GB, free: 4.086 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000475/2.779, allocations: 0.9334 MB / 0.928 GB, free: 3.129 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001678/2.779, allocations: 75.38 kB / 0.9281 GB, free: 3.059 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.002e-05/2.78, allocations: 35.44 kB / 0.9281 GB, free: 3.023 MB / 0.7637 GB Notification: Performance of SimCode: time 2.1e-07/2.78, allocations: 0 / 0.9281 GB, free: 3.023 MB / 0.7637 GB Notification: Performance of Templates: time 0.2451/3.025, allocations: 51.44 MB / 0.9784 GB, free: 455.9 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe 2>&1)