Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8135/0.8135, allocations: 150.9 MB / 167.1 MB, free: 14.3 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003425, allocations: 19.98 kB / 206 MB, free: 8.934 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1372, allocations: 31.33 MB / 237.3 MB, free: 5.742 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.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss): time 1.591/1.728, allocations: 294.4 MB / 0.5192 GB, free: 13.24 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0389/1.767, allocations: 34.43 MB / 0.5529 GB, free: 10.94 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002022/1.768, allocations: 4 kB / 0.5529 GB, free: 10.94 MB / 446.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/PipePressureLoss.mo:35:3-37: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/PipePressureLoss.mo:38:3-40:37: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.0003517/1.768, allocations: 108.5 kB / 0.553 GB, free: 10.83 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001868/1.768, allocations: 99.16 kB / 0.5531 GB, free: 10.73 MB / 446.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.02318/1.791, allocations: 9.567 MB / 0.5624 GB, free: 1.164 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005112/1.792, allocations: 350.4 kB / 0.5627 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002088/1.792, allocations: 112 kB / 0.5628 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000209/1.792, allocations: 143.4 kB / 0.563 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001483/1.792, allocations: 111.5 kB / 0.5631 GB, free: 472 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.538e-05/1.792, allocations: 16 kB / 0.5631 GB, free: 456 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02977/1.822, allocations: 17.9 MB / 0.5806 GB, free: 14.52 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.437e-05/1.822, allocations: 39.8 kB / 0.5806 GB, free: 14.48 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002078/1.823, allocations: 139.3 kB / 0.5808 GB, free: 14.35 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01774/1.84, allocations: 8.41 MB / 0.589 GB, free: 5.918 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/1.84, allocations: 4 kB / 0.589 GB, free: 5.914 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.783e-06/1.84, allocations: 0 / 0.589 GB, free: 5.914 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/1.84, allocations: 0 / 0.589 GB, free: 5.914 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.003501/1.844, allocations: 1.447 MB / 0.5904 GB, free: 4.418 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/1.844, allocations: 8.031 kB / 0.5904 GB, free: 4.41 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.139e-05/1.844, allocations: 31.56 kB / 0.5904 GB, free: 4.379 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/1.844, allocations: 223.6 kB / 0.5906 GB, free: 4.121 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.798e-05/1.844, allocations: 20.42 kB / 0.5907 GB, free: 4.102 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.939e-05/1.844, allocations: 23.94 kB / 0.5907 GB, free: 4.078 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004042/1.845, allocations: 296.8 kB / 0.591 GB, free: 3.758 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/1.845, allocations: 0 / 0.591 GB, free: 3.758 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/1.845, allocations: 12 kB / 0.591 GB, free: 3.746 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/1.845, allocations: 11.98 kB / 0.591 GB, free: 3.734 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002493/1.845, allocations: 173 kB / 0.5911 GB, free: 3.566 MB / 478.1 MB 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.03622/1.881, allocations: 18.12 MB / 0.6088 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003191/1.882, allocations: 126.6 kB / 0.609 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/1.882, allocations: 92.83 kB / 0.6091 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1463/2.028, allocations: 77.73 MB / 0.685 GB, free: 8.844 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/2.028, allocations: 34.5 kB / 0.685 GB, free: 8.801 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.044e-06/2.028, allocations: 0 / 0.685 GB, free: 8.801 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001018/2.029, allocations: 449.2 kB / 0.6854 GB, free: 8.336 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/2.029, allocations: 51.41 kB / 0.6855 GB, free: 8.273 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002498/2.029, allocations: 223.1 kB / 0.6857 GB, free: 8.047 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/2.029, allocations: 25.7 kB / 0.6857 GB, free: 8.016 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.45e-05/2.03, allocations: 148.5 kB / 0.6859 GB, free: 7.863 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.903e-05/2.03, allocations: 110.3 kB / 0.686 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.431e-05/2.03, allocations: 57.59 kB / 0.686 GB, free: 7.691 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001248/2.03, allocations: 338.8 kB / 0.6863 GB, free: 7.352 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/2.03, allocations: 71.92 kB / 0.6864 GB, free: 7.281 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/2.03, allocations: 113.8 kB / 0.6865 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002502/2.03, allocations: 211.9 kB / 0.6867 GB, free: 6.934 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/2.03, allocations: 0 / 0.6867 GB, free: 6.934 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004337/2.031, allocations: 293.8 kB / 0.687 GB, free: 6.637 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/2.031, allocations: 7.938 kB / 0.687 GB, free: 6.629 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/2.031, allocations: 0 / 0.687 GB, free: 6.629 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008959/2.032, allocations: 164.8 kB / 0.6872 GB, free: 6.465 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.614e-05/2.032, allocations: 7.984 kB / 0.6872 GB, free: 6.457 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004786/2.032, allocations: 0.6421 MB / 0.6878 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001095/2.032, allocations: 19.69 kB / 0.6878 GB, free: 5.77 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.59e-05/2.032, allocations: 12 kB / 0.6878 GB, free: 5.758 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (pipePressureLoss.C2.b,pipePressureLoss.C1.a,PuitsP1.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 (11): * Single equations (assignments): 8 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001188/2.033, allocations: 133.8 kB / 0.688 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.273e-05/2.033, allocations: 19.72 kB / 0.688 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007242/2.033, allocations: 0.6002 MB / 0.6886 GB, free: 4.93 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003716/2.034, allocations: 223.4 kB / 0.6888 GB, free: 4.703 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/2.034, allocations: 0 / 0.6888 GB, free: 4.703 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/2.034, allocations: 0 / 0.6888 GB, free: 4.703 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009358/2.035, allocations: 0.7365 MB / 0.6895 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/2.035, allocations: 8 kB / 0.6895 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.538e-05/2.035, allocations: 12 kB / 0.6895 GB, free: 3.891 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003551/2.035, allocations: 113.8 kB / 0.6896 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/2.035, allocations: 4 kB / 0.6896 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004526/2.036, allocations: 0.6545 MB / 0.6903 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/2.036, allocations: 8.094 kB / 0.6903 GB, free: 3.086 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004382/2.036, allocations: 343.8 kB / 0.6906 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.741e-05/2.036, allocations: 100.9 kB / 0.6907 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.744e-05/2.036, allocations: 7.844 kB / 0.6907 GB, free: 2.605 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/2.036, allocations: 8 kB / 0.6907 GB, free: 2.598 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.856e-05/2.036, allocations: 7.984 kB / 0.6907 GB, free: 2.59 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/2.036, allocations: 8 kB / 0.6907 GB, free: 2.582 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002386/2.037, allocations: 241.9 kB / 0.691 GB, free: 2.348 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.31e-07/2.037, allocations: 0 / 0.691 GB, free: 2.348 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002786/2.039, allocations: 1.183 MB / 0.6921 GB, free: 1.164 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (11): * Single equations (assignments): 10 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1508/2.19, allocations: 1.715 MB / 0.6938 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006241/2.191, allocations: 230 kB / 0.694 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/2.191, allocations: 1.906 kB / 0.694 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001868/2.191, allocations: 93.7 kB / 0.6941 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007213/2.192, allocations: 126.9 kB / 0.6942 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007507/2.193, allocations: 0.4978 MB / 0.6947 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001823/2.193, allocations: 0.7742 MB / 0.6955 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 7.512e-05/2.193, allocations: 22.58 kB / 0.6955 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.164e-05/2.193, allocations: 19.56 kB / 0.6955 GB, free: 225 MB / 0.5762 GB Notification: Performance of SimCode: time 3.51e-07/2.193, allocations: 6.156 kB / 0.6955 GB, free: 225 MB / 0.5762 GB Notification: Performance of Templates: time 0.04524/2.238, allocations: 42.36 MB / 0.7369 GB, free: 205.8 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)