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.7555/0.7555, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003134/0.0003134, allocations: 14.47 kB / 237.7 MB, free: 1.793 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05092/0.05124, allocations: 31.34 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.442/1.493, allocations: 294.8 MB / 0.5506 GB, free: 13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03504/1.528, allocations: 35.09 MB / 0.5848 GB, free: 9.766 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001886/1.528, allocations: 4 kB / 0.5848 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.0005052/1.529, allocations: 274.9 kB / 0.5851 GB, free: 9.492 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003156/1.529, allocations: 254.9 kB / 0.5854 GB, free: 9.242 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.02154/1.551, allocations: 9.832 MB / 0.595 GB, free: 15.39 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006334/1.552, allocations: 498.8 kB / 0.5954 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002668/1.552, allocations: 176.5 kB / 0.5956 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003172/1.552, allocations: 243.1 kB / 0.5958 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003206/1.552, allocations: 291.1 kB / 0.5961 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.54e-05/1.553, allocations: 24 kB / 0.5961 GB, free: 14.19 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02948/1.582, allocations: 18.05 MB / 0.6138 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002571/1.582, allocations: 175.4 kB / 0.6139 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003581/1.583, allocations: 274.2 kB / 0.6142 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01601/1.599, allocations: 8.854 MB / 0.6228 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/1.599, allocations: 8 kB / 0.6228 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.483e-06/1.599, allocations: 0 / 0.6228 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.066e-05/1.599, allocations: 0 / 0.6228 GB, free: 2.797 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.003938/1.603, allocations: 1.811 MB / 0.6246 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/1.603, allocations: 12.03 kB / 0.6246 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/1.603, allocations: 71.06 kB / 0.6247 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005364/1.603, allocations: 498.2 kB / 0.6252 GB, free: 328 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/1.603, allocations: 20.5 kB / 0.6252 GB, free: 308 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.366e-05/1.603, allocations: 35.92 kB / 0.6252 GB, free: 272 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005357/1.604, allocations: 429.2 kB / 0.6256 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/1.604, allocations: 0 / 0.6256 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.122e-05/1.604, allocations: 16 kB / 0.6256 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/1.604, allocations: 15.98 kB / 0.6257 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003788/1.604, allocations: 341.7 kB / 0.626 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.03597/1.64, allocations: 18.7 MB / 0.6442 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005509/1.641, allocations: 174.6 kB / 0.6444 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/1.641, allocations: 104.8 kB / 0.6445 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3052/1.946, allocations: 77.91 MB / 0.7206 GB, free: 210 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/1.946, allocations: 33.56 kB / 0.7206 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 2.505e-06/1.946, allocations: 0 / 0.7206 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.001634/1.948, allocations: 0.5914 MB / 0.7212 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/1.948, allocations: 107.1 kB / 0.7213 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008679/1.949, allocations: 1.009 MB / 0.7223 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/1.949, allocations: 29.52 kB / 0.7223 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/1.949, allocations: 301.1 kB / 0.7226 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.859e-05/1.949, allocations: 123.2 kB / 0.7227 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.288e-05/1.949, allocations: 66.97 kB / 0.7228 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.16e-05/1.949, allocations: 388.1 kB / 0.7232 GB, free: 209 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/1.95, allocations: 153 kB / 0.7233 GB, free: 209 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/1.95, allocations: 235.3 kB / 0.7235 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002742/1.95, allocations: 336.4 kB / 0.7238 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/1.95, allocations: 3.188 kB / 0.7238 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005223/1.951, allocations: 0.532 MB / 0.7244 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/1.951, allocations: 8.859 kB / 0.7244 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/1.951, allocations: 2.375 kB / 0.7244 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00151/1.952, allocations: 220.6 kB / 0.7246 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.221e-05/1.952, allocations: 26.94 kB / 0.7246 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004547/1.953, allocations: 0.6799 MB / 0.7253 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001911/1.953, allocations: 42.56 kB / 0.7253 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/1.953, allocations: 9.281 kB / 0.7253 GB, free: 208.2 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.0001776/1.953, allocations: 254.2 kB / 0.7256 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.554e-05/1.953, allocations: 61.28 kB / 0.7256 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005945/1.954, allocations: 0.7057 MB / 0.7263 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000268/1.954, allocations: 248.6 kB / 0.7266 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/1.954, allocations: 2.109 kB / 0.7266 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/1.954, allocations: 3.969 kB / 0.7266 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008885/1.955, allocations: 0.9715 MB / 0.7275 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/1.955, allocations: 4.594 kB / 0.7275 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.435e-05/1.955, allocations: 20.08 kB / 0.7275 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008062/1.956, allocations: 177.4 kB / 0.7277 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/1.956, allocations: 2.562 kB / 0.7277 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004052/1.956, allocations: 0.7112 MB / 0.7284 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/1.956, allocations: 3.938 kB / 0.7284 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003447/1.957, allocations: 416.3 kB / 0.7288 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/1.957, allocations: 175.7 kB / 0.729 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.899e-05/1.957, allocations: 10.41 kB / 0.729 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/1.957, allocations: 13.31 kB / 0.729 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.958e-05/1.957, allocations: 14.67 kB / 0.729 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/1.957, allocations: 3.312 kB / 0.729 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0006567/1.958, allocations: 0.8096 MB / 0.7298 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 6.41e-07/1.958, allocations: 0 / 0.7298 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002435/1.96, allocations: 1.258 MB / 0.731 GB, free: 206.4 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.003622/1.964, allocations: 1.788 MB / 0.7328 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005661/1.964, allocations: 369.2 kB / 0.7331 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/1.964, allocations: 0 / 0.7331 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002478/1.965, allocations: 103.8 kB / 0.7332 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007412/1.965, allocations: 158.9 kB / 0.7334 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/1.967, allocations: 1.168 MB / 0.7345 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/1.967, allocations: 0.9334 MB / 0.7354 GB, free: 205 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.446e-05/1.967, allocations: 32.28 kB / 0.7355 GB, free: 205 MB / 0.5919 GB Notification: Performance of SimCode: time 2.41e-07/1.967, allocations: 3.25 kB / 0.7355 GB, free: 205 MB / 0.5919 GB Notification: Performance of Templates: time 0.02918/1.996, allocations: 29.86 MB / 0.7646 GB, free: 183.9 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)