Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.8766/0.8766, 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005706/0.0005706, allocations: 15.91 kB / 248.5 MB, free: 5.684 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1731, allocations: 33.05 MB / 281.5 MB, free: 3.562 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend): time 1.569/1.742, allocations: 301.3 MB / 0.5691 GB, free: 5.449 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.4534/2.196, allocations: 191.2 MB / 0.7558 GB, free: 0.9531 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003081/2.196, allocations: 15.88 kB / 0.7559 GB, free: 0.9375 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59: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 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47: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 4.0.0-master/Fluid/PressureLosses/Bend.mo:57:3-58: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 4.0.0-master/Fluid/PressureLosses/Bend.mo:59:3-60:67: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.0003816/2.196, allocations: 207.2 kB / 0.7561 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004378/2.197, allocations: 276 kB / 0.7563 GB, free: 476 kB / 0.6075 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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.03284/2.23, allocations: 12.63 MB / 0.7686 GB, free: 3.832 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.001125/2.231, allocations: 0.5419 MB / 0.7692 GB, free: 3.289 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004216/2.231, allocations: 239 kB / 0.7694 GB, free: 3.051 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004355/2.232, allocations: 263.2 kB / 0.7697 GB, free: 2.793 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005044/2.232, allocations: 378.9 kB / 0.77 GB, free: 2.422 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 7.431e-05/2.232, allocations: 40 kB / 0.7701 GB, free: 2.383 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04143/2.274, allocations: 21.18 MB / 0.7907 GB, free: 13.17 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0002731/2.274, allocations: 216.7 kB / 0.7909 GB, free: 12.96 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0003512/2.274, allocations: 322.1 kB / 0.7913 GB, free: 12.64 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.02702/2.301, allocations: 10.78 MB / 0.8018 GB, free: 1.832 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/2.301, allocations: 0 / 0.8018 GB, free: 1.832 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.112e-06/2.301, allocations: 0 / 0.8018 GB, free: 1.832 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.044e-05/2.301, allocations: 0 / 0.8018 GB, free: 1.832 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.00648/2.308, allocations: 2.252 MB / 0.804 GB, free: 15.54 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/2.308, allocations: 8.031 kB / 0.804 GB, free: 15.53 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001614/2.308, allocations: 99.36 kB / 0.8041 GB, free: 15.43 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007737/2.309, allocations: 496.7 kB / 0.8046 GB, free: 14.92 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.837e-05/2.309, allocations: 29 kB / 0.8046 GB, free: 14.89 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.116e-05/2.309, allocations: 36 kB / 0.8046 GB, free: 14.86 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007669/2.309, allocations: 499.4 kB / 0.8051 GB, free: 14.33 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/2.309, allocations: 1.031 kB / 0.8051 GB, free: 14.33 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.1e-05/2.31, allocations: 16 kB / 0.8051 GB, free: 14.32 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/2.31, allocations: 8 kB / 0.8051 GB, free: 14.31 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006332/2.31, allocations: 422.2 kB / 0.8055 GB, free: 13.9 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008975/2.319, allocations: 4.36 MB / 0.8098 GB, free: 9.348 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005726/2.32, allocations: 111.1 kB / 0.8099 GB, free: 9.23 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.012e-05/2.32, allocations: 37.88 kB / 0.8099 GB, free: 9.191 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4524/2.772, allocations: 86.45 MB / 0.8944 GB, free: 269.6 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.311e-05/2.772, allocations: 40.81 kB / 0.8944 GB, free: 269.6 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=11): time 1.953e-06/2.772, allocations: 0 / 0.8944 GB, free: 269.6 MB / 0.6856 GB Notification: Performance of matching and sorting (n=11): time 0.001997/2.774, allocations: 392.1 kB / 0.8948 GB, free: 269.3 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/2.774, allocations: 114.6 kB / 0.8949 GB, free: 269.1 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/2.775, allocations: 1.067 MB / 0.8959 GB, free: 268.1 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/2.775, allocations: 29.7 kB / 0.8959 GB, free: 268.1 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001871/2.776, allocations: 399.8 kB / 0.8963 GB, free: 267.8 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 2.507e-05/2.776, allocations: 40.77 kB / 0.8964 GB, free: 267.7 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.684e-05/2.776, allocations: 77.64 kB / 0.8964 GB, free: 267.7 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 7.368e-05/2.776, allocations: 378.8 kB / 0.8968 GB, free: 267.3 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/2.776, allocations: 127.9 kB / 0.8969 GB, free: 267.2 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/2.776, allocations: 253.1 kB / 0.8972 GB, free: 266.8 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002755/2.776, allocations: 320.6 kB / 0.8975 GB, free: 266.5 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/2.776, allocations: 4.5 kB / 0.8975 GB, free: 266.5 MB / 0.6856 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001228/2.778, allocations: 0.5595 MB / 0.898 GB, free: 266 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/2.778, allocations: 8 kB / 0.898 GB, free: 265.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/2.778, allocations: 4 kB / 0.898 GB, free: 265.9 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001479/2.779, allocations: 200.9 kB / 0.8982 GB, free: 265.8 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/2.779, allocations: 46.78 kB / 0.8983 GB, free: 265.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004335/2.78, allocations: 0.634 MB / 0.8989 GB, free: 265.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002843/2.78, allocations: 47.8 kB / 0.8989 GB, free: 265 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.09e-05/2.78, allocations: 12 kB / 0.8989 GB, free: 265 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,SinkP1.fluid,Bend.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Bend.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002147/2.78, allocations: 267 kB / 0.8992 GB, free: 264.7 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.262e-05/2.78, allocations: 71.59 kB / 0.8993 GB, free: 264.7 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006183/2.781, allocations: 255.5 kB / 0.8995 GB, free: 264.4 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/2.781, allocations: 4.703 kB / 0.8995 GB, free: 264.4 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/2.781, allocations: 1.688 kB / 0.8995 GB, free: 264.4 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/2.781, allocations: 3.938 kB / 0.8995 GB, free: 264.4 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001595/2.783, allocations: 0.8089 MB / 0.9003 GB, free: 263.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/2.783, allocations: 0 / 0.9003 GB, free: 263.6 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.184e-05/2.783, allocations: 4 kB / 0.9003 GB, free: 263.6 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001056/2.784, allocations: 167.9 kB / 0.9005 GB, free: 263.4 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/2.784, allocations: 4 kB / 0.9005 GB, free: 263.4 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003904/2.784, allocations: 0.6331 MB / 0.9011 GB, free: 262.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/2.784, allocations: 4.031 kB / 0.9011 GB, free: 262.7 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/2.785, allocations: 407.4 kB / 0.9015 GB, free: 262.3 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001899/2.785, allocations: 101.7 kB / 0.9016 GB, free: 262.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.556e-05/2.785, allocations: 8 kB / 0.9016 GB, free: 262.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/2.786, allocations: 7.984 kB / 0.9016 GB, free: 262.2 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.298e-05/2.786, allocations: 11.17 kB / 0.9016 GB, free: 262.2 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/2.786, allocations: 8 kB / 0.9016 GB, free: 262.2 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0006532/2.786, allocations: 0.7802 MB / 0.9024 GB, free: 261.4 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1e-07/2.786, allocations: 0 / 0.9024 GB, free: 261.4 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003239/2.789, allocations: 1.661 MB / 0.904 GB, free: 260 MB / 0.6856 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 (3): * Single equations (assignments): 2 * 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.00622/2.796, allocations: 2.512 MB / 0.9065 GB, free: 258 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.000517/2.796, allocations: 236.3 kB / 0.9067 GB, free: 257.8 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/2.796, allocations: 320 / 0.9067 GB, free: 257.8 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.000162/2.796, allocations: 53.52 kB / 0.9067 GB, free: 257.7 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005657/2.797, allocations: 103.6 kB / 0.9068 GB, free: 257.6 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/2.798, allocations: 1.067 MB / 0.9079 GB, free: 256.5 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/2.798, allocations: 0.9284 MB / 0.9088 GB, free: 255.6 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001509/2.799, allocations: 72.02 kB / 0.9088 GB, free: 255.5 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.779e-05/2.799, allocations: 39.44 kB / 0.9089 GB, free: 255.5 MB / 0.6856 GB Notification: Performance of SimCode: time 3.2e-07/2.799, allocations: 3.656 kB / 0.9089 GB, free: 255.5 MB / 0.6856 GB Notification: Performance of Templates: time 0.05153/2.85, allocations: 51.74 MB / 0.9594 GB, free: 204.3 MB / 0.6856 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.639726165682077] Failed to read output from testmodel.py, exit status != 0: 2.9764694776386023 2.985142506 0.681666768 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7fe1200197b0>