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.8302/0.8302, allocations: 150.9 MB / 166.5 MB, free: 14.34 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003243/0.0003243, allocations: 18.22 kB / 237 MB, free: 2 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05374/0.05408, allocations: 31.35 MB / 268.4 MB, free: 7.223 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.666/1.72, allocations: 294.8 MB / 0.55 GB, free: 12.95 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04058/1.76, allocations: 35.08 MB / 0.5842 GB, free: 9.723 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002546/1.761, allocations: 4 kB / 0.5843 GB, free: 9.719 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.000579/1.761, allocations: 291 kB / 0.5845 GB, free: 9.434 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000466/1.762, allocations: 278.8 kB / 0.5848 GB, free: 9.16 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.02515/1.787, allocations: 9.996 MB / 0.5946 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006916/1.788, allocations: 0.491 MB / 0.595 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002913/1.788, allocations: 184.4 kB / 0.5952 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003714/1.788, allocations: 239.1 kB / 0.5954 GB, free: 14.24 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003579/1.789, allocations: 295.1 kB / 0.5957 GB, free: 13.95 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.661e-05/1.789, allocations: 24 kB / 0.5957 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0342/1.823, allocations: 18.06 MB / 0.6134 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002387/1.823, allocations: 171.4 kB / 0.6135 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003278/1.824, allocations: 278.2 kB / 0.6138 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01812/1.842, allocations: 8.858 MB / 0.6225 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/1.842, allocations: 0 / 0.6225 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.583e-06/1.842, allocations: 0 / 0.6225 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.402e-05/1.842, allocations: 0 / 0.6225 GB, free: 2.531 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.004464/1.846, allocations: 1.811 MB / 0.6242 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/1.846, allocations: 16.03 kB / 0.6242 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/1.846, allocations: 75.06 kB / 0.6243 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005512/1.847, allocations: 490.3 kB / 0.6248 GB, free: 56 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/1.847, allocations: 16.56 kB / 0.6248 GB, free: 40 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.511e-05/1.847, allocations: 24 kB / 0.6248 GB, free: 16 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006133/1.848, allocations: 437.2 kB / 0.6252 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/1.848, allocations: 7.938 kB / 0.6252 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/1.848, allocations: 12 kB / 0.6253 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.054e-05/1.848, allocations: 15.98 kB / 0.6253 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004543/1.848, allocations: 341.7 kB / 0.6256 GB, free: 15.18 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.03988/1.888, allocations: 18.7 MB / 0.6439 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006438/1.889, allocations: 174.6 kB / 0.644 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/1.889, allocations: 100.8 kB / 0.6441 GB, free: 10.33 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3435/2.232, allocations: 77.92 MB / 0.7202 GB, free: 210 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/2.233, allocations: 30.56 kB / 0.7202 GB, free: 210 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 1.884e-06/2.233, allocations: 0 / 0.7202 GB, free: 210 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.001687/2.234, allocations: 0.5934 MB / 0.7208 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.839e-05/2.234, allocations: 109.6 kB / 0.7209 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/2.235, allocations: 1.005 MB / 0.7219 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/2.235, allocations: 30.92 kB / 0.7219 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001759/2.236, allocations: 300.8 kB / 0.7222 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.771e-05/2.236, allocations: 122.4 kB / 0.7223 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.005e-05/2.236, allocations: 67.33 kB / 0.7224 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.244e-05/2.236, allocations: 384.9 kB / 0.7228 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/2.236, allocations: 162.9 kB / 0.7229 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001972/2.236, allocations: 232.6 kB / 0.7231 GB, free: 209 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003243/2.236, allocations: 333.4 kB / 0.7235 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/2.237, allocations: 0 / 0.7235 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006335/2.237, allocations: 0.542 MB / 0.724 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/2.237, allocations: 5.875 kB / 0.724 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/2.237, allocations: 0 / 0.724 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001592/2.239, allocations: 223.7 kB / 0.7242 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.923e-05/2.239, allocations: 22.06 kB / 0.7242 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005187/2.239, allocations: 0.6849 MB / 0.7249 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002237/2.24, allocations: 41.47 kB / 0.7249 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/2.24, allocations: 11.03 kB / 0.725 GB, free: 208.3 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.0002203/2.24, allocations: 256.6 kB / 0.7252 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.66e-05/2.24, allocations: 61.56 kB / 0.7253 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000674/2.241, allocations: 0.6951 MB / 0.7259 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000298/2.241, allocations: 254 kB / 0.7262 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/2.241, allocations: 0.9844 kB / 0.7262 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/2.241, allocations: 1.078 kB / 0.7262 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/2.242, allocations: 0.9709 MB / 0.7271 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/2.242, allocations: 2.406 kB / 0.7271 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.007e-05/2.242, allocations: 20.55 kB / 0.7271 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008488/2.243, allocations: 181.8 kB / 0.7273 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/2.243, allocations: 3.969 kB / 0.7273 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004588/2.243, allocations: 0.708 MB / 0.728 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/2.243, allocations: 3.031 kB / 0.728 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003919/2.244, allocations: 417.9 kB / 0.7284 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/2.244, allocations: 169.8 kB / 0.7286 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.743e-05/2.244, allocations: 21.22 kB / 0.7286 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/2.244, allocations: 11.73 kB / 0.7286 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.807e-05/2.244, allocations: 14.89 kB / 0.7286 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.938e-06/2.244, allocations: 2.781 kB / 0.7286 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007548/2.245, allocations: 0.8076 MB / 0.7294 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/2.245, allocations: 0 / 0.7294 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003032/2.248, allocations: 1.256 MB / 0.7306 GB, free: 206.5 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.004547/2.253, allocations: 1.794 MB / 0.7324 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007282/2.253, allocations: 354.5 kB / 0.7327 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/2.253, allocations: 4.062 kB / 0.7327 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002861/2.254, allocations: 112.8 kB / 0.7328 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008457/2.255, allocations: 151 kB / 0.733 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/2.256, allocations: 1.107 MB / 0.7341 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/2.256, allocations: 0.9398 MB / 0.735 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001371/2.256, allocations: 61.11 kB / 0.735 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.351e-05/2.256, allocations: 30.97 kB / 0.7351 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of SimCode: time 2.21e-07/2.256, allocations: 0 / 0.7351 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of Templates: time 0.04726/2.304, allocations: 45.66 MB / 0.7797 GB, free: 168 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)