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.8439/0.8439, allocations: 152.6 MB / 171.4 MB, free: 6.004 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.0006174/0.0006174, allocations: 15.97 kB / 248.4 MB, free: 5.719 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1725, allocations: 33.07 MB / 281.5 MB, free: 3.578 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.537/1.71, allocations: 301.2 MB / 0.569 GB, free: 5.488 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2722/1.982, allocations: 35.26 MB / 0.6035 GB, free: 5.32 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003087/1.982, allocations: 4.25 kB / 0.6035 GB, free: 5.32 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/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.000641/1.983, allocations: 292.5 kB / 0.6038 GB, free: 5.238 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000364/1.983, allocations: 280.6 kB / 0.604 GB, free: 5.145 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.02625/2.01, allocations: 10.07 MB / 0.6139 GB, free: 332 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.000698/2.01, allocations: 0.4934 MB / 0.6143 GB, free: 40 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002661/2.011, allocations: 155.7 kB / 0.6145 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003509/2.011, allocations: 240.9 kB / 0.6147 GB, free: 15.82 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003693/2.011, allocations: 330.8 kB / 0.615 GB, free: 15.65 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.676e-05/2.011, allocations: 23.91 kB / 0.6151 GB, free: 15.65 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03662/2.048, allocations: 18.06 MB / 0.6327 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.00026/2.048, allocations: 172.3 kB / 0.6329 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003428/2.049, allocations: 271 kB / 0.6331 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02131/2.07, allocations: 8.88 MB / 0.6418 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/2.07, allocations: 1.25 kB / 0.6418 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.443e-06/2.07, allocations: 0 / 0.6418 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.638e-06/2.07, allocations: 3.938 kB / 0.6418 GB, free: 6.105 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004761/2.075, allocations: 1.818 MB / 0.6436 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/2.075, allocations: 8.031 kB / 0.6436 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/2.075, allocations: 75.48 kB / 0.6436 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006374/2.076, allocations: 441.6 kB / 0.6441 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.656e-05/2.076, allocations: 22.31 kB / 0.6441 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.057e-05/2.076, allocations: 24 kB / 0.6441 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006268/2.076, allocations: 438.3 kB / 0.6445 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/2.076, allocations: 0 / 0.6445 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/2.076, allocations: 12 kB / 0.6445 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.774e-05/2.076, allocations: 15.98 kB / 0.6446 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004622/2.077, allocations: 346.5 kB / 0.6449 GB, free: 2.84 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.0381/2.115, allocations: 11.82 MB / 0.6564 GB, free: 6.875 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006023/2.116, allocations: 146.6 kB / 0.6566 GB, free: 6.723 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/2.116, allocations: 85.45 kB / 0.6567 GB, free: 6.637 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1504/2.266, allocations: 42.49 MB / 0.6982 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/2.266, allocations: 34.56 kB / 0.6982 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=38): time 3.506e-06/2.266, allocations: 4.641 kB / 0.6982 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of matching and sorting (n=38): time 0.001872/2.268, allocations: 0.5276 MB / 0.6987 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.269e-05/2.268, allocations: 111.5 kB / 0.6988 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/2.269, allocations: 1 MB / 0.6998 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/2.269, allocations: 29.7 kB / 0.6998 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002498/2.27, allocations: 300.5 kB / 0.7001 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/2.27, allocations: 142.8 kB / 0.7002 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/2.27, allocations: 61.69 kB / 0.7003 GB, free: 9.828 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001881/2.27, allocations: 378.8 kB / 0.7007 GB, free: 9.449 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/2.27, allocations: 158.2 kB / 0.7008 GB, free: 9.297 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002732/2.27, allocations: 243 kB / 0.701 GB, free: 9.031 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004169/2.271, allocations: 344 kB / 0.7014 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/2.271, allocations: 0 / 0.7014 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007963/2.272, allocations: 0.5308 MB / 0.7019 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/2.272, allocations: 15.92 kB / 0.7019 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/2.272, allocations: 0 / 0.7019 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001642/2.273, allocations: 212.8 kB / 0.7021 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.939e-05/2.273, allocations: 33.3 kB / 0.7021 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007213/2.274, allocations: 0.6703 MB / 0.7028 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002399/2.274, allocations: 47.61 kB / 0.7028 GB, free: 7.129 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.336e-05/2.274, allocations: 8 kB / 0.7028 GB, free: 7.121 MB / 0.5606 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.0002824/2.275, allocations: 253.7 kB / 0.7031 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.666e-05/2.275, allocations: 69.3 kB / 0.7032 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009056/2.276, allocations: 0.6947 MB / 0.7038 GB, free: 6.027 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003831/2.276, allocations: 243 kB / 0.7041 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/2.276, allocations: 0 / 0.7041 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/2.276, allocations: 0 / 0.7041 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001443/2.278, allocations: 0.9504 MB / 0.705 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.145e-06/2.278, allocations: 0.8438 kB / 0.705 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.309e-05/2.278, allocations: 21.81 kB / 0.705 GB, free: 4.758 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009691/2.279, allocations: 177.8 kB / 0.7052 GB, free: 4.582 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/2.279, allocations: 8 kB / 0.7052 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007335/2.279, allocations: 0.7044 MB / 0.7059 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/2.279, allocations: 0 / 0.7059 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005683/2.28, allocations: 409.5 kB / 0.7063 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002343/2.28, allocations: 99.47 kB / 0.7064 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.365e-05/2.28, allocations: 16.92 kB / 0.7064 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/2.28, allocations: 4 kB / 0.7064 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.615e-05/2.28, allocations: 23.91 kB / 0.7064 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/2.28, allocations: 4 kB / 0.7064 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001047/2.281, allocations: 0.8192 MB / 0.7072 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/2.281, allocations: 0 / 0.7072 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003752/2.285, allocations: 1.267 MB / 0.7084 GB, free: 1.195 MB / 0.5606 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.005878/2.291, allocations: 1.801 MB / 0.7102 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001036/2.292, allocations: 341.3 kB / 0.7105 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/2.292, allocations: 0 / 0.7105 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003052/2.292, allocations: 97.33 kB / 0.7106 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009599/2.293, allocations: 150 kB / 0.7108 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001915/2.295, allocations: 1.138 MB / 0.7119 GB, free: 13.69 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007089/2.296, allocations: 0.9323 MB / 0.7128 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001748/2.296, allocations: 59.47 kB / 0.7128 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.98e-05/2.296, allocations: 27.44 kB / 0.7129 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of SimCode: time 7.21e-07/2.296, allocations: 0 / 0.7129 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of Templates: time 0.06953/2.366, allocations: 45.99 MB / 0.7578 GB, free: 15.12 MB / 0.6231 GB " [Timeout remaining time 657] 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: 8.521373680792749] Failed to read output from testmodel.py, exit status != 0: 2.7122236248105764 2.722257955 0.64978939 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f3b986d97b0>