Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7969/0.7969, allocations: 152.6 MB / 169.6 MB, free: 14.93 MB / 142.1 MB " [Timeout remaining time 179] 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.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004731/0.0004731, allocations: 12.97 kB / 245.6 MB, free: 15.64 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05787/0.05834, allocations: 33.05 MB / 278.6 MB, free: 0.6875 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.TestBend): time 1.573/1.631, allocations: 301.2 MB / 0.5662 GB, free: 2.48 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04239/1.674, allocations: 35.22 MB / 0.6006 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002407/1.674, allocations: 4 kB / 0.6006 GB, free: 15.11 MB / 494.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/Bend.mo:55:3-57: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/Bend.mo:58:3-60:43: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.000564/1.674, allocations: 298.9 kB / 0.6009 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000361/1.675, allocations: 278.9 kB / 0.6012 GB, free: 14.55 MB / 494.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.02347/1.698, allocations: 9.981 MB / 0.6109 GB, free: 4.551 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007597/1.699, allocations: 494.8 kB / 0.6114 GB, free: 4.066 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002627/1.699, allocations: 168.5 kB / 0.6116 GB, free: 3.902 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000305/1.7, allocations: 239.1 kB / 0.6118 GB, free: 3.668 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003563/1.7, allocations: 323 kB / 0.6121 GB, free: 3.352 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.265e-05/1.7, allocations: 24 kB / 0.6121 GB, free: 3.328 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03026/1.73, allocations: 18.04 MB / 0.6297 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000227/1.73, allocations: 175.4 kB / 0.6299 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003011/1.731, allocations: 274.2 kB / 0.6302 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01816/1.749, allocations: 8.882 MB / 0.6388 GB, free: 7.914 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/1.749, allocations: 0 / 0.6388 GB, free: 7.914 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.543e-06/1.749, allocations: 0 / 0.6388 GB, free: 7.914 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 2.319e-05/1.749, allocations: 4 kB / 0.6388 GB, free: 7.91 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.00485/1.754, allocations: 1.894 MB / 0.6407 GB, free: 5.957 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/1.754, allocations: 12.03 kB / 0.6407 GB, free: 5.945 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001431/1.754, allocations: 71.53 kB / 0.6408 GB, free: 5.875 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006303/1.755, allocations: 498.8 kB / 0.6412 GB, free: 5.344 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.761e-05/1.755, allocations: 24.5 kB / 0.6413 GB, free: 5.32 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.112e-05/1.755, allocations: 27.94 kB / 0.6413 GB, free: 5.293 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000607/1.755, allocations: 433.2 kB / 0.6417 GB, free: 4.832 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/1.755, allocations: 3.984 kB / 0.6417 GB, free: 4.828 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.674e-05/1.755, allocations: 12 kB / 0.6417 GB, free: 4.816 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.839e-05/1.755, allocations: 19.98 kB / 0.6417 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004414/1.756, allocations: 345.7 kB / 0.6421 GB, free: 4.457 MB / 0.5137 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.03849/1.794, allocations: 18.71 MB / 0.6603 GB, free: 15.87 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005679/1.795, allocations: 150.6 kB / 0.6605 GB, free: 15.71 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/1.795, allocations: 76.84 kB / 0.6606 GB, free: 15.64 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3168/2.112, allocations: 77.91 MB / 0.7366 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/2.112, allocations: 40.36 kB / 0.7367 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 1.984e-06/2.112, allocations: 0 / 0.7367 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.001618/2.113, allocations: 0.5864 MB / 0.7373 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/2.113, allocations: 102.8 kB / 0.7374 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/2.115, allocations: 1.006 MB / 0.7383 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/2.115, allocations: 28.8 kB / 0.7384 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/2.115, allocations: 306.5 kB / 0.7387 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.119e-05/2.115, allocations: 128.8 kB / 0.7388 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.292e-05/2.115, allocations: 70.89 kB / 0.7388 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.356e-05/2.115, allocations: 385.7 kB / 0.7392 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/2.115, allocations: 154.8 kB / 0.7394 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/2.115, allocations: 234.7 kB / 0.7396 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003028/2.116, allocations: 334.3 kB / 0.7399 GB, free: 204.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/2.116, allocations: 6.031 kB / 0.7399 GB, free: 204.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006297/2.116, allocations: 0.5233 MB / 0.7404 GB, free: 204.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/2.116, allocations: 9.297 kB / 0.7404 GB, free: 204.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/2.116, allocations: 3.906 kB / 0.7404 GB, free: 204.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001474/2.118, allocations: 226.8 kB / 0.7407 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.254e-05/2.118, allocations: 21.92 kB / 0.7407 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004904/2.118, allocations: 0.6831 MB / 0.7413 GB, free: 203.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002226/2.119, allocations: 39.59 kB / 0.7414 GB, free: 203.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.928e-05/2.119, allocations: 8.469 kB / 0.7414 GB, free: 203.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (Bend.C2.b,Bend.C1.a,SinkP1.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 (18): * Single equations (assignments): 15 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002025/2.119, allocations: 256.8 kB / 0.7416 GB, free: 203.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.037e-05/2.119, allocations: 65.72 kB / 0.7417 GB, free: 203.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006274/2.119, allocations: 0.6821 MB / 0.7424 GB, free: 203.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002825/2.12, allocations: 240.1 kB / 0.7426 GB, free: 203.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/2.12, allocations: 0 / 0.7426 GB, free: 203.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/2.12, allocations: 0 / 0.7426 GB, free: 203.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009638/2.121, allocations: 0.9744 MB / 0.7435 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/2.121, allocations: 4.5 kB / 0.7435 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.682e-05/2.121, allocations: 16.98 kB / 0.7436 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00078/2.122, allocations: 181.4 kB / 0.7437 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/2.122, allocations: 0 / 0.7437 GB, free: 202.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004266/2.122, allocations: 0.705 MB / 0.7444 GB, free: 202.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/2.122, allocations: 6.375 kB / 0.7444 GB, free: 202.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003644/2.122, allocations: 412.8 kB / 0.7448 GB, free: 202 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/2.123, allocations: 178.2 kB / 0.745 GB, free: 201.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.122e-05/2.123, allocations: 11.22 kB / 0.745 GB, free: 201.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/2.123, allocations: 9.031 kB / 0.745 GB, free: 201.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.274e-05/2.123, allocations: 15.84 kB / 0.745 GB, free: 201.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/2.123, allocations: 6.594 kB / 0.745 GB, free: 201.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0006557/2.123, allocations: 0.8116 MB / 0.7458 GB, free: 201.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 6e-08/2.123, allocations: 0 / 0.7458 GB, free: 201.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00255/2.126, allocations: 1.271 MB / 0.7471 GB, free: 201.6 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (12): * Single equations (assignments): 11 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004828/2.131, allocations: 1.801 MB / 0.7488 GB, free: 201.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005942/2.131, allocations: 335.5 kB / 0.7491 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/2.131, allocations: 0 / 0.7491 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000239/2.132, allocations: 92.8 kB / 0.7492 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000737/2.132, allocations: 160 kB / 0.7494 GB, free: 201 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/2.134, allocations: 1.188 MB / 0.7505 GB, free: 200.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/2.134, allocations: 0.9319 MB / 0.7515 GB, free: 199.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.012e-05/2.134, allocations: 34.91 kB / 0.7515 GB, free: 199.5 MB / 0.5919 GB Notification: Performance of SimCode: time 3.91e-07/2.134, allocations: 0 / 0.7515 GB, free: 199.5 MB / 0.5919 GB Notification: Performance of Templates: time 0.03036/2.164, allocations: 29.88 MB / 0.7807 GB, free: 171.3 MB / 0.5919 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.585091429995373] Failed to read output from testmodel.py, exit status != 0: 2.2819703679997474 2.289961653 0.5390382060000001 Calling exit ...