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.8533/0.8533, allocations: 150.9 MB / 166.4 MB, free: 14.23 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003225/0.0003226, allocations: 19.97 kB / 204.6 MB, free: 9.602 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.1558, allocations: 31.32 MB / 235.9 MB, free: 5.57 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.656/1.812, allocations: 294.8 MB / 0.5183 GB, free: 13.19 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.521/2.333, allocations: 190.5 MB / 0.7043 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003996/2.333, allocations: 8.406 kB / 0.7043 GB, free: 2.082 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.0004971/2.334, allocations: 208.2 kB / 0.7045 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006884/2.335, allocations: 274.2 kB / 0.7048 GB, free: 2.082 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.03233/2.367, allocations: 12.29 MB / 0.7168 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008269/2.368, allocations: 0.531 MB / 0.7173 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003877/2.368, allocations: 279.2 kB / 0.7176 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003651/2.369, allocations: 248.2 kB / 0.7178 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003488/2.369, allocations: 360.5 kB / 0.7181 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.82e-05/2.369, allocations: 42.44 kB / 0.7182 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03953/2.409, allocations: 20.81 MB / 0.7385 GB, free: 1.785 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003821/2.409, allocations: 206.8 kB / 0.7387 GB, free: 1.785 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004773/2.41, allocations: 327.7 kB / 0.739 GB, free: 1.785 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02982/2.439, allocations: 10.79 MB / 0.7495 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/2.439, allocations: 0.875 kB / 0.7495 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.073e-06/2.439, allocations: 0 / 0.7495 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.098e-05/2.439, allocations: 0 / 0.7495 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.00624/2.446, allocations: 2.239 MB / 0.7517 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/2.446, allocations: 10.12 kB / 0.7517 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001568/2.446, allocations: 82.47 kB / 0.7518 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006232/2.447, allocations: 0.5425 MB / 0.7524 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.216e-05/2.447, allocations: 27.69 kB / 0.7524 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.217e-05/2.447, allocations: 38 kB / 0.7524 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006448/2.447, allocations: 494.6 kB / 0.7529 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/2.447, allocations: 4.281 kB / 0.7529 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.446e-05/2.447, allocations: 18.53 kB / 0.7529 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/2.447, allocations: 11.38 kB / 0.7529 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005345/2.448, allocations: 414.3 kB / 0.7533 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009347/2.457, allocations: 6.709 MB / 0.7599 GB, free: 6.738 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000558/2.458, allocations: 121.1 kB / 0.76 GB, free: 6.695 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.823e-05/2.458, allocations: 51.23 kB / 0.76 GB, free: 6.68 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3232/2.781, allocations: 154.7 MB / 0.9111 GB, free: 1.867 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.972e-05/2.781, allocations: 32.94 kB / 0.9112 GB, free: 1.828 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 2.625e-06/2.781, allocations: 5.094 kB / 0.9112 GB, free: 1.824 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002701/2.784, allocations: 471.8 kB / 0.9116 GB, free: 1.391 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.082e-05/2.784, allocations: 106.8 kB / 0.9117 GB, free: 1.262 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001895/2.786, allocations: 1.068 MB / 0.9128 GB, free: 460 kB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/2.786, allocations: 27.58 kB / 0.9128 GB, free: 428 kB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003489/2.786, allocations: 380.7 kB / 0.9131 GB, free: 176 kB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.137e-05/2.787, allocations: 52.02 kB / 0.9132 GB, free: 136 kB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/2.787, allocations: 79.28 kB / 0.9133 GB, free: 76 kB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001888/2.787, allocations: 383.2 kB / 0.9136 GB, free: 15.72 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000204/2.787, allocations: 132 kB / 0.9138 GB, free: 15.62 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000295/2.787, allocations: 256.5 kB / 0.914 GB, free: 15.36 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004091/2.788, allocations: 318.1 kB / 0.9143 GB, free: 15.08 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.82e-06/2.788, allocations: 0 / 0.9143 GB, free: 15.08 MB / 0.7637 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001547/2.789, allocations: 0.5591 MB / 0.9149 GB, free: 14.64 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/2.789, allocations: 5.094 kB / 0.9149 GB, free: 14.64 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/2.789, allocations: 4 kB / 0.9149 GB, free: 14.63 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001602/2.791, allocations: 203.3 kB / 0.9151 GB, free: 14.45 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/2.791, allocations: 49.81 kB / 0.9151 GB, free: 14.4 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000597/2.792, allocations: 0.6275 MB / 0.9157 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004062/2.792, allocations: 46.77 kB / 0.9158 GB, free: 13.75 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.717e-05/2.792, allocations: 12 kB / 0.9158 GB, free: 13.74 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.0003438/2.793, allocations: 275.5 kB / 0.916 GB, free: 13.52 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001434/2.793, allocations: 63.16 kB / 0.9161 GB, free: 13.46 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007468/2.794, allocations: 257 kB / 0.9163 GB, free: 13.26 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/2.794, allocations: 4 kB / 0.9163 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/2.794, allocations: 0 / 0.9163 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/2.794, allocations: 3.938 kB / 0.9164 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001939/2.795, allocations: 0.842 MB / 0.9172 GB, free: 12.51 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.211e-06/2.796, allocations: 4 kB / 0.9172 GB, free: 12.51 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.337e-05/2.796, allocations: 4 kB / 0.9172 GB, free: 12.5 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/2.797, allocations: 174.3 kB / 0.9173 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/2.797, allocations: 0 / 0.9173 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005216/2.797, allocations: 0.6341 MB / 0.918 GB, free: 11.74 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/2.797, allocations: 0 / 0.918 GB, free: 11.74 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/2.799, allocations: 406.9 kB / 0.9184 GB, free: 11.36 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002294/2.799, allocations: 163.8 kB / 0.9185 GB, free: 11.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.857e-05/2.799, allocations: 10.06 kB / 0.9185 GB, free: 11.19 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/2.799, allocations: 11.86 kB / 0.9185 GB, free: 11.18 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.832e-05/2.799, allocations: 11.08 kB / 0.9185 GB, free: 11.17 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/2.799, allocations: 9.203 kB / 0.9186 GB, free: 11.16 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0009926/2.8, allocations: 0.7768 MB / 0.9193 GB, free: 10.54 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.6e-07/2.8, allocations: 0 / 0.9193 GB, free: 10.54 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.005132/2.805, allocations: 1.643 MB / 0.9209 GB, free: 8.891 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.009774/2.815, allocations: 2.507 MB / 0.9234 GB, free: 6.672 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0008449/2.816, allocations: 242 kB / 0.9236 GB, free: 6.449 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/2.816, allocations: 0 / 0.9236 GB, free: 6.449 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0002249/2.816, allocations: 59.02 kB / 0.9237 GB, free: 6.395 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009245/2.817, allocations: 103.6 kB / 0.9238 GB, free: 6.301 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/2.819, allocations: 1.056 MB / 0.9248 GB, free: 5.215 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005378/2.82, allocations: 0.9328 MB / 0.9257 GB, free: 4.258 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002609/2.82, allocations: 80.23 kB / 0.9258 GB, free: 4.18 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/2.82, allocations: 35.38 kB / 0.9258 GB, free: 4.145 MB / 0.7637 GB Notification: Performance of SimCode: time 1.512e-06/2.82, allocations: 0 / 0.9258 GB, free: 4.145 MB / 0.7637 GB Notification: Performance of Templates: time 0.07482/2.895, allocations: 51.5 MB / 0.9761 GB, free: 0.6953 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)