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.8375/0.8375, allocations: 150.9 MB / 166.5 MB, free: 14.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002932/0.0002932, allocations: 12.67 kB / 237 MB, free: 2 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05434/0.05464, allocations: 31.36 MB / 268.4 MB, free: 7.242 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.685/1.74, allocations: 294.7 MB / 0.5499 GB, free: 13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04074/1.781, allocations: 35.08 MB / 0.5842 GB, free: 9.766 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002418/1.781, allocations: 4 kB / 0.5842 GB, free: 9.762 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.0006171/1.782, allocations: 275 kB / 0.5844 GB, free: 9.492 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004314/1.782, allocations: 258.8 kB / 0.5847 GB, free: 9.238 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.02834/1.811, allocations: 9.826 MB / 0.5943 GB, free: 15.39 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007823/1.811, allocations: 0.491 MB / 0.5948 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002501/1.812, allocations: 176.5 kB / 0.5949 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003697/1.812, allocations: 235.1 kB / 0.5952 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003789/1.812, allocations: 307.1 kB / 0.5955 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/1.812, allocations: 24 kB / 0.5955 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03257/1.845, allocations: 18.04 MB / 0.6131 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002504/1.845, allocations: 183.3 kB / 0.6133 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002843/1.846, allocations: 270.3 kB / 0.6135 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02092/1.867, allocations: 8.858 MB / 0.6222 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.934e-06/1.867, allocations: 0 / 0.6222 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.355e-06/1.867, allocations: 0 / 0.6222 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.431e-05/1.867, allocations: 4 kB / 0.6222 GB, free: 2.789 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.004477/1.871, allocations: 1.827 MB / 0.624 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/1.871, allocations: 8.031 kB / 0.624 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/1.871, allocations: 71.06 kB / 0.624 GB, free: 0.8359 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005098/1.872, allocations: 486.3 kB / 0.6245 GB, free: 324 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/1.872, allocations: 16.56 kB / 0.6245 GB, free: 308 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.287e-05/1.872, allocations: 24 kB / 0.6245 GB, free: 284 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005956/1.872, allocations: 441.3 kB / 0.625 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/1.872, allocations: 11.88 kB / 0.625 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.685e-05/1.873, allocations: 8 kB / 0.625 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.834e-05/1.873, allocations: 12 kB / 0.625 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004264/1.873, allocations: 337.8 kB / 0.6253 GB, free: 15.45 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.03929/1.912, allocations: 18.7 MB / 0.6436 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006048/1.913, allocations: 170.6 kB / 0.6437 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001349/1.913, allocations: 104.8 kB / 0.6438 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3395/2.253, allocations: 77.91 MB / 0.7199 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/2.253, allocations: 35.91 kB / 0.72 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 2.495e-06/2.253, allocations: 0 / 0.72 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.001792/2.254, allocations: 0.5877 MB / 0.7205 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/2.255, allocations: 104.5 kB / 0.7206 GB, free: 210 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/2.256, allocations: 1.011 MB / 0.7216 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/2.256, allocations: 27.23 kB / 0.7216 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000238/2.256, allocations: 307.4 kB / 0.7219 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.878e-05/2.256, allocations: 122.4 kB / 0.7221 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/2.256, allocations: 67.66 kB / 0.7221 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001257/2.256, allocations: 384.2 kB / 0.7225 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/2.256, allocations: 157.6 kB / 0.7226 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002352/2.257, allocations: 234 kB / 0.7229 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003405/2.257, allocations: 338.2 kB / 0.7232 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/2.257, allocations: 2.109 kB / 0.7232 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006721/2.258, allocations: 0.5348 MB / 0.7237 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/2.258, allocations: 5.469 kB / 0.7237 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/2.258, allocations: 2.719 kB / 0.7237 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001611/2.259, allocations: 226.3 kB / 0.7239 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.058e-05/2.26, allocations: 21.34 kB / 0.724 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005028/2.26, allocations: 0.6733 MB / 0.7246 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/2.26, allocations: 47.45 kB / 0.7247 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/2.26, allocations: 9.734 kB / 0.7247 GB, free: 208.5 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.0002258/2.261, allocations: 259.9 kB / 0.7249 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.604e-05/2.261, allocations: 61.19 kB / 0.725 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007503/2.261, allocations: 0.7034 MB / 0.7257 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002913/2.262, allocations: 247.9 kB / 0.7259 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/2.262, allocations: 1.125 kB / 0.7259 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/2.262, allocations: 3.562 kB / 0.7259 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/2.263, allocations: 0.975 MB / 0.7268 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/2.263, allocations: 0 / 0.7268 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.147e-05/2.263, allocations: 16.06 kB / 0.7269 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008628/2.264, allocations: 185.3 kB / 0.727 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/2.264, allocations: 0 / 0.727 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004686/2.264, allocations: 0.7064 MB / 0.7277 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/2.264, allocations: 1.312 kB / 0.7277 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004029/2.265, allocations: 417.6 kB / 0.7281 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001338/2.265, allocations: 173.6 kB / 0.7283 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.292e-05/2.265, allocations: 13.44 kB / 0.7283 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/2.265, allocations: 18.62 kB / 0.7283 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.793e-05/2.265, allocations: 13.39 kB / 0.7283 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/2.265, allocations: 2.844 kB / 0.7283 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007687/2.266, allocations: 0.8097 MB / 0.7291 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.31e-07/2.266, allocations: 0 / 0.7291 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003231/2.269, allocations: 1.255 MB / 0.7304 GB, free: 206.7 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.005028/2.274, allocations: 1.789 MB / 0.7321 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008031/2.275, allocations: 361.3 kB / 0.7324 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/2.275, allocations: 448 / 0.7324 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002691/2.275, allocations: 113.9 kB / 0.7326 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.0008988/2.276, allocations: 155.5 kB / 0.7327 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/2.278, allocations: 1.102 MB / 0.7338 GB, free: 206 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/2.278, allocations: 0.9358 MB / 0.7347 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001454/2.278, allocations: 62.86 kB / 0.7348 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.82e-05/2.278, allocations: 36.19 kB / 0.7348 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of SimCode: time 2.91e-07/2.278, allocations: 0 / 0.7348 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of Templates: time 0.04666/2.325, allocations: 45.66 MB / 0.7794 GB, free: 168.3 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)