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.7999/0.7999, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003677/0.0003678, allocations: 13.8 kB / 237.8 MB, free: 1.957 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06505/0.06544, allocations: 31.35 MB / 269.1 MB, free: 7.176 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.Fluid.Examples.SimpleExamples.TestBend): time 1.67/1.736, allocations: 294.9 MB / 0.5508 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5924/2.328, allocations: 190.5 MB / 0.7368 GB, free: 1.762 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003945/2.329, allocations: 9.062 kB / 0.7368 GB, free: 1.762 MB / 0.5919 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.0004713/2.329, allocations: 203.3 kB / 0.737 GB, free: 1.762 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0005751/2.33, allocations: 279.9 kB / 0.7373 GB, free: 1.762 MB / 0.5919 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.03438/2.364, allocations: 12.28 MB / 0.7493 GB, free: 1.496 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0009453/2.365, allocations: 0.5376 MB / 0.7498 GB, free: 1.496 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005024/2.366, allocations: 271.2 kB / 0.7501 GB, free: 1.48 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004063/2.366, allocations: 257.5 kB / 0.7503 GB, free: 1.48 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003443/2.366, allocations: 354.3 kB / 0.7507 GB, free: 1.48 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.514e-05/2.366, allocations: 41.44 kB / 0.7507 GB, free: 1.48 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04019/2.407, allocations: 21.09 MB / 0.7713 GB, free: 0 / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004083/2.407, allocations: 209.8 kB / 0.7715 GB, free: 0 / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004729/2.408, allocations: 332.6 kB / 0.7718 GB, free: 0 / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02908/2.437, allocations: 10.76 MB / 0.7823 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/2.437, allocations: 0.9062 kB / 0.7823 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.296e-06/2.437, allocations: 0 / 0.7823 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.18e-05/2.437, allocations: 4.422 kB / 0.7823 GB, free: 12.14 MB / 0.6075 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.006216/2.443, allocations: 2.235 MB / 0.7845 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/2.443, allocations: 8.156 kB / 0.7845 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/2.443, allocations: 83.5 kB / 0.7846 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006916/2.444, allocations: 0.5495 MB / 0.7851 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.946e-05/2.444, allocations: 36.86 kB / 0.7852 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.384e-05/2.444, allocations: 39.64 kB / 0.7852 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006826/2.445, allocations: 492.5 kB / 0.7857 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/2.445, allocations: 0 / 0.7857 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.715e-05/2.445, allocations: 19.19 kB / 0.7857 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/2.445, allocations: 10.94 kB / 0.7857 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005368/2.445, allocations: 417.9 kB / 0.7861 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01018/2.456, allocations: 6.686 MB / 0.7926 GB, free: 4.797 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005939/2.456, allocations: 117.2 kB / 0.7927 GB, free: 4.758 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/2.456, allocations: 47.34 kB / 0.7928 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3254/2.782, allocations: 155.7 MB / 0.9448 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.224e-05/2.782, allocations: 38.56 kB / 0.9448 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.916e-06/2.782, allocations: 0 / 0.9448 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.002262/2.784, allocations: 471.4 kB / 0.9453 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.772e-05/2.784, allocations: 110 kB / 0.9454 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001554/2.786, allocations: 1.071 MB / 0.9464 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.099e-05/2.786, allocations: 29.7 kB / 0.9465 GB, free: 9.141 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003053/2.786, allocations: 381.3 kB / 0.9468 GB, free: 8.766 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.79e-05/2.786, allocations: 39.45 kB / 0.9469 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/2.786, allocations: 73.59 kB / 0.9469 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001459/2.786, allocations: 378.8 kB / 0.9473 GB, free: 8.27 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/2.787, allocations: 129 kB / 0.9474 GB, free: 8.145 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002547/2.787, allocations: 264.1 kB / 0.9477 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003669/2.787, allocations: 327.4 kB / 0.948 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/2.787, allocations: 1 kB / 0.948 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001419/2.789, allocations: 0.5599 MB / 0.9485 GB, free: 6.934 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/2.789, allocations: 15.88 kB / 0.9485 GB, free: 6.918 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/2.789, allocations: 5.203 kB / 0.9485 GB, free: 6.914 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001537/2.79, allocations: 201.5 kB / 0.9487 GB, free: 6.723 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/2.79, allocations: 43.08 kB / 0.9488 GB, free: 6.684 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005735/2.791, allocations: 0.6295 MB / 0.9494 GB, free: 6.031 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003651/2.791, allocations: 47.52 kB / 0.9494 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.755e-05/2.791, allocations: 14.42 kB / 0.9495 GB, free: 5.973 MB / 0.7794 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.0003021/2.792, allocations: 269.6 kB / 0.9497 GB, free: 5.707 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/2.792, allocations: 63.25 kB / 0.9498 GB, free: 5.645 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006822/2.793, allocations: 265.2 kB / 0.95 GB, free: 5.379 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/2.793, allocations: 0 / 0.95 GB, free: 5.379 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/2.793, allocations: 0 / 0.95 GB, free: 5.379 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/2.793, allocations: 0 / 0.95 GB, free: 5.379 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001824/2.794, allocations: 0.8409 MB / 0.9508 GB, free: 4.488 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/2.794, allocations: 1.094 kB / 0.9508 GB, free: 4.488 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.153e-05/2.795, allocations: 6.484 kB / 0.9509 GB, free: 4.484 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001042/2.796, allocations: 160.2 kB / 0.951 GB, free: 4.328 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/2.796, allocations: 4.875 kB / 0.951 GB, free: 4.324 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005025/2.796, allocations: 0.6336 MB / 0.9516 GB, free: 3.672 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/2.796, allocations: 0 / 0.9516 GB, free: 3.672 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001238/2.797, allocations: 407.6 kB / 0.952 GB, free: 3.262 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002033/2.798, allocations: 176.1 kB / 0.9522 GB, free: 3.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.05e-05/2.798, allocations: 15.92 kB / 0.9522 GB, free: 3.055 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/2.798, allocations: 4 kB / 0.9522 GB, free: 3.051 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.341e-05/2.798, allocations: 7.984 kB / 0.9522 GB, free: 3.043 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/2.798, allocations: 4 kB / 0.9522 GB, free: 3.039 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0008609/2.799, allocations: 0.7841 MB / 0.953 GB, free: 2.258 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.71e-07/2.799, allocations: 1.094 kB / 0.953 GB, free: 2.258 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.005011/2.804, allocations: 1.636 MB / 0.9546 GB, free: 0.6211 MB / 0.7794 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.008978/2.813, allocations: 2.506 MB / 0.957 GB, free: 14.42 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0006742/2.813, allocations: 242.4 kB / 0.9573 GB, free: 14.2 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/2.814, allocations: 256 / 0.9573 GB, free: 14.2 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001897/2.814, allocations: 59.83 kB / 0.9573 GB, free: 14.14 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007084/2.814, allocations: 91.36 kB / 0.9574 GB, free: 14.07 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001914/2.816, allocations: 1.106 MB / 0.9585 GB, free: 12.92 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000533/2.817, allocations: 0.9281 MB / 0.9594 GB, free: 11.97 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/2.817, allocations: 43.44 kB / 0.9594 GB, free: 11.93 MB / 0.795 GB Notification: Performance of SimCode: time 2.5e-07/2.817, allocations: 0 / 0.9594 GB, free: 11.93 MB / 0.795 GB Notification: Performance of Templates: time 0.05275/2.87, allocations: 35.68 MB / 0.9943 GB, free: 8.234 MB / 0.8262 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe 2>&1)