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.8997/0.8997, allocations: 150.9 MB / 166.7 MB, free: 14.62 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004318/0.0004317, allocations: 15.98 kB / 204.8 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2403, allocations: 31.33 MB / 236.1 MB, free: 5.465 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.889/2.129, allocations: 293.8 MB / 0.5175 GB, free: 13.47 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2119/2.341, allocations: 188.5 MB / 0.7016 GB, free: 0.5938 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004357/2.342, allocations: 7.938 kB / 0.7016 GB, free: 0.5859 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.0003725/2.342, allocations: 188.5 kB / 0.7018 GB, free: 412 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003964/2.342, allocations: 258.9 kB / 0.702 GB, free: 152 kB / 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.4677/2.81, allocations: 10.86 MB / 0.7126 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008891/2.811, allocations: 0.5306 MB / 0.7131 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003619/2.811, allocations: 272.5 kB / 0.7134 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003149/2.812, allocations: 248 kB / 0.7136 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003748/2.812, allocations: 367 kB / 0.714 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.154e-05/2.812, allocations: 40.94 kB / 0.714 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04207/2.854, allocations: 20.99 MB / 0.7345 GB, free: 1.973 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003161/2.855, allocations: 211.7 kB / 0.7347 GB, free: 1.973 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004202/2.855, allocations: 324.5 kB / 0.735 GB, free: 1.973 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01501/2.87, allocations: 7.506 MB / 0.7424 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/2.87, allocations: 2.125 kB / 0.7424 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.703e-06/2.87, allocations: 0 / 0.7424 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.143e-05/2.87, allocations: 1.031 kB / 0.7424 GB, free: 0.5547 MB / 0.5762 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.007428/2.878, allocations: 2.232 MB / 0.7445 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/2.878, allocations: 9.75 kB / 0.7446 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001413/2.878, allocations: 84.19 kB / 0.7446 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006338/2.878, allocations: 0.541 MB / 0.7452 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.96e-05/2.878, allocations: 28.28 kB / 0.7452 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.576e-05/2.879, allocations: 37.88 kB / 0.7452 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006727/2.879, allocations: 492.6 kB / 0.7457 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/2.879, allocations: 6.281 kB / 0.7457 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.533e-05/2.879, allocations: 21.72 kB / 0.7457 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/2.879, allocations: 10.25 kB / 0.7457 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005533/2.88, allocations: 414.2 kB / 0.7461 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009333/2.889, allocations: 6.707 MB / 0.7527 GB, free: 9.215 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005425/2.89, allocations: 121.9 kB / 0.7528 GB, free: 9.176 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.83e-05/2.89, allocations: 42.34 kB / 0.7528 GB, free: 9.164 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.298/3.188, allocations: 154.7 MB / 0.9039 GB, free: 6.016 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.095e-05/3.188, allocations: 34.56 kB / 0.904 GB, free: 5.973 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 2.745e-06/3.188, allocations: 0 / 0.904 GB, free: 5.973 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002435/3.19, allocations: 480.5 kB / 0.9044 GB, free: 5.531 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.686e-05/3.19, allocations: 102.8 kB / 0.9045 GB, free: 5.406 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001745/3.192, allocations: 1.067 MB / 0.9056 GB, free: 4.594 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/3.192, allocations: 30.66 kB / 0.9056 GB, free: 4.562 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003181/3.193, allocations: 377 kB / 0.906 GB, free: 4.32 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.452e-05/3.193, allocations: 48.31 kB / 0.906 GB, free: 4.281 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/3.193, allocations: 74.55 kB / 0.9061 GB, free: 4.227 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001753/3.193, allocations: 386.7 kB / 0.9064 GB, free: 3.867 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/3.193, allocations: 130.7 kB / 0.9066 GB, free: 3.773 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003074/3.194, allocations: 260.8 kB / 0.9068 GB, free: 3.504 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004527/3.194, allocations: 317.2 kB / 0.9071 GB, free: 3.227 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/3.194, allocations: 4 kB / 0.9071 GB, free: 3.223 MB / 0.7481 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001637/3.196, allocations: 0.5547 MB / 0.9077 GB, free: 2.785 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.817e-05/3.196, allocations: 4.5 kB / 0.9077 GB, free: 2.781 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/3.196, allocations: 4 kB / 0.9077 GB, free: 2.777 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001627/3.197, allocations: 211.7 kB / 0.9079 GB, free: 2.586 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/3.198, allocations: 51.52 kB / 0.9079 GB, free: 2.547 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006288/3.198, allocations: 0.6202 MB / 0.9085 GB, free: 1.941 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004073/3.199, allocations: 47.84 kB / 0.9086 GB, free: 1.902 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.001e-05/3.199, allocations: 16.06 kB / 0.9086 GB, free: 1.887 MB / 0.7481 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.000384/3.199, allocations: 268.6 kB / 0.9088 GB, free: 1.672 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/3.199, allocations: 63.78 kB / 0.9089 GB, free: 1.609 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008193/3.2, allocations: 255.5 kB / 0.9092 GB, free: 1.406 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/3.2, allocations: 4 kB / 0.9092 GB, free: 1.402 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/3.2, allocations: 4 kB / 0.9092 GB, free: 1.398 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/3.2, allocations: 11.48 kB / 0.9092 GB, free: 1.391 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002016/3.202, allocations: 0.8356 MB / 0.91 GB, free: 0.6562 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/3.202, allocations: 2.906 kB / 0.91 GB, free: 0.6562 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.28e-05/3.202, allocations: 4 kB / 0.91 GB, free: 0.6523 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/3.203, allocations: 161.9 kB / 0.9102 GB, free: 0.5039 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/3.203, allocations: 1.938 kB / 0.9102 GB, free: 0.5039 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005756/3.204, allocations: 0.6422 MB / 0.9108 GB, free: 15.89 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/3.204, allocations: 3.984 kB / 0.9108 GB, free: 15.88 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001355/3.205, allocations: 402.7 kB / 0.9112 GB, free: 15.51 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002337/3.206, allocations: 171.2 kB / 0.9113 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.799e-05/3.206, allocations: 5.875 kB / 0.9113 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000195/3.206, allocations: 4 kB / 0.9113 GB, free: 15.33 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.577e-05/3.206, allocations: 13.92 kB / 0.9114 GB, free: 15.32 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/3.206, allocations: 4 kB / 0.9114 GB, free: 15.32 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001041/3.207, allocations: 0.7835 MB / 0.9121 GB, free: 14.75 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.61e-07/3.207, allocations: 0 / 0.9121 GB, free: 14.75 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.00599/3.213, allocations: 1.645 MB / 0.9137 GB, free: 13.21 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.01131/3.224, allocations: 2.587 MB / 0.9163 GB, free: 11 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0007902/3.225, allocations: 244.9 kB / 0.9165 GB, free: 10.82 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/3.225, allocations: 3.375 kB / 0.9165 GB, free: 10.82 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0002108/3.225, allocations: 61.98 kB / 0.9166 GB, free: 10.77 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008461/3.226, allocations: 97.33 kB / 0.9166 GB, free: 10.71 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/3.229, allocations: 1.3 MB / 0.9179 GB, free: 9.48 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006596/3.229, allocations: 0.9317 MB / 0.9188 GB, free: 8.559 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001981/3.229, allocations: 43.42 kB / 0.9189 GB, free: 8.516 MB / 0.7637 GB Notification: Performance of SimCode: time 9.12e-07/3.229, allocations: 0 / 0.9189 GB, free: 8.516 MB / 0.7637 GB Notification: Performance of Templates: time 0.06343/3.293, allocations: 35.7 MB / 0.9537 GB, free: 4.953 MB / 0.795 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)