Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.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.7651/0.7651, allocations: 150.9 MB / 167.2 MB, free: 14.66 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003154/0.0003155, allocations: 13.23 kB / 237.7 MB, free: 1.75 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05082/0.05115, allocations: 31.35 MB / 269 MB, free: 7.121 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.Examples.Book.SimpleExamples.PressureLoss.TestBend): time 1.5/1.551, allocations: 294.8 MB / 0.5506 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03446/1.586, allocations: 35.08 MB / 0.5848 GB, free: 9.82 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002498/1.586, allocations: 0 / 0.5848 GB, free: 9.82 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/Bend.mo:55:3-57:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/Bend.mo:58:3-60:43:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005272/1.586, allocations: 281.3 kB / 0.5851 GB, free: 9.547 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000286/1.587, allocations: 254.9 kB / 0.5854 GB, free: 9.297 MB / 478.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02129/1.608, allocations: 9.826 MB / 0.5949 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006285/1.609, allocations: 498.8 kB / 0.5954 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002251/1.609, allocations: 180.5 kB / 0.5956 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/1.609, allocations: 239.1 kB / 0.5958 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002803/1.609, allocations: 303.1 kB / 0.5961 GB, free: 14.26 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/1.609, allocations: 24 kB / 0.5961 GB, free: 14.24 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02691/1.636, allocations: 18.04 MB / 0.6138 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000207/1.637, allocations: 175.4 kB / 0.6139 GB, free: 12 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000265/1.637, allocations: 278.2 kB / 0.6142 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01616/1.653, allocations: 8.854 MB / 0.6228 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/1.653, allocations: 3.938 kB / 0.6228 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.313e-06/1.653, allocations: 0 / 0.6228 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.078e-05/1.653, allocations: 4 kB / 0.6228 GB, free: 2.848 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004289/1.657, allocations: 1.819 MB / 0.6246 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/1.658, allocations: 8.031 kB / 0.6246 GB, free: 0.9688 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/1.658, allocations: 75.06 kB / 0.6247 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005384/1.658, allocations: 490.3 kB / 0.6252 GB, free: 380 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/1.658, allocations: 20.5 kB / 0.6252 GB, free: 360 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.838e-05/1.658, allocations: 24 kB / 0.6252 GB, free: 336 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000552/1.659, allocations: 437.3 kB / 0.6256 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/1.659, allocations: 4 kB / 0.6256 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.608e-05/1.659, allocations: 11.94 kB / 0.6256 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/1.659, allocations: 15.98 kB / 0.6257 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003961/1.659, allocations: 337.7 kB / 0.626 GB, free: 15.5 MB / 0.5137 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03488/1.694, allocations: 18.69 MB / 0.6442 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005847/1.695, allocations: 182.4 kB / 0.6444 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/1.695, allocations: 104.8 kB / 0.6445 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3039/1.999, allocations: 77.92 MB / 0.7206 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/1.999, allocations: 30.56 kB / 0.7206 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 2.675e-06/1.999, allocations: 0 / 0.7206 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.0017/2.001, allocations: 0.5928 MB / 0.7212 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/2.001, allocations: 102.8 kB / 0.7213 GB, free: 210 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000992/2.002, allocations: 1.009 MB / 0.7223 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/2.002, allocations: 25.7 kB / 0.7223 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001785/2.002, allocations: 308 kB / 0.7226 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.3e-05/2.002, allocations: 119.8 kB / 0.7227 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.003e-05/2.002, allocations: 72.69 kB / 0.7228 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.013e-05/2.002, allocations: 383.2 kB / 0.7232 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001615/2.002, allocations: 156.3 kB / 0.7233 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002016/2.003, allocations: 235.6 kB / 0.7235 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003367/2.003, allocations: 331.2 kB / 0.7238 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/2.003, allocations: 6.375 kB / 0.7238 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005962/2.004, allocations: 0.5321 MB / 0.7244 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/2.004, allocations: 6.844 kB / 0.7244 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/2.004, allocations: 1.812 kB / 0.7244 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/2.005, allocations: 221.1 kB / 0.7246 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.043e-05/2.005, allocations: 26.47 kB / 0.7246 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005429/2.006, allocations: 0.6849 MB / 0.7253 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/2.006, allocations: 42.03 kB / 0.7253 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/2.006, allocations: 12.72 kB / 0.7253 GB, free: 208.6 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (Bend.C2.b,Bend.C1.a,SinkP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.000187/2.006, allocations: 252.5 kB / 0.7256 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.553e-05/2.006, allocations: 68.22 kB / 0.7256 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000582/2.007, allocations: 0.6989 MB / 0.7263 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002628/2.007, allocations: 248.1 kB / 0.7266 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/2.007, allocations: 0 / 0.7266 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/2.007, allocations: 1.078 kB / 0.7266 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000913/2.008, allocations: 0.9771 MB / 0.7275 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/2.008, allocations: 0 / 0.7275 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.243e-05/2.008, allocations: 23.41 kB / 0.7275 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007924/2.009, allocations: 178.1 kB / 0.7277 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/2.009, allocations: 7.094 kB / 0.7277 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000411/2.009, allocations: 0.6998 MB / 0.7284 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/2.009, allocations: 0.5625 kB / 0.7284 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003478/2.01, allocations: 421.9 kB / 0.7288 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001306/2.01, allocations: 172 kB / 0.729 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.016e-05/2.01, allocations: 15.84 kB / 0.729 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001796/2.01, allocations: 8.781 kB / 0.729 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.724e-05/2.01, allocations: 16.5 kB / 0.729 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.929e-06/2.01, allocations: 7.469 kB / 0.729 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0006597/2.011, allocations: 0.8095 MB / 0.7298 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/2.011, allocations: 4 kB / 0.7298 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002504/2.013, allocations: 1.255 MB / 0.731 GB, free: 206.8 MB / 0.5919 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 (12): * Single equations (assignments): 11 * 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.003679/2.017, allocations: 1.782 MB / 0.7328 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000597/2.018, allocations: 363.5 kB / 0.7331 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/2.018, allocations: 0 / 0.7331 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002387/2.018, allocations: 112.2 kB / 0.7332 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007254/2.019, allocations: 155.1 kB / 0.7334 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/2.02, allocations: 1.169 MB / 0.7345 GB, free: 206 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/2.02, allocations: 0.9362 MB / 0.7354 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.204e-05/2.02, allocations: 32.09 kB / 0.7355 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of SimCode: time 2.2e-07/2.02, allocations: 0 / 0.7355 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of Templates: time 0.02945/2.05, allocations: 29.95 MB / 0.7647 GB, free: 184.4 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)