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.8542/0.8542, allocations: 150.9 MB / 167.1 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004785/0.0004786, allocations: 15.97 kB / 205.9 MB, free: 9.086 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.2025, allocations: 31.34 MB / 237.3 MB, free: 5.75 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.835/2.037, allocations: 294.7 MB / 0.5195 GB, free: 13.08 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6517/2.689, allocations: 190.5 MB / 0.7055 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005716/2.69, allocations: 12.09 kB / 0.7056 GB, free: 2.055 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.0005679/2.69, allocations: 204.9 kB / 0.7058 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005912/2.691, allocations: 281.2 kB / 0.706 GB, free: 2.055 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.03972/2.731, allocations: 12.28 MB / 0.718 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001034/2.732, allocations: 0.5406 MB / 0.7185 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003795/2.732, allocations: 276.1 kB / 0.7188 GB, free: 1.871 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003082/2.732, allocations: 251.4 kB / 0.719 GB, free: 1.871 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003697/2.733, allocations: 356.8 kB / 0.7194 GB, free: 1.871 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.521e-05/2.733, allocations: 41.34 kB / 0.7194 GB, free: 1.871 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.051/2.784, allocations: 21.07 MB / 0.74 GB, free: 1.75 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003772/2.784, allocations: 202.6 kB / 0.7402 GB, free: 1.715 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005/2.785, allocations: 326.9 kB / 0.7405 GB, free: 1.695 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03795/2.823, allocations: 10.74 MB / 0.751 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/2.823, allocations: 0 / 0.751 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.904e-06/2.823, allocations: 1.094 kB / 0.751 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.433e-05/2.823, allocations: 4.703 kB / 0.751 GB, free: 13.8 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.007713/2.831, allocations: 2.235 MB / 0.7532 GB, free: 12.37 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/2.831, allocations: 10.16 kB / 0.7532 GB, free: 12.37 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/2.831, allocations: 82.88 kB / 0.7533 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007641/2.832, allocations: 0.5546 MB / 0.7538 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.402e-05/2.832, allocations: 31.7 kB / 0.7538 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.711e-05/2.832, allocations: 37.91 kB / 0.7539 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006938/2.832, allocations: 493.5 kB / 0.7544 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/2.832, allocations: 3.094 kB / 0.7544 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.861e-05/2.833, allocations: 20.19 kB / 0.7544 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/2.833, allocations: 11.97 kB / 0.7544 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005695/2.833, allocations: 413.9 kB / 0.7548 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009698/2.843, allocations: 6.693 MB / 0.7613 GB, free: 6.457 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000568/2.843, allocations: 120.7 kB / 0.7614 GB, free: 6.414 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.01e-05/2.844, allocations: 48.02 kB / 0.7615 GB, free: 6.402 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2992/3.143, allocations: 155.6 MB / 0.9135 GB, free: 0.6055 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.208e-05/3.143, allocations: 38.25 kB / 0.9135 GB, free: 0.5625 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 3.356e-06/3.143, allocations: 0 / 0.9135 GB, free: 0.5625 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002373/3.145, allocations: 477.8 kB / 0.914 GB, free: 124 kB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/3.145, allocations: 103.8 kB / 0.9141 GB, free: 16 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001523/3.147, allocations: 1.069 MB / 0.9151 GB, free: 15.18 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/3.147, allocations: 25.7 kB / 0.9151 GB, free: 15.15 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002989/3.147, allocations: 389.7 kB / 0.9155 GB, free: 14.91 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 4.231e-05/3.147, allocations: 42.33 kB / 0.9155 GB, free: 14.87 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/3.147, allocations: 77.53 kB / 0.9156 GB, free: 14.81 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001777/3.148, allocations: 380.6 kB / 0.916 GB, free: 14.46 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/3.148, allocations: 133.1 kB / 0.9161 GB, free: 14.36 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002808/3.148, allocations: 263.2 kB / 0.9164 GB, free: 14.09 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003794/3.148, allocations: 316.1 kB / 0.9167 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/3.149, allocations: 0 / 0.9167 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001402/3.15, allocations: 0.562 MB / 0.9172 GB, free: 13.38 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/3.15, allocations: 9.203 kB / 0.9172 GB, free: 13.37 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/3.15, allocations: 4 kB / 0.9172 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001479/3.151, allocations: 194.5 kB / 0.9174 GB, free: 13.18 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/3.152, allocations: 50.58 kB / 0.9175 GB, free: 13.14 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006207/3.152, allocations: 0.6261 MB / 0.9181 GB, free: 12.53 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002876/3.153, allocations: 47.45 kB / 0.9181 GB, free: 12.49 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.467e-05/3.153, allocations: 14.5 kB / 0.9181 GB, free: 12.48 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.0002973/3.153, allocations: 274.6 kB / 0.9184 GB, free: 12.26 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.656e-05/3.153, allocations: 67 kB / 0.9185 GB, free: 12.2 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006988/3.154, allocations: 260 kB / 0.9187 GB, free: 11.99 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/3.154, allocations: 0 / 0.9187 GB, free: 11.99 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/3.154, allocations: 0 / 0.9187 GB, free: 11.99 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/3.154, allocations: 3.938 kB / 0.9187 GB, free: 11.98 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00181/3.156, allocations: 0.8405 MB / 0.9195 GB, free: 11.25 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/3.156, allocations: 0 / 0.9195 GB, free: 11.25 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.07e-05/3.156, allocations: 4 kB / 0.9195 GB, free: 11.24 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001/3.157, allocations: 162.6 kB / 0.9197 GB, free: 11.1 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/3.157, allocations: 0 / 0.9197 GB, free: 11.1 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005505/3.157, allocations: 0.6299 MB / 0.9203 GB, free: 10.49 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/3.157, allocations: 0 / 0.9203 GB, free: 10.49 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/3.158, allocations: 424 kB / 0.9207 GB, free: 10.1 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002222/3.159, allocations: 169.3 kB / 0.9209 GB, free: 9.926 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.447e-05/3.159, allocations: 11.05 kB / 0.9209 GB, free: 9.918 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/3.159, allocations: 4 kB / 0.9209 GB, free: 9.914 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.416e-05/3.159, allocations: 14.52 kB / 0.9209 GB, free: 9.906 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/3.159, allocations: 5.203 kB / 0.9209 GB, free: 9.902 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0008417/3.16, allocations: 0.7836 MB / 0.9217 GB, free: 9.316 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.71e-07/3.16, allocations: 4 kB / 0.9217 GB, free: 9.312 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.005879/3.166, allocations: 1.631 MB / 0.9233 GB, free: 7.68 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.009641/3.175, allocations: 2.5 MB / 0.9257 GB, free: 5.469 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0007577/3.176, allocations: 244.5 kB / 0.9259 GB, free: 5.246 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/3.176, allocations: 4.062 kB / 0.9259 GB, free: 5.242 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001763/3.176, allocations: 59.02 kB / 0.926 GB, free: 5.188 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008222/3.177, allocations: 98.39 kB / 0.9261 GB, free: 5.098 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001714/3.179, allocations: 1.045 MB / 0.9271 GB, free: 4.023 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000465/3.179, allocations: 0.9361 MB / 0.928 GB, free: 3.062 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002024/3.18, allocations: 68.2 kB / 0.9281 GB, free: 2.996 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.056e-05/3.18, allocations: 35.44 kB / 0.9281 GB, free: 2.961 MB / 0.7637 GB Notification: Performance of SimCode: time 9.71e-07/3.18, allocations: 0 / 0.9281 GB, free: 2.961 MB / 0.7637 GB Notification: Performance of Templates: time 0.2825/3.462, allocations: 51.45 MB / 0.9784 GB, free: 456 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 -s cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe 2>&1)