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.844/0.844, allocations: 150.9 MB / 166.4 MB, free: 14.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003339/0.0003339, allocations: 23.97 kB / 204.5 MB, free: 9.746 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.1863, allocations: 31.33 MB / 235.9 MB, free: 5.43 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.795/1.981, allocations: 294.9 MB / 0.5183 GB, free: 13.15 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6669/2.648, allocations: 190.5 MB / 0.7044 GB, free: 2.137 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005126/2.648, allocations: 10.09 kB / 0.7044 GB, free: 2.137 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.000519/2.649, allocations: 206.9 kB / 0.7046 GB, free: 2.137 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005876/2.65, allocations: 271.5 kB / 0.7048 GB, free: 2.137 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.04198/2.692, allocations: 12.3 MB / 0.7168 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001229/2.693, allocations: 0.5316 MB / 0.7174 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003892/2.693, allocations: 274.9 kB / 0.7176 GB, free: 1.957 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003957/2.694, allocations: 248.1 kB / 0.7179 GB, free: 1.957 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003812/2.694, allocations: 358.8 kB / 0.7182 GB, free: 1.957 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.771e-05/2.694, allocations: 39.84 kB / 0.7182 GB, free: 1.957 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04723/2.741, allocations: 20.82 MB / 0.7386 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003755/2.742, allocations: 202.4 kB / 0.7388 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005078/2.742, allocations: 327.6 kB / 0.7391 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03688/2.779, allocations: 10.78 MB / 0.7496 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/2.779, allocations: 0 / 0.7496 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.024e-06/2.779, allocations: 0.7812 kB / 0.7496 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.373e-05/2.779, allocations: 0 / 0.7496 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.007829/2.787, allocations: 2.235 MB / 0.7518 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/2.787, allocations: 8.094 kB / 0.7518 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001667/2.787, allocations: 83.78 kB / 0.7519 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006701/2.788, allocations: 0.5354 MB / 0.7524 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.672e-05/2.788, allocations: 34.59 kB / 0.7524 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.499e-05/2.788, allocations: 40.09 kB / 0.7525 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006873/2.789, allocations: 490.8 kB / 0.7529 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/2.789, allocations: 0 / 0.7529 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.847e-05/2.789, allocations: 18.97 kB / 0.753 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/2.789, allocations: 10.34 kB / 0.753 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005657/2.789, allocations: 419.2 kB / 0.7534 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009984/2.799, allocations: 6.706 MB / 0.7599 GB, free: 6.734 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005833/2.8, allocations: 121.9 kB / 0.76 GB, free: 6.695 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.103e-05/2.8, allocations: 44.09 kB / 0.7601 GB, free: 6.684 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3333/3.133, allocations: 154.7 MB / 0.9112 GB, free: 1.859 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.507e-05/3.134, allocations: 34.3 kB / 0.9112 GB, free: 1.82 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 4.158e-06/3.134, allocations: 4 kB / 0.9112 GB, free: 1.816 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002811/3.136, allocations: 473.8 kB / 0.9117 GB, free: 1.379 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/3.137, allocations: 109.9 kB / 0.9118 GB, free: 1.25 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002373/3.139, allocations: 1.069 MB / 0.9128 GB, free: 444 kB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.495e-05/3.139, allocations: 29.2 kB / 0.9128 GB, free: 412 kB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003952/3.139, allocations: 383.1 kB / 0.9132 GB, free: 164 kB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.401e-05/3.14, allocations: 48 kB / 0.9133 GB, free: 124 kB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001499/3.14, allocations: 70.97 kB / 0.9133 GB, free: 68 kB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000224/3.14, allocations: 382 kB / 0.9137 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/3.14, allocations: 133.5 kB / 0.9138 GB, free: 15.62 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000339/3.14, allocations: 259.2 kB / 0.9141 GB, free: 15.35 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004472/3.141, allocations: 323.1 kB / 0.9144 GB, free: 15.07 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/3.141, allocations: 1.203 kB / 0.9144 GB, free: 15.07 MB / 0.7637 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001627/3.143, allocations: 0.557 MB / 0.9149 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/3.143, allocations: 4 kB / 0.9149 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/3.143, allocations: 4 kB / 0.9149 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001611/3.144, allocations: 203.9 kB / 0.9151 GB, free: 14.43 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/3.144, allocations: 46.27 kB / 0.9152 GB, free: 14.39 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006633/3.145, allocations: 0.6291 MB / 0.9158 GB, free: 13.78 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004336/3.146, allocations: 45.89 kB / 0.9158 GB, free: 13.74 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.742e-05/3.146, allocations: 15.12 kB / 0.9158 GB, free: 13.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.0004121/3.146, allocations: 263.2 kB / 0.9161 GB, free: 13.52 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/3.146, allocations: 68.91 kB / 0.9162 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007852/3.147, allocations: 257.8 kB / 0.9164 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.637e-06/3.147, allocations: 7.844 kB / 0.9164 GB, free: 13.24 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/3.147, allocations: 0 / 0.9164 GB, free: 13.24 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/3.147, allocations: 8.234 kB / 0.9164 GB, free: 13.24 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002026/3.149, allocations: 0.8425 MB / 0.9172 GB, free: 12.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/3.149, allocations: 0 / 0.9172 GB, free: 12.5 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.451e-05/3.149, allocations: 4 kB / 0.9172 GB, free: 12.49 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001105/3.15, allocations: 154.4 kB / 0.9174 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/3.15, allocations: 7.5 kB / 0.9174 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005921/3.151, allocations: 0.6307 MB / 0.918 GB, free: 11.74 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/3.151, allocations: 8.062 kB / 0.918 GB, free: 11.73 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001303/3.152, allocations: 415.8 kB / 0.9184 GB, free: 11.35 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002439/3.152, allocations: 166.5 kB / 0.9186 GB, free: 11.18 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.337e-05/3.153, allocations: 11.42 kB / 0.9186 GB, free: 11.17 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/3.153, allocations: 4 kB / 0.9186 GB, free: 11.17 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.585e-05/3.153, allocations: 12.56 kB / 0.9186 GB, free: 11.16 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/3.153, allocations: 4 kB / 0.9186 GB, free: 11.16 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001054/3.154, allocations: 0.7793 MB / 0.9194 GB, free: 10.52 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.71e-07/3.154, allocations: 4 kB / 0.9194 GB, free: 10.52 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.006102/3.16, allocations: 1.643 MB / 0.921 GB, free: 8.875 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.01071/3.171, allocations: 2.506 MB / 0.9234 GB, free: 6.664 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0007952/3.172, allocations: 242.4 kB / 0.9236 GB, free: 6.445 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/3.172, allocations: 4.062 kB / 0.9237 GB, free: 6.441 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0002219/3.172, allocations: 55.83 kB / 0.9237 GB, free: 6.387 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00092/3.173, allocations: 99.83 kB / 0.9238 GB, free: 6.297 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002143/3.175, allocations: 1.057 MB / 0.9248 GB, free: 5.207 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005924/3.176, allocations: 0.9322 MB / 0.9257 GB, free: 4.25 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002889/3.176, allocations: 72.19 kB / 0.9258 GB, free: 4.18 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.294e-05/3.176, allocations: 35.44 kB / 0.9258 GB, free: 4.145 MB / 0.7637 GB Notification: Performance of SimCode: time 2.144e-06/3.176, allocations: 0 / 0.9258 GB, free: 4.145 MB / 0.7637 GB Notification: Performance of Templates: time 0.07984/3.256, allocations: 51.5 MB / 0.9761 GB, free: 0.6914 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe 2>&1)