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.855/0.855, allocations: 150.9 MB / 166.5 MB, free: 14.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003179/0.0003179, allocations: 18.73 kB / 237 MB, free: 1.848 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05121/0.05154, allocations: 31.35 MB / 268.4 MB, free: 7.113 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.TestPipePressureLoss): time 1.598/1.649, allocations: 294.6 MB / 0.5498 GB, free: 12.78 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04201/1.691, allocations: 34.44 MB / 0.5834 GB, free: 10.2 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000204/1.692, allocations: 0 / 0.5834 GB, free: 10.2 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.0004721/1.692, allocations: 103.3 kB / 0.5835 GB, free: 10.09 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002792/1.692, allocations: 99.16 kB / 0.5836 GB, free: 9.996 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.02435/1.717, allocations: 9.577 MB / 0.593 GB, free: 412 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006912/1.717, allocations: 346.4 kB / 0.5933 GB, free: 64 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002804/1.718, allocations: 112.6 kB / 0.5934 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003073/1.718, allocations: 147.2 kB / 0.5935 GB, free: 15.81 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/1.718, allocations: 115.4 kB / 0.5937 GB, free: 15.7 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.191e-05/1.718, allocations: 16 kB / 0.5937 GB, free: 15.68 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03264/1.751, allocations: 17.9 MB / 0.6111 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.606e-05/1.751, allocations: 47.78 kB / 0.6112 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001668/1.751, allocations: 127.4 kB / 0.6113 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01809/1.769, allocations: 8.414 MB / 0.6195 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.173e-05/1.769, allocations: 0 / 0.6195 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.144e-06/1.769, allocations: 0 / 0.6195 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.404e-05/1.769, allocations: 0 / 0.6195 GB, free: 5.16 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.004193/1.774, allocations: 1.431 MB / 0.6209 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/1.774, allocations: 11.89 kB / 0.6209 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.793e-05/1.774, allocations: 35.56 kB / 0.621 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002381/1.774, allocations: 235.3 kB / 0.6212 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/1.774, allocations: 16.44 kB / 0.6212 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.793e-05/1.774, allocations: 16 kB / 0.6212 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004417/1.775, allocations: 299.3 kB / 0.6215 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/1.775, allocations: 4 kB / 0.6215 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.239e-05/1.775, allocations: 15.94 kB / 0.6215 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/1.775, allocations: 8 kB / 0.6215 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002574/1.775, allocations: 177 kB / 0.6217 GB, free: 2.816 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.03851/1.813, allocations: 18.11 MB / 0.6394 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003545/1.814, allocations: 134.6 kB / 0.6395 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/1.814, allocations: 96.78 kB / 0.6396 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3475/2.161, allocations: 77.72 MB / 0.7155 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/2.161, allocations: 32.64 kB / 0.7155 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.495e-06/2.161, allocations: 1.188 kB / 0.7155 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0009924/2.162, allocations: 451.4 kB / 0.716 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.276e-05/2.163, allocations: 52.56 kB / 0.716 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001999/2.163, allocations: 222.3 kB / 0.7162 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/2.163, allocations: 26.7 kB / 0.7163 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.65e-05/2.163, allocations: 155.1 kB / 0.7164 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.96e-05/2.163, allocations: 109.6 kB / 0.7165 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.502e-05/2.163, allocations: 51.59 kB / 0.7166 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.701e-05/2.163, allocations: 332.6 kB / 0.7169 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.52e-05/2.163, allocations: 69.92 kB / 0.7169 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000112/2.163, allocations: 112.6 kB / 0.7171 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002234/2.163, allocations: 211 kB / 0.7173 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/2.163, allocations: 1.312 kB / 0.7173 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000409/2.164, allocations: 303.5 kB / 0.7175 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/2.164, allocations: 9.703 kB / 0.7176 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/2.164, allocations: 3.094 kB / 0.7176 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000863/2.165, allocations: 150.2 kB / 0.7177 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.33e-05/2.165, allocations: 18.75 kB / 0.7177 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003823/2.165, allocations: 0.6263 MB / 0.7183 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/2.165, allocations: 32.11 kB / 0.7184 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/2.165, allocations: 5.188 kB / 0.7184 GB, free: 211.2 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 9.771e-05/2.165, allocations: 143.8 kB / 0.7185 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.969e-05/2.166, allocations: 20.91 kB / 0.7185 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005851/2.166, allocations: 0.6031 MB / 0.7191 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002968/2.166, allocations: 221.5 kB / 0.7193 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/2.166, allocations: 0 / 0.7193 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/2.166, allocations: 4.641 kB / 0.7193 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007312/2.167, allocations: 0.7366 MB / 0.72 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/2.167, allocations: 0.9375 kB / 0.72 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.038e-05/2.167, allocations: 15.12 kB / 0.7201 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003364/2.168, allocations: 110.9 kB / 0.7202 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/2.168, allocations: 7.812 kB / 0.7202 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003385/2.168, allocations: 0.6479 MB / 0.7208 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/2.168, allocations: 0 / 0.7208 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003609/2.168, allocations: 349.5 kB / 0.7211 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.435e-05/2.168, allocations: 112.3 kB / 0.7213 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.942e-05/2.168, allocations: 9.938 kB / 0.7213 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/2.169, allocations: 3.125 kB / 0.7213 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.657e-05/2.169, allocations: 11.7 kB / 0.7213 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/2.169, allocations: 5.125 kB / 0.7213 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001902/2.169, allocations: 237.5 kB / 0.7215 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/2.169, allocations: 0.6562 kB / 0.7215 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002634/2.171, allocations: 1.184 MB / 0.7227 GB, free: 209.5 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.004221/2.176, allocations: 1.736 MB / 0.7244 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005255/2.176, allocations: 237.4 kB / 0.7246 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/2.176, allocations: 0 / 0.7246 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001877/2.176, allocations: 90.25 kB / 0.7247 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007126/2.177, allocations: 124.4 kB / 0.7248 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006957/2.178, allocations: 0.4948 MB / 0.7253 GB, free: 209 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001662/2.178, allocations: 0.7677 MB / 0.726 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.473e-05/2.178, allocations: 23.97 kB / 0.726 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.942e-05/2.178, allocations: 21.22 kB / 0.7261 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of SimCode: time 3.31e-07/2.178, allocations: 0 / 0.7261 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of Templates: time 0.04277/2.221, allocations: 42.43 MB / 0.7675 GB, free: 179.5 MB / 0.5919 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)