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.8324/0.8324, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003028/0.0003028, allocations: 16.78 kB / 237 MB, free: 1.824 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0568/0.05712, allocations: 31.34 MB / 268.4 MB, free: 7.133 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.693/1.75, allocations: 294.7 MB / 0.5499 GB, free: 13.07 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03951/1.789, allocations: 34.44 MB / 0.5835 GB, free: 10.5 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001906/1.79, allocations: 8 kB / 0.5835 GB, free: 10.49 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.0003342/1.79, allocations: 103.4 kB / 0.5836 GB, free: 10.39 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002016/1.79, allocations: 99.17 kB / 0.5837 GB, free: 10.29 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.02431/1.814, allocations: 9.569 MB / 0.5931 GB, free: 0.707 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005457/1.815, allocations: 350.4 kB / 0.5934 GB, free: 372 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002131/1.815, allocations: 108.5 kB / 0.5935 GB, free: 268 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/1.815, allocations: 151.3 kB / 0.5936 GB, free: 116 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/1.816, allocations: 107.4 kB / 0.5937 GB, free: 8 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.16e-05/1.816, allocations: 20.05 kB / 0.5938 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03124/1.847, allocations: 17.9 MB / 0.6112 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.021e-05/1.847, allocations: 47.73 kB / 0.6113 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001749/1.847, allocations: 127.4 kB / 0.6114 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01817/1.865, allocations: 8.427 MB / 0.6196 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/1.865, allocations: 0 / 0.6196 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.352e-06/1.865, allocations: 4 kB / 0.6196 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.044e-05/1.865, allocations: 0 / 0.6196 GB, free: 5.445 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.003767/1.869, allocations: 1.486 MB / 0.6211 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/1.869, allocations: 11.89 kB / 0.6211 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.072e-05/1.869, allocations: 39.73 kB / 0.6211 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/1.87, allocations: 226.6 kB / 0.6214 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/1.87, allocations: 12.44 kB / 0.6214 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.881e-05/1.87, allocations: 20 kB / 0.6214 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004286/1.87, allocations: 307.3 kB / 0.6217 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/1.87, allocations: 3.938 kB / 0.6217 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/1.87, allocations: 4 kB / 0.6217 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.662e-05/1.87, allocations: 15.98 kB / 0.6217 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002518/1.87, allocations: 169 kB / 0.6219 GB, free: 3.047 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.03841/1.909, allocations: 18.13 MB / 0.6396 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003559/1.909, allocations: 134.5 kB / 0.6397 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/1.909, allocations: 84.84 kB / 0.6398 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3471/2.256, allocations: 77.73 MB / 0.7157 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/2.256, allocations: 39.41 kB / 0.7157 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.124e-06/2.256, allocations: 0 / 0.7157 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0009983/2.257, allocations: 449.7 kB / 0.7162 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.103e-05/2.257, allocations: 52.72 kB / 0.7162 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000216/2.258, allocations: 218.5 kB / 0.7164 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/2.258, allocations: 29.14 kB / 0.7164 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.958e-05/2.258, allocations: 155.1 kB / 0.7166 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.134e-05/2.258, allocations: 113 kB / 0.7167 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.633e-05/2.258, allocations: 49.39 kB / 0.7167 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 7.191e-05/2.258, allocations: 336.5 kB / 0.7171 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/2.258, allocations: 70.8 kB / 0.7171 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/2.258, allocations: 113.6 kB / 0.7172 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002419/2.259, allocations: 212.1 kB / 0.7174 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/2.259, allocations: 0 / 0.7174 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004079/2.259, allocations: 300.2 kB / 0.7177 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/2.259, allocations: 7.875 kB / 0.7177 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/2.259, allocations: 1.188 kB / 0.7177 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008601/2.26, allocations: 160.5 kB / 0.7179 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.364e-05/2.26, allocations: 7.844 kB / 0.7179 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003753/2.26, allocations: 0.6413 MB / 0.7185 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/2.26, allocations: 24.2 kB / 0.7186 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/2.26, allocations: 12.17 kB / 0.7186 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.815e-05/2.261, allocations: 131 kB / 0.7187 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.966e-05/2.261, allocations: 26.47 kB / 0.7187 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006252/2.261, allocations: 0.6098 MB / 0.7193 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003078/2.262, allocations: 223.3 kB / 0.7195 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/2.262, allocations: 3.594 kB / 0.7195 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/2.262, allocations: 1.359 kB / 0.7195 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007484/2.262, allocations: 0.7281 MB / 0.7202 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/2.262, allocations: 4 kB / 0.7202 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.372e-05/2.262, allocations: 19.55 kB / 0.7203 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003435/2.263, allocations: 114.7 kB / 0.7204 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/2.263, allocations: 1.125 kB / 0.7204 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003264/2.263, allocations: 0.6486 MB / 0.721 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/2.263, allocations: 4.062 kB / 0.721 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003629/2.263, allocations: 341.7 kB / 0.7213 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.766e-05/2.264, allocations: 112 kB / 0.7214 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.937e-05/2.264, allocations: 16.19 kB / 0.7215 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/2.264, allocations: 2.656 kB / 0.7215 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.82e-05/2.264, allocations: 9.781 kB / 0.7215 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-06/2.264, allocations: 8.031 kB / 0.7215 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001873/2.264, allocations: 235.2 kB / 0.7217 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.31e-07/2.264, allocations: 0 / 0.7217 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002758/2.267, allocations: 1.205 MB / 0.7229 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.004398/2.271, allocations: 1.748 MB / 0.7246 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005139/2.272, allocations: 238.1 kB / 0.7248 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/2.272, allocations: 0 / 0.7248 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001904/2.272, allocations: 90.88 kB / 0.7249 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.0007137/2.273, allocations: 124.5 kB / 0.725 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007383/2.273, allocations: 0.5084 MB / 0.7255 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000164/2.273, allocations: 0.7653 MB / 0.7263 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.737e-05/2.274, allocations: 24.44 kB / 0.7263 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.761e-05/2.274, allocations: 21.62 kB / 0.7263 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of SimCode: time 3.31e-07/2.274, allocations: 0 / 0.7263 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.04404/2.318, allocations: 42.42 MB / 0.7677 GB, free: 179.7 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)