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.001681/0.001681, allocations: 106.4 kB / 17.74 MB, free: 5.34 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.001992/0.001993, allocations: 189.4 kB / 18.67 MB, free: 4.418 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.43/1.43, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2773/0.2773, allocations: 48.85 MB / 320.8 MB, free: 11.01 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.001594/0.001594, allocations: 63.91 kB / 451.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1018, allocations: 59.17 MB / 0.4984 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.WaterPump): time 0.2617/0.3636, allocations: 34.56 MB / 0.5322 GB, free: 7.051 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009151/0.3728, allocations: 8.593 MB / 0.5406 GB, free: 6.875 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004402/0.3733, allocations: 9.875 kB / 0.5406 GB, free: 6.875 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004971/0.3738, allocations: 142 kB / 0.5407 GB, free: 6.871 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.0007531/0.3746, allocations: 273.5 kB / 0.541 GB, free: 6.855 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.01229/0.3869, allocations: 4.488 MB / 0.5453 GB, free: 6.305 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008317/0.3877, allocations: 0.609 MB / 0.5459 GB, free: 6.152 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003662/0.3881, allocations: 207 kB / 0.5461 GB, free: 6.141 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007607/0.3889, allocations: 434.5 kB / 0.5466 GB, free: 6.09 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002857/0.3892, allocations: 220.2 kB / 0.5468 GB, free: 6.039 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.934e-05/0.3892, allocations: 28.25 kB / 0.5468 GB, free: 6.035 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01238/0.4016, allocations: 6.212 MB / 0.5529 GB, free: 5.945 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001389/0.4018, allocations: 64.33 kB / 0.5529 GB, free: 5.934 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003191/0.4021, allocations: 177.2 kB / 0.5531 GB, free: 5.879 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007911/0.41, allocations: 3.65 MB / 0.5567 GB, free: 4.215 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.4101, allocations: 0 / 0.5567 GB, free: 4.215 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4101, allocations: 0 / 0.5567 GB, free: 4.215 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.4101, allocations: 4 kB / 0.5567 GB, free: 4.211 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.002314/0.4124, allocations: 1.037 MB / 0.5577 GB, free: 3.43 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.4125, allocations: 11.45 kB / 0.5577 GB, free: 3.426 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001749/0.4126, allocations: 49.28 kB / 0.5577 GB, free: 3.402 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004107/0.4131, allocations: 313.5 kB / 0.558 GB, free: 3.105 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.518e-05/0.4131, allocations: 51.83 kB / 0.5581 GB, free: 3.062 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.801e-05/0.4132, allocations: 23.56 kB / 0.5581 GB, free: 3.055 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006777/0.4139, allocations: 341.6 kB / 0.5584 GB, free: 2.828 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.4139, allocations: 0 / 0.5584 GB, free: 2.828 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.746e-05/0.4139, allocations: 12.19 kB / 0.5584 GB, free: 2.82 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.4139, allocations: 6.688 kB / 0.5584 GB, free: 2.82 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007463/0.4147, allocations: 265.4 kB / 0.5587 GB, free: 2.699 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.001209/0.4159, allocations: 1.412 MB / 0.5601 GB, free: 1.332 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005887/0.4165, allocations: 216.8 kB / 0.5603 GB, free: 1.211 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003138/0.4168, allocations: 116.6 kB / 0.5604 GB, free: 1.152 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08742/0.5043, allocations: 32.24 MB / 0.5919 GB, free: 5.043 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.27e-05/0.5044, allocations: 34.56 kB / 0.5919 GB, free: 5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=20): time 3.226e-06/0.5044, allocations: 0 / 0.5919 GB, free: 5 MB / 446.1 MB Notification: Performance of matching and sorting (n=20): time 0.004197/0.5086, allocations: 0.6665 MB / 0.5926 GB, free: 4.305 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.5086, allocations: 51.41 kB / 0.5926 GB, free: 4.242 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004586/0.5091, allocations: 284.5 kB / 0.5929 GB, free: 3.961 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.361e-05/0.5092, allocations: 33.7 kB / 0.5929 GB, free: 3.922 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.5093, allocations: 172.2 kB / 0.5931 GB, free: 3.75 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.5094, allocations: 73.38 kB / 0.5931 GB, free: 3.68 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.5096, allocations: 57.62 kB / 0.5932 GB, free: 3.617 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.5098, allocations: 334.8 kB / 0.5935 GB, free: 3.281 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004975/0.5103, allocations: 98 kB / 0.5936 GB, free: 3.184 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005307/0.5108, allocations: 131.3 kB / 0.5937 GB, free: 3.043 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009828/0.5118, allocations: 223.2 kB / 0.594 GB, free: 2.812 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/0.5119, allocations: 3.938 kB / 0.594 GB, free: 2.809 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001404/0.5133, allocations: 361.8 kB / 0.5943 GB, free: 2.445 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.5133, allocations: 4 kB / 0.5943 GB, free: 2.441 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.5133, allocations: 0 / 0.5943 GB, free: 2.441 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005417/0.5139, allocations: 104.9 kB / 0.5944 GB, free: 2.336 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000264/0.5141, allocations: 47.95 kB / 0.5945 GB, free: 2.289 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006085/0.5148, allocations: 0.6419 MB / 0.5951 GB, free: 1.621 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000284/0.5151, allocations: 39.69 kB / 0.5951 GB, free: 1.582 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.236e-05/0.5151, allocations: 16.06 kB / 0.5951 GB, free: 1.566 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003606/0.5155, allocations: 189.5 kB / 0.5953 GB, free: 1.379 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003125/0.5158, allocations: 127.5 kB / 0.5954 GB, free: 1.242 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005808/0.5164, allocations: 215.4 kB / 0.5956 GB, free: 1.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.202e-06/0.5164, allocations: 0 / 0.5956 GB, free: 1.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0009134/0.5173, allocations: 333.8 kB / 0.596 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.5173, allocations: 11.91 kB / 0.596 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-06/0.5174, allocations: 0 / 0.596 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001993/0.5176, allocations: 56.81 kB / 0.596 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000249/0.5178, allocations: 51.95 kB / 0.5961 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001907/0.5197, allocations: 1.831 MB / 0.5979 GB, free: 14.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002665/0.52, allocations: 31.88 kB / 0.5979 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.52, allocations: 12 kB / 0.5979 GB, free: 14.56 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.0001362/0.5202, allocations: 188.2 kB / 0.5981 GB, free: 14.37 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.758e-05/0.5203, allocations: 31.61 kB / 0.5981 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.5216, allocations: 0.621 MB / 0.5987 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.5216, allocations: 0 / 0.5987 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.5216, allocations: 4 kB / 0.5987 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.5217, allocations: 129.7 kB / 0.5988 GB, free: 13.56 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.922e-05/0.5218, allocations: 4 kB / 0.5989 GB, free: 13.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002372/0.522, allocations: 23.97 kB / 0.5989 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.549e-05/0.5221, allocations: 23.91 kB / 0.5989 GB, free: 13.51 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.0009192/0.523, allocations: 457.2 kB / 0.5993 GB, free: 13.07 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