Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.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/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia 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(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 109.2 kB / 16.42 MB, free: 6.445 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.001207/0.001207, allocations: 186.6 kB / 17.35 MB, free: 5.742 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.406/1.406, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04776/0.04776, allocations: 9.096 MB / 279.7 MB, free: 2.945 MB / 222.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.001496/0.001496, allocations: 68.12 kB / 388.2 MB, free: 47.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08427/0.08577, allocations: 48.18 MB / 436.4 MB, free: 7.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel): time 0.3883/0.4741, allocations: 128.6 MB / 0.5517 GB, free: 2.523 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.09954/0.5737, allocations: 111.1 MB / 0.6602 GB, free: 1.613 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006374/0.5744, allocations: 7.938 kB / 0.6602 GB, free: 1.605 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003229/0.5777, allocations: 1.55 MB / 0.6617 GB, free: 52 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004274/0.582, allocations: 1.828 MB / 0.6635 GB, free: 14.21 MB / 494.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'. Notification: Performance of NFTyping.typeClassSections: time 0.08981/0.6718, allocations: 31.04 MB / 0.6938 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002216/0.6741, allocations: 1.4 MB / 0.6951 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003109/0.6744, allocations: 126.5 kB / 0.6953 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02022/0.6946, allocations: 10.68 MB / 0.7057 GB, free: 2.863 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008367/0.6955, allocations: 385.8 kB / 0.7061 GB, free: 2.488 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001481/0.6957, allocations: 47.94 kB / 0.7061 GB, free: 2.441 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4305/1.126, allocations: 34.52 MB / 0.7398 GB, free: 58.34 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003178/1.127, allocations: 122.8 kB / 0.7399 GB, free: 58.34 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006495/1.127, allocations: 307 kB / 0.7402 GB, free: 58.34 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.05542/1.183, allocations: 13.93 MB / 0.7538 GB, free: 58.24 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/1.183, allocations: 0 / 0.7538 GB, free: 58.24 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.304e-06/1.183, allocations: 1.594 kB / 0.7538 GB, free: 58.24 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.534e-05/1.183, allocations: 0 / 0.7538 GB, free: 58.24 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.01133/1.194, allocations: 2.572 MB / 0.7563 GB, free: 56.87 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/1.194, allocations: 8.312 kB / 0.7564 GB, free: 56.87 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006405/1.195, allocations: 84 kB / 0.7564 GB, free: 56.84 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004971/1.195, allocations: 344 kB / 0.7568 GB, free: 56.62 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.841e-05/1.195, allocations: 31.62 kB / 0.7568 GB, free: 56.62 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.9e-05/1.195, allocations: 31.03 kB / 0.7568 GB, free: 56.62 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/1.197, allocations: 0.5996 MB / 0.7574 GB, free: 56.53 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/1.197, allocations: 5.281 kB / 0.7574 GB, free: 56.53 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.166e-05/1.197, allocations: 11.91 kB / 0.7574 GB, free: 56.53 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.404e-05/1.197, allocations: 17.52 kB / 0.7574 GB, free: 56.53 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00136/1.198, allocations: 0.5494 MB / 0.758 GB, free: 56.53 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002457/1.201, allocations: 2.464 MB / 0.7604 GB, free: 54.91 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/1.202, allocations: 0.4884 MB / 0.7609 GB, free: 54.88 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005253/1.202, allocations: 335.2 kB / 0.7612 GB, free: 54.88 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2529/1.455, allocations: 139 MB / 0.8969 GB, free: 24.86 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/1.455, allocations: 43.53 kB / 0.8969 GB, free: 24.82 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=77): time 3.536e-06/1.455, allocations: 0 / 0.8969 GB, free: 24.82 MB / 0.6387 GB Notification: Performance of matching and sorting (n=81): time 0.006654/1.462, allocations: 2.35 MB / 0.8992 GB, free: 23.01 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/1.462, allocations: 59.39 kB / 0.8993 GB, free: 22.94 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003102/1.462, allocations: 258 kB / 0.8995 GB, free: 22.73 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 5.438e-05/1.462, allocations: 32.52 kB / 0.8996 GB, free: 22.7 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/1.463, allocations: 192.3 kB / 0.8998 GB, free: 22.53 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001653/1.463, allocations: 260.4 kB / 0.9 GB, free: 22.31 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001516/1.463, allocations: 100.9 kB / 0.9001 GB, free: 22.24 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001525/1.463, allocations: 359.4 kB / 0.9004 GB, free: 21.91 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004883/1.464, allocations: 272.6 kB / 0.9007 GB, free: 21.75 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000546/1.464, allocations: 388 kB / 0.9011 GB, free: 21.45 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/1.465, allocations: 0.6985 MB / 0.9018 GB, free: 20.98 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/1.465, allocations: 0 / 0.9018 GB, free: 20.98 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001474/1.467, allocations: 0.7985 MB / 0.9025 GB, free: 20.43 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/1.467, allocations: 6.031 kB / 0.9025 GB, free: 20.43 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/1.467, allocations: 4.375 kB / 0.9025 GB, free: 20.42 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002609/1.467, allocations: 68.56 kB / 0.9026 GB, free: 20.36 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007213/1.468, allocations: 140.9 kB / 0.9027 GB, free: 20.24 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07047/1.538, allocations: 18.41 MB / 0.9207 GB, free: 18.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005314/1.539, allocations: 30.75 kB / 0.9207 GB, free: 18.27 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-05/1.539, allocations: 20.75 kB / 0.9208 GB, free: 18.25 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 9 (ambient.medium.sat.vap.phase,ambient.medium.sat.liq.phase,ambient.medium.state.phase,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.state.phase,volume.medium.sat.vap.phase,volume.medium.sat.liq.phase,volume.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003652/1.539, allocations: 187.9 kB / 0.9209 GB, free: 18.11 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/1.539, allocations: 47.38 kB / 0.921 GB, free: 18.06 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002144/1.542, allocations: 1.7 MB / 0.9227 GB, free: 16.88 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001687/1.543, allocations: 1.301 MB / 0.9239 GB, free: 15.82 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/1.543, allocations: 0 / 0.9239 GB, free: 15.82 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000222/1.543, allocations: 126.2 kB / 0.924 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.243e-05/1.544, allocations: 8.188 kB / 0.9241 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003217/1.544, allocations: 31.66 kB / 0.9241 GB, free: 15.65 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/1.544, allocations: 38.94 kB / 0.9241 GB, free: 15.62 MB / 0.6544 GB [/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): fixedMassFlowRate.T_ambient = $cse8.T 2/2 (7): $cse8 = HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.fixedMassFlowRate.Medium.setState_ph(volume.medium.p, fixedMassFlowRate.medium.state.h, 0) Variables: 1: $cse8.T:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse8.d:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse8.h:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse8.phase:DISCRETE(protected = true ) type: Integer unreplaceable 5: fixedMassFlowRate.medium.state.h:VARIABLE(min = -725000.0 max = 7e5 start = -12500.0 unit = "J/kg" nominal = 1e6 ) "Specific enthalpy of medium" type: Real 6: $cse8.p:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse8.u:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse8.s:VARIABLE(protected = true ) type: Real unreplaceable [/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.0006869/1.545, allocations: 174.9 kB / 0.9243 GB, free: 15.48 MB / 0.6544 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel could not be translated