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.777/0.777, allocations: 150.9 MB / 167.2 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003274/0.0003274, allocations: 14.47 kB / 237.7 MB, free: 1.996 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04929/0.04963, allocations: 31.35 MB / 269 MB, free: 7.227 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.535/1.584, allocations: 294.6 MB / 0.5505 GB, free: 13.04 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03865/1.623, allocations: 34.43 MB / 0.5841 GB, free: 10.47 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001989/1.623, allocations: 4 kB / 0.5841 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.0003876/1.624, allocations: 111.3 kB / 0.5842 GB, free: 10.36 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002658/1.624, allocations: 99.17 kB / 0.5843 GB, free: 10.26 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.02289/1.647, allocations: 9.572 MB / 0.5936 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004898/1.647, allocations: 346.4 kB / 0.594 GB, free: 340 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000222/1.648, allocations: 112.5 kB / 0.5941 GB, free: 232 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002674/1.648, allocations: 147.3 kB / 0.5942 GB, free: 84 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000182/1.648, allocations: 115.4 kB / 0.5943 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.407e-05/1.648, allocations: 20 kB / 0.5943 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0294/1.678, allocations: 17.89 MB / 0.6118 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.315e-05/1.678, allocations: 47.78 kB / 0.6119 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001682/1.678, allocations: 131.3 kB / 0.612 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01694/1.695, allocations: 8.414 MB / 0.6202 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.944e-06/1.695, allocations: 0 / 0.6202 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.974e-06/1.695, allocations: 0 / 0.6202 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.385e-05/1.695, allocations: 0 / 0.6202 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.003728/1.699, allocations: 1.431 MB / 0.6216 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/1.699, allocations: 15.89 kB / 0.6216 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.903e-05/1.699, allocations: 31.56 kB / 0.6216 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/1.699, allocations: 226.5 kB / 0.6219 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/1.699, allocations: 16.44 kB / 0.6219 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.476e-05/1.699, allocations: 20 kB / 0.6219 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004041/1.699, allocations: 303.3 kB / 0.6222 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/1.699, allocations: 3.938 kB / 0.6222 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/1.699, allocations: 8 kB / 0.6222 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.154e-05/1.699, allocations: 15.98 kB / 0.6222 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000243/1.7, allocations: 169 kB / 0.6224 GB, free: 3.094 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.03653/1.736, allocations: 18.11 MB / 0.6401 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003123/1.737, allocations: 146.5 kB / 0.6402 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/1.737, allocations: 88.84 kB / 0.6403 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3252/2.062, allocations: 77.72 MB / 0.7162 GB, free: 212.9 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.239e-05/2.062, allocations: 30.56 kB / 0.7162 GB, free: 212.9 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.134e-06/2.062, allocations: 1.469 kB / 0.7162 GB, free: 212.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0009241/2.063, allocations: 453.3 kB / 0.7166 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.03e-05/2.063, allocations: 52.12 kB / 0.7167 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/2.063, allocations: 226.3 kB / 0.7169 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.538e-06/2.063, allocations: 25.7 kB / 0.7169 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.818e-05/2.063, allocations: 145.8 kB / 0.7171 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.261e-05/2.063, allocations: 115.6 kB / 0.7172 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.394e-05/2.063, allocations: 48.12 kB / 0.7172 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.722e-05/2.063, allocations: 337.4 kB / 0.7176 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.163e-05/2.063, allocations: 70.08 kB / 0.7176 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/2.064, allocations: 114.6 kB / 0.7177 GB, free: 212 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/2.064, allocations: 206.9 kB / 0.7179 GB, free: 212 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/2.064, allocations: 0 / 0.7179 GB, free: 212 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003526/2.064, allocations: 307.3 kB / 0.7182 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/2.064, allocations: 5.312 kB / 0.7182 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/2.064, allocations: 3.781 kB / 0.7182 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008259/2.065, allocations: 155.2 kB / 0.7184 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.789e-05/2.065, allocations: 12.16 kB / 0.7184 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004013/2.065, allocations: 0.6339 MB / 0.719 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/2.066, allocations: 27.56 kB / 0.719 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.312e-05/2.066, allocations: 5.594 kB / 0.719 GB, free: 211.4 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 0.0001071/2.066, allocations: 138.4 kB / 0.7192 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.449e-05/2.066, allocations: 26.19 kB / 0.7192 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006332/2.066, allocations: 0.6028 MB / 0.7198 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002809/2.067, allocations: 216 kB / 0.72 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/2.067, allocations: 4 kB / 0.72 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/2.067, allocations: 3.422 kB / 0.72 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006778/2.067, allocations: 0.734 MB / 0.7207 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/2.067, allocations: 3.062 kB / 0.7207 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.789e-05/2.067, allocations: 14.61 kB / 0.7207 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003014/2.068, allocations: 112.6 kB / 0.7208 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/2.068, allocations: 0.625 kB / 0.7208 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002878/2.068, allocations: 0.6562 MB / 0.7215 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/2.068, allocations: 3.422 kB / 0.7215 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003185/2.068, allocations: 341 kB / 0.7218 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 4.974e-05/2.068, allocations: 108 kB / 0.7219 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.732e-05/2.069, allocations: 21.84 kB / 0.7219 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.386e-05/2.069, allocations: 3.562 kB / 0.7219 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.988e-05/2.069, allocations: 8.891 kB / 0.7219 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/2.069, allocations: 2.594 kB / 0.7219 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001684/2.069, allocations: 240.4 kB / 0.7222 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/2.069, allocations: 0 / 0.7222 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00254/2.071, allocations: 1.185 MB / 0.7233 GB, free: 209.7 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.003796/2.075, allocations: 1.729 MB / 0.725 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004745/2.076, allocations: 234.9 kB / 0.7252 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/2.076, allocations: 0 / 0.7252 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001713/2.076, allocations: 95.97 kB / 0.7253 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006651/2.077, allocations: 124.1 kB / 0.7255 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006776/2.077, allocations: 0.5332 MB / 0.726 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001538/2.077, allocations: 0.7722 MB / 0.7267 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.902e-05/2.077, allocations: 19.34 kB / 0.7267 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of SimCode: time 2.21e-07/2.077, allocations: 0 / 0.7267 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.02741/2.105, allocations: 24.85 MB / 0.751 GB, free: 197.3 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)