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.8199/0.8199, allocations: 150.9 MB / 167.1 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003512/0.0003516, allocations: 15.97 kB / 206 MB, free: 8.992 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1375, allocations: 31.32 MB / 237.3 MB, free: 5.746 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.595/1.733, allocations: 294.6 MB / 0.5195 GB, free: 12.77 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4629/2.196, allocations: 190.5 MB / 0.7055 GB, free: 2.234 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002967/2.196, allocations: 9.969 kB / 0.7055 GB, free: 2.234 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.0004027/2.196, allocations: 203.5 kB / 0.7057 GB, free: 2.234 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005122/2.197, allocations: 279.2 kB / 0.706 GB, free: 2.234 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.02757/2.225, allocations: 12.29 MB / 0.718 GB, free: 2.074 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000726/2.225, allocations: 0.5351 MB / 0.7185 GB, free: 2.074 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003024/2.226, allocations: 281.8 kB / 0.7187 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002601/2.226, allocations: 251.1 kB / 0.719 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003181/2.226, allocations: 352.7 kB / 0.7193 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.918e-05/2.226, allocations: 43.41 kB / 0.7194 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03585/2.262, allocations: 21.08 MB / 0.7399 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002403/2.262, allocations: 199.6 kB / 0.7401 GB, free: 1.879 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003349/2.263, allocations: 325.1 kB / 0.7404 GB, free: 1.859 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02163/2.284, allocations: 10.75 MB / 0.7509 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/2.284, allocations: 1.75 kB / 0.7509 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.563e-06/2.284, allocations: 0 / 0.7509 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.658e-06/2.284, allocations: 1.062 kB / 0.7509 GB, free: 13.99 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.004905/2.289, allocations: 2.238 MB / 0.7531 GB, free: 12.56 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/2.289, allocations: 8.469 kB / 0.7531 GB, free: 12.56 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/2.29, allocations: 81.56 kB / 0.7532 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006709/2.29, allocations: 0.5568 MB / 0.7538 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/2.29, allocations: 28.62 kB / 0.7538 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.446e-05/2.29, allocations: 39.94 kB / 0.7538 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006014/2.291, allocations: 489.7 kB / 0.7543 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/2.291, allocations: 2.281 kB / 0.7543 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/2.291, allocations: 17.78 kB / 0.7543 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/2.291, allocations: 10.25 kB / 0.7543 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005266/2.292, allocations: 416.7 kB / 0.7547 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008472/2.3, allocations: 6.701 MB / 0.7613 GB, free: 6.648 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004996/2.301, allocations: 118 kB / 0.7614 GB, free: 6.609 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.06e-05/2.301, allocations: 44.78 kB / 0.7614 GB, free: 6.598 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2928/2.593, allocations: 155.6 MB / 0.9134 GB, free: 0.7539 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.223e-05/2.594, allocations: 31.77 kB / 0.9134 GB, free: 0.7148 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 2.054e-06/2.594, allocations: 4 kB / 0.9134 GB, free: 0.7109 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.0023/2.596, allocations: 466.7 kB / 0.9139 GB, free: 284 kB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.396e-05/2.596, allocations: 109.9 kB / 0.914 GB, free: 152 kB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001795/2.598, allocations: 1.069 MB / 0.915 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/2.598, allocations: 27.83 kB / 0.9151 GB, free: 15.3 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003112/2.598, allocations: 384.9 kB / 0.9154 GB, free: 15.05 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 3.867e-05/2.598, allocations: 44.34 kB / 0.9155 GB, free: 15.02 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001196/2.598, allocations: 75.52 kB / 0.9156 GB, free: 14.96 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001787/2.598, allocations: 386.4 kB / 0.9159 GB, free: 14.6 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/2.599, allocations: 128.9 kB / 0.916 GB, free: 14.51 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002738/2.599, allocations: 262.1 kB / 0.9163 GB, free: 14.24 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003701/2.599, allocations: 321.5 kB / 0.9166 GB, free: 13.96 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.227e-06/2.599, allocations: 0 / 0.9166 GB, free: 13.96 MB / 0.7637 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001401/2.601, allocations: 0.5582 MB / 0.9171 GB, free: 13.52 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/2.601, allocations: 4 kB / 0.9171 GB, free: 13.52 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/2.601, allocations: 4.469 kB / 0.9172 GB, free: 13.51 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/2.602, allocations: 211.9 kB / 0.9174 GB, free: 13.32 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/2.602, allocations: 45.64 kB / 0.9174 GB, free: 13.29 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005513/2.603, allocations: 0.6255 MB / 0.918 GB, free: 12.68 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002784/2.603, allocations: 50.2 kB / 0.9181 GB, free: 12.64 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.46e-05/2.603, allocations: 12 kB / 0.9181 GB, free: 12.62 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.0004307/2.604, allocations: 273.9 kB / 0.9183 GB, free: 12.41 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/2.604, allocations: 67 kB / 0.9184 GB, free: 12.34 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006608/2.605, allocations: 255.6 kB / 0.9186 GB, free: 12.14 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/2.605, allocations: 8 kB / 0.9186 GB, free: 12.13 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/2.605, allocations: 0 / 0.9186 GB, free: 12.13 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.394e-05/2.605, allocations: 9.016 kB / 0.9187 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001854/2.606, allocations: 0.834 MB / 0.9195 GB, free: 11.39 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/2.606, allocations: 0 / 0.9195 GB, free: 11.39 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.305e-05/2.607, allocations: 4 kB / 0.9195 GB, free: 11.39 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001029/2.608, allocations: 164.1 kB / 0.9196 GB, free: 11.24 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/2.608, allocations: 4 kB / 0.9196 GB, free: 11.24 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005362/2.608, allocations: 0.6323 MB / 0.9202 GB, free: 10.62 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/2.608, allocations: 3.984 kB / 0.9203 GB, free: 10.62 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/2.609, allocations: 402.8 kB / 0.9206 GB, free: 10.25 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002313/2.61, allocations: 175.4 kB / 0.9208 GB, free: 10.07 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.148e-05/2.61, allocations: 6.75 kB / 0.9208 GB, free: 10.07 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/2.61, allocations: 5.203 kB / 0.9208 GB, free: 10.07 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.81e-05/2.61, allocations: 7.984 kB / 0.9208 GB, free: 10.06 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/2.61, allocations: 7.625 kB / 0.9208 GB, free: 10.05 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0008662/2.611, allocations: 0.7791 MB / 0.9216 GB, free: 9.387 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.5e-07/2.611, allocations: 4 kB / 0.9216 GB, free: 9.383 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.00488/2.616, allocations: 1.643 MB / 0.9232 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.006955/2.623, allocations: 2.511 MB / 0.9257 GB, free: 5.52 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0006135/2.623, allocations: 246.4 kB / 0.9259 GB, free: 5.293 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/2.623, allocations: 0 / 0.9259 GB, free: 5.293 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001758/2.623, allocations: 57.03 kB / 0.9259 GB, free: 5.238 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005883/2.624, allocations: 93.34 kB / 0.926 GB, free: 5.156 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/2.626, allocations: 1.046 MB / 0.9271 GB, free: 4.078 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005196/2.626, allocations: 0.9319 MB / 0.928 GB, free: 3.125 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001788/2.626, allocations: 68.39 kB / 0.928 GB, free: 3.059 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.042e-05/2.627, allocations: 39.42 kB / 0.9281 GB, free: 3.02 MB / 0.7637 GB Notification: Performance of SimCode: time 3.01e-07/2.627, allocations: 1.094 kB / 0.9281 GB, free: 3.02 MB / 0.7637 GB Notification: Performance of Templates: time 0.2256/2.852, allocations: 51.45 MB / 0.9783 GB, free: 456.2 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 cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)