Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.WaterComponents.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.WaterPump") translateModel(ThermoPower.Test.WaterComponents.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 110.4 kB / 17.75 MB, free: 5.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 183.1 kB / 18.68 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.1 MB / 224.6 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2881/0.2881, allocations: 48.84 MB / 320.7 MB, free: 11 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 71.89 kB / 451.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1052, allocations: 59.16 MB / 0.4984 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.WaterPump): time 0.2611/0.3663, allocations: 34.57 MB / 0.5322 GB, free: 7.07 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009167/0.3755, allocations: 8.588 MB / 0.5406 GB, free: 6.883 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003993/0.376, allocations: 9.5 kB / 0.5406 GB, free: 6.883 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000471/0.3765, allocations: 140.7 kB / 0.5407 GB, free: 6.875 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/Test.mo:1770:19-1772:45:writable] Warning: Pure function 'ThermoPower.Test.WaterComponents.WaterPump.Pump.flowCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. Notification: Performance of NFTyping.typeBindings: time 0.0007457/0.3772, allocations: 279.9 kB / 0.541 GB, free: 6.859 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/Test.mo:1773:19-1775:46:writable] Warning: Pure function 'ThermoPower.Test.WaterComponents.WaterPump.Pump.powerCharacteristic' contains a call to impure function 'Modelica.Math.Matrices.solve'. Notification: Performance of NFTyping.typeClassSections: time 0.01382/0.3911, allocations: 4.493 MB / 0.5454 GB, free: 6.289 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008992/0.392, allocations: 0.5994 MB / 0.5459 GB, free: 6.145 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003668/0.3924, allocations: 212.9 kB / 0.5462 GB, free: 6.129 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000853/0.3932, allocations: 452.9 kB / 0.5466 GB, free: 6.07 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003022/0.3935, allocations: 218.6 kB / 0.5468 GB, free: 6.023 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.165e-05/0.3936, allocations: 24.31 kB / 0.5468 GB, free: 6.023 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01228/0.4059, allocations: 6.208 MB / 0.5529 GB, free: 5.934 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.4061, allocations: 66.56 kB / 0.5529 GB, free: 5.922 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002892/0.4064, allocations: 183.6 kB / 0.5531 GB, free: 5.863 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007152/0.4135, allocations: 3.648 MB / 0.5567 GB, free: 4.219 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4135, allocations: 5.062 kB / 0.5567 GB, free: 4.215 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4135, allocations: 0 / 0.5567 GB, free: 4.215 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.512e-05/0.4136, allocations: 0 / 0.5567 GB, free: 4.215 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.002296/0.4159, allocations: 1.061 MB / 0.5577 GB, free: 3.406 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.4159, allocations: 16.7 kB / 0.5577 GB, free: 3.398 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001741/0.4161, allocations: 61.05 kB / 0.5578 GB, free: 3.363 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004046/0.4165, allocations: 308.7 kB / 0.5581 GB, free: 3.07 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.481e-05/0.4166, allocations: 51.28 kB / 0.5581 GB, free: 3.027 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.053e-05/0.4166, allocations: 23.66 kB / 0.5582 GB, free: 3.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006538/0.4173, allocations: 336.6 kB / 0.5585 GB, free: 2.797 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.4173, allocations: 1.969 kB / 0.5585 GB, free: 2.797 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.535e-05/0.4173, allocations: 10.5 kB / 0.5585 GB, free: 2.789 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.4174, allocations: 5.688 kB / 0.5585 GB, free: 2.789 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007444/0.4181, allocations: 269.9 kB / 0.5588 GB, free: 2.664 MB / 414.1 MB 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.001237/0.4194, allocations: 1.422 MB / 0.5601 GB, free: 1.289 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006012/0.42, allocations: 215 kB / 0.5603 GB, free: 1.172 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003086/0.4203, allocations: 117 kB / 0.5605 GB, free: 1.109 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.063/0.4833, allocations: 32.24 MB / 0.5919 GB, free: 4.996 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.4834, allocations: 34.56 kB / 0.592 GB, free: 4.953 MB / 446.1 MB Notification: Performance of pre-optimization done (n=20): time 2.945e-06/0.4834, allocations: 0 / 0.592 GB, free: 4.953 MB / 446.1 MB Notification: Performance of matching and sorting (n=20): time 0.002755/0.4861, allocations: 0.6628 MB / 0.5926 GB, free: 4.262 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.746e-05/0.4862, allocations: 51.41 kB / 0.5927 GB, free: 4.199 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002833/0.4865, allocations: 288.6 kB / 0.593 GB, free: 3.914 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.4865, allocations: 29.7 kB / 0.593 GB, free: 3.879 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.4866, allocations: 184.3 kB / 0.5932 GB, free: 3.699 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.219e-05/0.4867, allocations: 63.44 kB / 0.5932 GB, free: 3.637 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.933e-05/0.4868, allocations: 53.64 kB / 0.5933 GB, free: 3.578 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.4869, allocations: 338.8 kB / 0.5936 GB, free: 3.238 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003173/0.4873, allocations: 102 kB / 0.5937 GB, free: 3.137 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003187/0.4876, allocations: 123.3 kB / 0.5938 GB, free: 3.004 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006221/0.4882, allocations: 232.3 kB / 0.594 GB, free: 2.766 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.339e-06/0.4882, allocations: 3.938 kB / 0.594 GB, free: 2.762 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0009942/0.4892, allocations: 354 kB / 0.5944 GB, free: 2.406 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.4893, allocations: 4 kB / 0.5944 GB, free: 2.402 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.4893, allocations: 4 kB / 0.5944 GB, free: 2.398 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005559/0.4898, allocations: 112.8 kB / 0.5945 GB, free: 2.285 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/0.4901, allocations: 43.97 kB / 0.5945 GB, free: 2.242 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006243/0.4907, allocations: 0.642 MB / 0.5952 GB, free: 1.574 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000273/0.491, allocations: 43.78 kB / 0.5952 GB, free: 1.531 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.01e-05/0.4911, allocations: 15.97 kB / 0.5952 GB, free: 1.516 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003518/0.4914, allocations: 189.8 kB / 0.5954 GB, free: 1.328 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002924/0.4917, allocations: 127.5 kB / 0.5955 GB, free: 1.191 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005614/0.4923, allocations: 215.4 kB / 0.5957 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.112e-06/0.4923, allocations: 0 / 0.5957 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0008808/0.4932, allocations: 342 kB / 0.596 GB, free: 0.625 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/0.4932, allocations: 11.84 kB / 0.5961 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-06/0.4932, allocations: 0 / 0.5961 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002149/0.4934, allocations: 66.02 kB / 0.5961 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002471/0.4937, allocations: 47.95 kB / 0.5962 GB, free: 0.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001985/0.4957, allocations: 1.827 MB / 0.5979 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/0.496, allocations: 27.88 kB / 0.598 GB, free: 14.52 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.496, allocations: 11.98 kB / 0.598 GB, free: 14.51 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (Pump.int_Np,Pump.inletFluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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 {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000128/0.4961, allocations: 201.5 kB / 0.5982 GB, free: 14.31 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.172e-05/0.4962, allocations: 31.81 kB / 0.5982 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001278/0.4975, allocations: 0.6094 MB / 0.5988 GB, free: 13.66 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.4975, allocations: 0 / 0.5988 GB, free: 13.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.4975, allocations: 0 / 0.5988 GB, free: 13.66 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001287/0.4976, allocations: 140.7 kB / 0.5989 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.874e-05/0.4977, allocations: 0 / 0.5989 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000244/0.4979, allocations: 23.97 kB / 0.599 GB, free: 13.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.81e-05/0.498, allocations: 23.91 kB / 0.599 GB, free: 13.45 MB / 462.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): Pump.w = 2.0 * Pump.w_single 2/2 (1): Pump.w = Valve.Kv * Step.y * (Pump.outfl.p - Sink.p) 3/3 (1): Pump.dp = Pump.outfl.p - Source.p0 4/4 (1): Pump.head = 0.10197162129779283 * Pump.dp / Pump.rho 5/5 (1): Pump.head = if noEvent(Pump.s > 0.0) or not Pump.CheckValve then (Pump.n / 1500.0) ^ 2.0 * ThermoPower.Test.WaterComponents.WaterPump.Pump.flowCharacteristic(Pump.q_single * 1500.0 / (Pump.n + 1e-6), {0.0, 0.001, 0.0015}, {60.0, 30.0, 0.0}) else (Pump.n / 1500.0) ^ 2.0 * ThermoPower.Test.WaterComponents.WaterPump.Pump.flowCharacteristic(0.0, {0.0, 0.001, 0.0015}, {60.0, 30.0, 0.0}) - Pump.s * 30.59148638933785 6/6 (1): Pump.q_single = Pump.w_single / Pump.rho 7/7 (1): Pump.q_single = if noEvent(Pump.s > 0.0) or not Pump.CheckValve then 5e-4 * Pump.s else 0.0 8/8 (1): Pump.hin = if Pump.w >= 0.0 then Source.h else Sink.h 9/9 (16): $cse1 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(Source.p0, Pump.hin, 0, 0) 10/25 (1): Pump.rho = $cse1.rho Variables: 1: Pump.rho:VARIABLE(min = 0.0 max = 1e5 start = 1000.0 unit = "kg/m3" nominal = 1000.0 ) "Liquid density" type: Real 2: $cse1.dpT:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse1.T:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse1.cv:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse1.phase:DISCRETE(protected = true ) type: Integer unreplaceable 6: $cse1.vp:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse1.rho:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse1.s:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse1.R:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse1.h:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse1.vt:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse1.x:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse1.pt:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse1.pd:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse1.p:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse1.region:DISCRETE(protected = true ) type: Integer unreplaceable 17: $cse1.cp:VARIABLE(protected = true ) type: Real unreplaceable 18: Pump.hin:VARIABLE(min = -1e10 max = 1e10 start = 1e5 unit = "J/kg" nominal = 5e5 ) "Enthalpy of entering fluid" type: Real 19: Pump.s:VARIABLE(start = 1.0 unit = "1" ) "Auxiliary non-dimensional variable" type: Real 20: Pump.w_single:VARIABLE(min = -1e5 max = 1e5 start = 0.5 * Pump.wstart unit = "kg/s" ) "Mass flow rate (single pump)" type: Real 21: Pump.q_single:VARIABLE(start = 5e-4 * Pump.wstart unit = "m3/s" ) "Volume flow rate (single pump)" type: Real 22: Pump.head:VARIABLE(min = 0.0 unit = "m" ) "Pump head" type: Real 23: Pump.dp:VARIABLE(unit = "Pa" ) "Outlet pressure minus inlet pressure" type: Real 24: Pump.outfl.p:VARIABLE(flow=false min = 611.657 max = 1e8 start = 5e6 unit = "Pa" nominal = 1e6 ) "Thermodynamic pressure in the connection point" type: Real 25: Pump.w:VARIABLE(min = -1e5 max = 1e5 unit = "kg/s" ) "Mass flow rate (total)" type: Real [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009089/0.4989, allocations: 455.9 kB / 0.5994 GB, free: 13.01 MB / 462.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoPower.Test.WaterComponents.WaterPump could not be translated