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.752/0.752, allocations: 150.9 MB / 167 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003454/0.0003455, allocations: 15.97 kB / 205.2 MB, free: 9.727 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1299, allocations: 31.32 MB / 236.5 MB, free: 5.426 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.449/1.579, allocations: 294.6 MB / 0.5187 GB, free: 13.37 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03502/1.614, allocations: 34.43 MB / 0.5523 GB, free: 11.07 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001596/1.614, allocations: 4 kB / 0.5523 GB, free: 11.07 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.0003268/1.615, allocations: 111.3 kB / 0.5525 GB, free: 10.96 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001661/1.615, allocations: 99.17 kB / 0.5525 GB, free: 10.86 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.02088/1.636, allocations: 9.566 MB / 0.5619 GB, free: 1.293 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004589/1.636, allocations: 342.4 kB / 0.5622 GB, free: 0.957 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/1.636, allocations: 113.6 kB / 0.5623 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001941/1.637, allocations: 139.3 kB / 0.5625 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/1.637, allocations: 107.4 kB / 0.5626 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.377e-05/1.637, allocations: 20 kB / 0.5626 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02596/1.663, allocations: 17.67 MB / 0.5798 GB, free: 14.89 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.754e-05/1.663, allocations: 43.8 kB / 0.5799 GB, free: 14.85 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001696/1.663, allocations: 135.3 kB / 0.58 GB, free: 14.72 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01584/1.679, allocations: 8.433 MB / 0.5882 GB, free: 6.266 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/1.679, allocations: 0 / 0.5882 GB, free: 6.266 MB / 478.1 MB Notification: Performance of FrontEnd: time 9.22e-07/1.679, allocations: 0 / 0.5882 GB, free: 6.266 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/1.679, allocations: 0 / 0.5882 GB, free: 6.266 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.00375/1.683, allocations: 1.435 MB / 0.5896 GB, free: 4.781 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/1.683, allocations: 8.031 kB / 0.5896 GB, free: 4.773 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.786e-05/1.683, allocations: 39.55 kB / 0.5897 GB, free: 4.734 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002055/1.683, allocations: 219.6 kB / 0.5899 GB, free: 4.48 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/1.683, allocations: 16.44 kB / 0.5899 GB, free: 4.465 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/1.683, allocations: 20 kB / 0.5899 GB, free: 4.445 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003928/1.683, allocations: 303.3 kB / 0.5902 GB, free: 4.117 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/1.683, allocations: 0 / 0.5902 GB, free: 4.117 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/1.684, allocations: 4 kB / 0.5902 GB, free: 4.113 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.709e-05/1.684, allocations: 15.98 kB / 0.5902 GB, free: 4.098 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002348/1.684, allocations: 177 kB / 0.5904 GB, free: 3.926 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.03497/1.719, allocations: 18.01 MB / 0.608 GB, free: 40 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002978/1.719, allocations: 126.6 kB / 0.6081 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/1.719, allocations: 96.77 kB / 0.6082 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.145/1.864, allocations: 77.27 MB / 0.6837 GB, free: 9.773 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/1.864, allocations: 34.56 kB / 0.6837 GB, free: 9.73 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.685e-06/1.864, allocations: 0 / 0.6837 GB, free: 9.73 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001019/1.865, allocations: 447.4 kB / 0.6841 GB, free: 9.266 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.27e-05/1.865, allocations: 55.34 kB / 0.6842 GB, free: 9.199 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/1.866, allocations: 219.1 kB / 0.6844 GB, free: 8.977 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/1.866, allocations: 25.7 kB / 0.6844 GB, free: 8.945 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.618e-05/1.866, allocations: 156.5 kB / 0.6846 GB, free: 8.785 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.291e-05/1.866, allocations: 110.3 kB / 0.6847 GB, free: 8.676 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.154e-05/1.866, allocations: 49.61 kB / 0.6847 GB, free: 8.621 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.936e-05/1.866, allocations: 338.8 kB / 0.685 GB, free: 8.281 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.988e-05/1.866, allocations: 71.97 kB / 0.6851 GB, free: 8.211 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/1.866, allocations: 112.2 kB / 0.6852 GB, free: 8.086 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000228/1.866, allocations: 212.5 kB / 0.6854 GB, free: 7.863 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/1.866, allocations: 0 / 0.6854 GB, free: 7.863 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003884/1.867, allocations: 293.7 kB / 0.6857 GB, free: 7.566 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/1.867, allocations: 15.94 kB / 0.6857 GB, free: 7.551 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/1.867, allocations: 0 / 0.6857 GB, free: 7.551 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009101/1.868, allocations: 166.9 kB / 0.6859 GB, free: 7.387 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.91e-05/1.868, allocations: 8 kB / 0.6859 GB, free: 7.379 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005215/1.868, allocations: 0.6356 MB / 0.6865 GB, free: 6.719 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/1.868, allocations: 27.66 kB / 0.6865 GB, free: 6.691 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/1.868, allocations: 11.98 kB / 0.6865 GB, free: 6.68 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.0001177/1.869, allocations: 137.8 kB / 0.6867 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.217e-05/1.869, allocations: 23.72 kB / 0.6867 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007126/1.869, allocations: 0.6003 MB / 0.6873 GB, free: 5.844 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003637/1.87, allocations: 227.4 kB / 0.6875 GB, free: 5.613 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/1.87, allocations: 0 / 0.6875 GB, free: 5.613 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/1.87, allocations: 3.984 kB / 0.6875 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008748/1.871, allocations: 0.7373 MB / 0.6882 GB, free: 4.816 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/1.871, allocations: 0 / 0.6882 GB, free: 4.816 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.144e-05/1.871, allocations: 15.98 kB / 0.6882 GB, free: 4.801 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003272/1.871, allocations: 113.9 kB / 0.6883 GB, free: 4.688 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.367e-06/1.871, allocations: 4 kB / 0.6883 GB, free: 4.684 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003966/1.871, allocations: 0.6584 MB / 0.689 GB, free: 4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/1.871, allocations: 0 / 0.689 GB, free: 4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003872/1.872, allocations: 339.8 kB / 0.6893 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.521e-05/1.872, allocations: 112.9 kB / 0.6894 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.896e-05/1.872, allocations: 11.84 kB / 0.6894 GB, free: 3.508 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/1.872, allocations: 7.938 kB / 0.6894 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.136e-05/1.872, allocations: 7.984 kB / 0.6894 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/1.872, allocations: 4 kB / 0.6895 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002032/1.872, allocations: 237.9 kB / 0.6897 GB, free: 3.258 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/1.872, allocations: 0 / 0.6897 GB, free: 3.258 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002539/1.875, allocations: 1.183 MB / 0.6908 GB, free: 2.074 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.003968/1.879, allocations: 1.722 MB / 0.6925 GB, free: 368 kB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004733/1.879, allocations: 246.7 kB / 0.6927 GB, free: 116 kB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/1.879, allocations: 3.938 kB / 0.6928 GB, free: 112 kB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001837/1.88, allocations: 91.69 kB / 0.6928 GB, free: 20 kB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1395/2.019, allocations: 125.1 kB / 0.693 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008738/2.02, allocations: 0.5306 MB / 0.6935 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001749/2.02, allocations: 0.7684 MB / 0.6942 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.569e-05/2.02, allocations: 20.78 kB / 0.6942 GB, free: 225 MB / 0.5762 GB Notification: Performance of SimCode: time 7.41e-07/2.02, allocations: 0 / 0.6942 GB, free: 225 MB / 0.5762 GB Notification: Performance of Templates: time 0.03015/2.05, allocations: 24.89 MB / 0.7186 GB, free: 219 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)