Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.5727/0.5727, allocations: 120.4 MB / 140.2 MB, free: 12.96 MB / 138.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.146e-06/3.146e-06, allocations: 0 / 217.9 MB, free: 8.656 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.142e-05/2.457e-05, allocations: 5.625 kB / 217.9 MB, free: 8.652 MB / 202.7 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss): time 0.9705/0.9705, allocations: 254.3 MB / 472.2 MB, free: 8.828 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.3918/1.362, allocations: 164.8 MB / 0.622 GB, free: 11.25 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002272/1.363, allocations: 7.938 kB / 0.622 GB, free: 11.25 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourceP.mo:59:3-60:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SinkP.mo:47:3-48:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/PipePressureLoss.mo:33:3-34:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/PipePressureLoss.mo:35:3-36:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0001307/1.363, allocations: 43.58 kB / 0.6221 GB, free: 11.2 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0003169/1.363, allocations: 130.8 kB / 0.6222 GB, free: 11.07 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.02285/1.386, allocations: 11.57 MB / 0.6335 GB, free: 15.5 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.0004837/1.386, allocations: 418.2 kB / 0.6339 GB, free: 15.1 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002146/1.387, allocations: 165 kB / 0.6341 GB, free: 14.94 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001952/1.387, allocations: 239.5 kB / 0.6343 GB, free: 14.71 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/1.387, allocations: 119.6 kB / 0.6344 GB, free: 14.59 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 3.177e-05/1.387, allocations: 36 kB / 0.6344 GB, free: 14.55 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02385/1.411, allocations: 18.65 MB / 0.6527 GB, free: 11.88 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 0.0001368/1.411, allocations: 87.67 kB / 0.6527 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 0.0001636/1.411, allocations: 135.7 kB / 0.6529 GB, free: 11.66 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.02406/1.435, allocations: 12.33 MB / 0.6649 GB, free: 15.3 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/1.435, allocations: 0 / 0.6649 GB, free: 15.3 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.104e-06/1.435, allocations: 0 / 0.6649 GB, free: 15.3 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.544e-06/1.435, allocations: 4 kB / 0.6649 GB, free: 15.29 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.004047/1.439, allocations: 1.771 MB / 0.6666 GB, free: 13.48 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/1.439, allocations: 8.031 kB / 0.6667 GB, free: 13.48 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.849e-05/1.439, allocations: 52.34 kB / 0.6667 GB, free: 13.43 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003241/1.44, allocations: 260.6 kB / 0.667 GB, free: 13.15 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/1.44, allocations: 25 kB / 0.667 GB, free: 13.12 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.132e-05/1.44, allocations: 36 kB / 0.667 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000409/1.44, allocations: 352.9 kB / 0.6673 GB, free: 12.72 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/1.44, allocations: 0 / 0.6673 GB, free: 12.72 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/1.44, allocations: 16.5 kB / 0.6674 GB, free: 12.71 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/1.44, allocations: 8 kB / 0.6674 GB, free: 12.7 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002901/1.44, allocations: 227.2 kB / 0.6676 GB, free: 12.48 MB / 0.6042 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.005199/1.446, allocations: 3.083 MB / 0.6706 GB, free: 9.34 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/1.446, allocations: 75.62 kB / 0.6707 GB, free: 9.258 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.143e-05/1.446, allocations: 28.94 kB / 0.6707 GB, free: 9.227 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1106/1.557, allocations: 67.13 MB / 0.7362 GB, free: 6.031 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/1.557, allocations: 30.56 kB / 0.7363 GB, free: 5.992 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=7): time 2.004e-06/1.557, allocations: 4 kB / 0.7363 GB, free: 5.988 MB / 0.6667 GB Notification: Performance of matching and sorting (n=7): time 0.000628/1.557, allocations: 199.5 kB / 0.7365 GB, free: 5.789 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.07e-05/1.557, allocations: 51.41 kB / 0.7365 GB, free: 5.727 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000267/1.558, allocations: 313.2 kB / 0.7368 GB, free: 5.418 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.14e-05/1.558, allocations: 25.7 kB / 0.7368 GB, free: 5.387 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/1.558, allocations: 236 kB / 0.7371 GB, free: 5.152 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/1.558, allocations: 27.78 kB / 0.7371 GB, free: 5.125 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.468e-05/1.558, allocations: 65.61 kB / 0.7372 GB, free: 5.055 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 9.138e-05/1.558, allocations: 326.8 kB / 0.7375 GB, free: 4.727 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.636e-05/1.558, allocations: 47.92 kB / 0.7375 GB, free: 4.68 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/1.558, allocations: 140.8 kB / 0.7376 GB, free: 4.496 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001735/1.558, allocations: 190.8 kB / 0.7378 GB, free: 4.266 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/1.558, allocations: 0.75 kB / 0.7378 GB, free: 4.266 MB / 0.6667 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003388/1.559, allocations: 270.4 kB / 0.7381 GB, free: 3.992 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/1.559, allocations: 4 kB / 0.7381 GB, free: 3.988 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/1.559, allocations: 4 kB / 0.7381 GB, free: 3.984 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005112/1.559, allocations: 139.6 kB / 0.7382 GB, free: 3.848 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.663e-05/1.559, allocations: 35.92 kB / 0.7383 GB, free: 3.812 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000457/1.56, allocations: 0.5804 MB / 0.7388 GB, free: 3.207 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.494e-05/1.56, allocations: 27.83 kB / 0.7389 GB, free: 3.18 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/1.56, allocations: 8.75 kB / 0.7389 GB, free: 3.172 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,pipePressureLoss.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,pipePressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001285/1.56, allocations: 169.7 kB / 0.739 GB, free: 2.996 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.424e-05/1.56, allocations: 19.86 kB / 0.739 GB, free: 2.977 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002538/1.56, allocations: 159.2 kB / 0.7392 GB, free: 2.805 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/1.56, allocations: 4 kB / 0.7392 GB, free: 2.801 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/1.56, allocations: 0 / 0.7392 GB, free: 2.801 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/1.56, allocations: 3.938 kB / 0.7392 GB, free: 2.797 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001656/1.56, allocations: 217.2 kB / 0.7394 GB, free: 2.555 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/1.56, allocations: 1.031 kB / 0.7394 GB, free: 2.555 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.266e-05/1.56, allocations: 9.234 kB / 0.7394 GB, free: 2.547 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002544/1.561, allocations: 96.58 kB / 0.7395 GB, free: 2.449 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/1.561, allocations: 3.938 kB / 0.7395 GB, free: 2.445 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002554/1.561, allocations: 0.5887 MB / 0.7401 GB, free: 1.832 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/1.561, allocations: 3.984 kB / 0.7401 GB, free: 1.828 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001743/1.561, allocations: 162.1 kB / 0.7403 GB, free: 1.648 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 5.498e-05/1.561, allocations: 35.84 kB / 0.7403 GB, free: 1.613 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.092e-05/1.561, allocations: 11.92 kB / 0.7403 GB, free: 1.602 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.989e-05/1.561, allocations: 0 / 0.7403 GB, free: 1.602 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.996e-05/1.561, allocations: 4 kB / 0.7403 GB, free: 1.598 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/1.561, allocations: 9.328 kB / 0.7403 GB, free: 1.59 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0001372/1.561, allocations: 211 kB / 0.7405 GB, free: 1.387 MB / 0.6667 GB Notification: Performance of sort global known variables: time 6e-08/1.561, allocations: 4 kB / 0.7405 GB, free: 1.383 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.1768/1.738, allocations: 1.458 MB / 0.7419 GB, free: 305.9 MB / 0.6667 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 (2): * Single equations (assignments): 1 * 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.005463/1.744, allocations: 2.395 MB / 0.7443 GB, free: 305.8 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0003183/1.744, allocations: 117.9 kB / 0.7444 GB, free: 305.8 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/1.744, allocations: 0.5 kB / 0.7444 GB, free: 305.8 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 4.903e-05/1.744, allocations: 30.16 kB / 0.7444 GB, free: 305.8 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/1.744, allocations: 65.61 kB / 0.7445 GB, free: 305.8 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006752/1.745, allocations: 0.5117 MB / 0.745 GB, free: 305.5 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.592e-05/1.745, allocations: 170.5 kB / 0.7451 GB, free: 305.4 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.215e-05/1.745, allocations: 27.69 kB / 0.7452 GB, free: 305.4 MB / 0.6667 GB Notification: Performance of SimCode: time 4.21e-07/1.745, allocations: 1.094 kB / 0.7452 GB, free: 305.4 MB / 0.6667 GB Notification: Performance of Templates: time 0.02011/1.765, allocations: 29.02 MB / 0.7735 GB, free: 280.8 MB / 0.6667 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.243541109375656] Failed to read output from testmodel.py, exit status != 0: 1.988227584399283 1.894663103 0.458128769 Calling exit ...