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.7605/0.7605, allocations: 150.9 MB / 167.2 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003298/0.0003299, allocations: 14.7 kB / 237.7 MB, free: 1.809 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05233/0.05268, allocations: 31.35 MB / 269 MB, free: 7.109 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.453/1.506, allocations: 294.6 MB / 0.5505 GB, free: 13.09 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03541/1.541, allocations: 34.43 MB / 0.5841 GB, free: 10.52 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002374/1.541, allocations: 0 / 0.5841 GB, free: 10.52 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.0003973/1.542, allocations: 111.3 kB / 0.5842 GB, free: 10.41 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001961/1.542, allocations: 95.16 kB / 0.5843 GB, free: 10.31 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.02195/1.564, allocations: 9.575 MB / 0.5936 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004923/1.565, allocations: 346.4 kB / 0.594 GB, free: 388 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001806/1.565, allocations: 112.5 kB / 0.5941 GB, free: 280 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/1.565, allocations: 147.3 kB / 0.5942 GB, free: 132 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001328/1.565, allocations: 111.4 kB / 0.5943 GB, free: 20 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.352e-05/1.565, allocations: 16 kB / 0.5943 GB, free: 4 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0276/1.593, allocations: 17.9 MB / 0.6118 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.047e-05/1.593, allocations: 43.8 kB / 0.6119 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001681/1.593, allocations: 131.3 kB / 0.612 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01733/1.61, allocations: 8.41 MB / 0.6202 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/1.61, allocations: 0 / 0.6202 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.653e-06/1.61, allocations: 0 / 0.6202 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.416e-06/1.61, allocations: 0 / 0.6202 GB, free: 5.477 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.003855/1.614, allocations: 1.431 MB / 0.6216 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/1.614, allocations: 15.88 kB / 0.6216 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.958e-05/1.614, allocations: 35.56 kB / 0.6216 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/1.615, allocations: 230.5 kB / 0.6219 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.528e-05/1.615, allocations: 12.44 kB / 0.6219 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.646e-05/1.615, allocations: 20 kB / 0.6219 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003919/1.615, allocations: 295.3 kB / 0.6222 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/1.615, allocations: 7.938 kB / 0.6222 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.185e-05/1.615, allocations: 12 kB / 0.6222 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/1.615, allocations: 11.98 kB / 0.6222 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002351/1.615, allocations: 169 kB / 0.6224 GB, free: 3.141 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.0356/1.651, allocations: 18.11 MB / 0.64 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000312/1.651, allocations: 138.5 kB / 0.6402 GB, free: 15 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/1.651, allocations: 92.84 kB / 0.6403 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3034/1.955, allocations: 77.72 MB / 0.7162 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/1.955, allocations: 34.44 kB / 0.7162 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 1.903e-06/1.955, allocations: 1.281 kB / 0.7162 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0008698/1.956, allocations: 453 kB / 0.7166 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.428e-05/1.956, allocations: 55.88 kB / 0.7167 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001726/1.956, allocations: 220 kB / 0.7169 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.034e-05/1.956, allocations: 30.45 kB / 0.7169 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.222e-05/1.956, allocations: 143.9 kB / 0.7171 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.909e-05/1.956, allocations: 113.6 kB / 0.7172 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-05/1.956, allocations: 50.19 kB / 0.7172 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.292e-05/1.956, allocations: 334 kB / 0.7175 GB, free: 212 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.335e-05/1.956, allocations: 72.61 kB / 0.7176 GB, free: 212 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/1.956, allocations: 115.8 kB / 0.7177 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002012/1.957, allocations: 203.2 kB / 0.7179 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/1.957, allocations: 0 / 0.7179 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003464/1.957, allocations: 302.7 kB / 0.7182 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/1.957, allocations: 9.75 kB / 0.7182 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/1.957, allocations: 1.719 kB / 0.7182 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008201/1.958, allocations: 158.4 kB / 0.7184 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.154e-05/1.958, allocations: 13.38 kB / 0.7184 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003341/1.958, allocations: 0.632 MB / 0.719 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.738e-05/1.958, allocations: 26.03 kB / 0.719 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/1.958, allocations: 4.406 kB / 0.719 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.726e-05/1.958, allocations: 149.3 kB / 0.7192 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.782e-05/1.959, allocations: 20.62 kB / 0.7192 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005344/1.959, allocations: 0.6011 MB / 0.7198 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002765/1.959, allocations: 224.1 kB / 0.72 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/1.959, allocations: 4 kB / 0.72 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/1.959, allocations: 1.375 kB / 0.72 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006623/1.96, allocations: 0.732 MB / 0.7207 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/1.96, allocations: 0 / 0.7207 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.92e-05/1.96, allocations: 20.64 kB / 0.7207 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002931/1.96, allocations: 110.4 kB / 0.7208 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/1.96, allocations: 4.375 kB / 0.7208 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002829/1.961, allocations: 0.6505 MB / 0.7215 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/1.961, allocations: 0 / 0.7215 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003303/1.961, allocations: 351.8 kB / 0.7218 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.652e-05/1.961, allocations: 109.1 kB / 0.7219 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.738e-05/1.961, allocations: 16.28 kB / 0.7219 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.879e-05/1.961, allocations: 0.6562 kB / 0.7219 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.398e-05/1.961, allocations: 12.59 kB / 0.7219 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/1.961, allocations: 2.688 kB / 0.7219 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001645/1.961, allocations: 234 kB / 0.7222 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/1.961, allocations: 0 / 0.7222 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002396/1.964, allocations: 1.187 MB / 0.7233 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.003635/1.968, allocations: 1.731 MB / 0.725 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004355/1.968, allocations: 239.8 kB / 0.7252 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/1.968, allocations: 0 / 0.7252 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00016/1.968, allocations: 87.81 kB / 0.7253 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.000625/1.969, allocations: 130.5 kB / 0.7255 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006689/1.969, allocations: 0.5311 MB / 0.726 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001488/1.97, allocations: 0.7646 MB / 0.7267 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.697e-05/1.97, allocations: 26.44 kB / 0.7267 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of SimCode: time 2.2e-07/1.97, allocations: 0 / 0.7267 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.02701/1.997, allocations: 24.9 MB / 0.7511 GB, free: 197.2 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)