Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.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.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8356/0.8356, allocations: 150.9 MB / 167.1 MB, free: 14.56 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003121/0.0003121, allocations: 11.97 kB / 206 MB, free: 9.055 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1333, allocations: 31.33 MB / 237.3 MB, free: 5.992 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.Book.SimpleExamples.PressureLoss.TestBend): time 1.6/1.733, allocations: 294.6 MB / 0.5195 GB, free: 13.27 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4468/2.18, allocations: 190.5 MB / 0.7055 GB, free: 2.105 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003491/2.18, allocations: 8.375 kB / 0.7055 GB, free: 2.105 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.0004025/2.181, allocations: 208.7 kB / 0.7057 GB, free: 2.105 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000453/2.181, allocations: 274.5 kB / 0.706 GB, free: 2.105 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.0273/2.208, allocations: 12.29 MB / 0.718 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006148/2.209, allocations: 0.5378 MB / 0.7185 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002745/2.209, allocations: 279 kB / 0.7187 GB, free: 1.918 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002487/2.21, allocations: 252 kB / 0.719 GB, free: 1.918 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000287/2.21, allocations: 354.6 kB / 0.7193 GB, free: 1.918 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.845e-05/2.21, allocations: 46.36 kB / 0.7194 GB, free: 1.918 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03189/2.242, allocations: 21.07 MB / 0.7399 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002491/2.242, allocations: 209.7 kB / 0.7401 GB, free: 1.797 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003558/2.242, allocations: 316.9 kB / 0.7404 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02269/2.265, allocations: 10.81 MB / 0.751 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/2.265, allocations: 0.9062 kB / 0.751 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.523e-06/2.265, allocations: 0 / 0.751 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.978e-06/2.265, allocations: 0 / 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.005339/2.271, allocations: 2.243 MB / 0.7532 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/2.271, allocations: 8.562 kB / 0.7532 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/2.271, allocations: 82.27 kB / 0.7533 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007291/2.272, allocations: 0.5548 MB / 0.7538 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/2.272, allocations: 25.03 kB / 0.7538 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.716e-05/2.272, allocations: 41.03 kB / 0.7539 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006356/2.272, allocations: 494 kB / 0.7544 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/2.272, allocations: 0 / 0.7544 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.725e-05/2.272, allocations: 19.44 kB / 0.7544 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/2.272, allocations: 12.56 kB / 0.7544 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005432/2.273, allocations: 414.3 kB / 0.7548 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008729/2.282, allocations: 6.694 MB / 0.7613 GB, free: 6.742 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005342/2.282, allocations: 127.3 kB / 0.7614 GB, free: 6.699 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.593e-05/2.282, allocations: 39.55 kB / 0.7615 GB, free: 6.688 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3098/2.592, allocations: 155.6 MB / 0.9135 GB, free: 0.9492 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/2.592, allocations: 32.62 kB / 0.9135 GB, free: 0.9102 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 2.444e-06/2.592, allocations: 0 / 0.9135 GB, free: 0.9102 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002174/2.594, allocations: 478.3 kB / 0.914 GB, free: 476 kB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/2.594, allocations: 106.8 kB / 0.9141 GB, free: 344 kB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001283/2.596, allocations: 1.066 MB / 0.9151 GB, free: 15.53 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/2.596, allocations: 26.8 kB / 0.9151 GB, free: 15.5 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002604/2.596, allocations: 392.2 kB / 0.9155 GB, free: 15.24 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.931e-05/2.596, allocations: 41.09 kB / 0.9155 GB, free: 15.21 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/2.596, allocations: 83.61 kB / 0.9156 GB, free: 15.14 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001479/2.596, allocations: 383.8 kB / 0.916 GB, free: 14.79 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/2.597, allocations: 123.9 kB / 0.9161 GB, free: 14.7 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002677/2.597, allocations: 259 kB / 0.9164 GB, free: 14.43 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003756/2.597, allocations: 317.9 kB / 0.9167 GB, free: 14.16 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/2.597, allocations: 4 kB / 0.9167 GB, free: 14.15 MB / 0.7637 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001337/2.599, allocations: 0.5592 MB / 0.9172 GB, free: 13.71 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/2.599, allocations: 8.031 kB / 0.9172 GB, free: 13.71 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/2.599, allocations: 4 kB / 0.9172 GB, free: 13.7 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001566/2.6, allocations: 195.9 kB / 0.9174 GB, free: 13.52 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/2.6, allocations: 50.69 kB / 0.9175 GB, free: 13.48 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005673/2.601, allocations: 0.6316 MB / 0.9181 GB, free: 12.87 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002831/2.601, allocations: 52.61 kB / 0.9181 GB, free: 12.82 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/2.601, allocations: 14.06 kB / 0.9181 GB, free: 12.81 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.0002703/2.602, allocations: 266.5 kB / 0.9184 GB, free: 12.6 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.911e-05/2.602, allocations: 63.16 kB / 0.9185 GB, free: 12.54 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006797/2.602, allocations: 266.1 kB / 0.9187 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/2.602, allocations: 4 kB / 0.9187 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/2.602, allocations: 0 / 0.9187 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/2.602, allocations: 3.938 kB / 0.9187 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001806/2.604, allocations: 0.8345 MB / 0.9195 GB, free: 11.58 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-06/2.604, allocations: 0 / 0.9195 GB, free: 11.58 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.173e-05/2.604, allocations: 4 kB / 0.9195 GB, free: 11.58 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/2.605, allocations: 162 kB / 0.9197 GB, free: 11.43 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/2.605, allocations: 6.438 kB / 0.9197 GB, free: 11.43 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005046/2.606, allocations: 0.6352 MB / 0.9203 GB, free: 10.8 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/2.606, allocations: 0 / 0.9203 GB, free: 10.8 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001238/2.607, allocations: 408.6 kB / 0.9207 GB, free: 10.38 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002186/2.607, allocations: 174.5 kB / 0.9209 GB, free: 10.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.163e-05/2.607, allocations: 4 kB / 0.9209 GB, free: 10.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/2.608, allocations: 11.98 kB / 0.9209 GB, free: 10.18 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.008e-05/2.608, allocations: 7.984 kB / 0.9209 GB, free: 10.18 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/2.608, allocations: 12 kB / 0.9209 GB, free: 10.16 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.000854/2.608, allocations: 0.7763 MB / 0.9217 GB, free: 9.391 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.7e-07/2.608, allocations: 0 / 0.9217 GB, free: 9.391 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004361/2.613, allocations: 1.639 MB / 0.9233 GB, free: 7.75 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.007431/2.62, allocations: 2.499 MB / 0.9257 GB, free: 5.539 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0006595/2.621, allocations: 241.9 kB / 0.9259 GB, free: 5.316 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/2.621, allocations: 0 / 0.9259 GB, free: 5.316 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001728/2.621, allocations: 54.92 kB / 0.926 GB, free: 5.266 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006787/2.622, allocations: 111.9 kB / 0.9261 GB, free: 5.168 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/2.624, allocations: 1.037 MB / 0.9271 GB, free: 4.102 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/2.624, allocations: 0.9378 MB / 0.928 GB, free: 3.141 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001749/2.624, allocations: 72.23 kB / 0.9281 GB, free: 3.07 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.434e-05/2.624, allocations: 43.44 kB / 0.9281 GB, free: 3.027 MB / 0.7637 GB Notification: Performance of SimCode: time 3.01e-07/2.624, allocations: 0 / 0.9281 GB, free: 3.027 MB / 0.7637 GB Notification: Performance of Templates: time 0.2298/2.854, allocations: 51.45 MB / 0.9784 GB, free: 456.5 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)