Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7195/0.7195, allocations: 150.9 MB / 167.2 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003005/0.0003006, allocations: 17.56 kB / 237.8 MB, free: 1.766 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04267/0.04298, allocations: 31.34 MB / 269.1 MB, free: 7.035 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.SimpleExamples.TestPipePressureLoss): time 1.407/1.45, allocations: 294.7 MB / 0.5506 GB, free: 13.03 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03449/1.484, allocations: 34.43 MB / 0.5842 GB, free: 10.46 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/1.484, allocations: 4 kB / 0.5842 GB, free: 10.46 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/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.0003209/1.485, allocations: 107.3 kB / 0.5843 GB, free: 10.36 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002061/1.485, allocations: 107.2 kB / 0.5844 GB, free: 10.25 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.02078/1.506, allocations: 9.568 MB / 0.5938 GB, free: 0.668 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004223/1.506, allocations: 346.4 kB / 0.5941 GB, free: 336 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/1.506, allocations: 116.5 kB / 0.5942 GB, free: 220 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000207/1.507, allocations: 147.3 kB / 0.5944 GB, free: 72 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/1.507, allocations: 103.5 kB / 0.5945 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.654e-05/1.507, allocations: 20 kB / 0.5945 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02711/1.534, allocations: 17.9 MB / 0.612 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.885e-05/1.534, allocations: 47.78 kB / 0.612 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001647/1.534, allocations: 131.3 kB / 0.6121 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01474/1.549, allocations: 8.406 MB / 0.6203 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/1.549, allocations: 0 / 0.6203 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.312e-06/1.549, allocations: 0 / 0.6203 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.105e-06/1.549, allocations: 0 / 0.6203 GB, free: 5.43 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.003115/1.552, allocations: 1.439 MB / 0.6218 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/1.552, allocations: 12.03 kB / 0.6218 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.404e-05/1.552, allocations: 31.56 kB / 0.6218 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/1.552, allocations: 226.5 kB / 0.622 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/1.552, allocations: 16.44 kB / 0.622 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.431e-05/1.552, allocations: 16 kB / 0.622 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003733/1.553, allocations: 307.3 kB / 0.6223 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/1.553, allocations: 0 / 0.6223 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/1.553, allocations: 11.92 kB / 0.6223 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/1.553, allocations: 15.98 kB / 0.6224 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002254/1.553, allocations: 169 kB / 0.6225 GB, free: 3.09 MB / 0.4981 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.0337/1.587, allocations: 18.12 MB / 0.6402 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/1.587, allocations: 134.6 kB / 0.6403 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/1.587, allocations: 96.77 kB / 0.6404 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2906/1.878, allocations: 77.72 MB / 0.7163 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/1.878, allocations: 33.16 kB / 0.7164 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 1.923e-06/1.878, allocations: 1.25 kB / 0.7164 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.000846/1.879, allocations: 451.9 kB / 0.7168 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.905e-05/1.879, allocations: 53.5 kB / 0.7169 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001855/1.879, allocations: 218.3 kB / 0.7171 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 8.756e-06/1.879, allocations: 26.98 kB / 0.7171 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.278e-05/1.879, allocations: 146.5 kB / 0.7172 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.452e-05/1.879, allocations: 111.4 kB / 0.7173 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.894e-05/1.879, allocations: 53.23 kB / 0.7174 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.985e-05/1.879, allocations: 334.1 kB / 0.7177 GB, free: 212 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.823e-05/1.879, allocations: 75.61 kB / 0.7178 GB, free: 212 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/1.879, allocations: 113.1 kB / 0.7179 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002026/1.88, allocations: 203.8 kB / 0.7181 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/1.88, allocations: 1.469 kB / 0.7181 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003331/1.88, allocations: 301.6 kB / 0.7184 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/1.88, allocations: 8.156 kB / 0.7184 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/1.88, allocations: 0 / 0.7184 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007468/1.881, allocations: 164 kB / 0.7185 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.919e-05/1.881, allocations: 11.56 kB / 0.7185 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003232/1.881, allocations: 0.6366 MB / 0.7192 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.99e-05/1.881, allocations: 26.16 kB / 0.7192 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/1.881, allocations: 4.938 kB / 0.7192 GB, free: 211.3 MB / 0.5919 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 8.365e-05/1.881, allocations: 139.3 kB / 0.7193 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.579e-05/1.881, allocations: 20.03 kB / 0.7193 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005135/1.882, allocations: 0.6071 MB / 0.7199 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002788/1.882, allocations: 219.8 kB / 0.7201 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/1.882, allocations: 0 / 0.7201 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/1.882, allocations: 6.688 kB / 0.7202 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000674/1.883, allocations: 0.732 MB / 0.7209 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/1.883, allocations: 7.5 kB / 0.7209 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.656e-05/1.883, allocations: 13.69 kB / 0.7209 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002892/1.883, allocations: 110.3 kB / 0.721 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/1.883, allocations: 5.906 kB / 0.721 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002758/1.883, allocations: 0.6607 MB / 0.7216 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/1.883, allocations: 0 / 0.7216 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003087/1.884, allocations: 338.2 kB / 0.722 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 4.781e-05/1.884, allocations: 107.5 kB / 0.7221 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.985e-05/1.884, allocations: 18.03 kB / 0.7221 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.13e-05/1.884, allocations: 5.562 kB / 0.7221 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.69e-05/1.884, allocations: 8.125 kB / 0.7221 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/1.884, allocations: 8.688 kB / 0.7221 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001604/1.884, allocations: 237.3 kB / 0.7223 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/1.884, allocations: 0 / 0.7223 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002275/1.886, allocations: 1.187 MB / 0.7235 GB, free: 209.6 MB / 0.5919 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.003629/1.89, allocations: 1.729 MB / 0.7252 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004133/1.891, allocations: 236.1 kB / 0.7254 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/1.891, allocations: 0 / 0.7254 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001609/1.891, allocations: 91.91 kB / 0.7255 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006413/1.891, allocations: 122.1 kB / 0.7256 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006699/1.892, allocations: 0.5328 MB / 0.7261 GB, free: 209 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001428/1.892, allocations: 0.767 MB / 0.7269 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.842e-05/1.892, allocations: 21.34 kB / 0.7269 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of SimCode: time 8.52e-07/1.892, allocations: 0 / 0.7269 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of Templates: time 0.02492/1.917, allocations: 24.89 MB / 0.7512 GB, free: 197.2 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1)