Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.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.ButaneTestModel_dT_component_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001206, allocations: 109.3 kB / 16.41 MB, free: 6.516 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.001162/0.001162, allocations: 187.9 kB / 17.35 MB, free: 5.738 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.269/1.269, allocations: 205.1 MB / 223.2 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0472/0.0472, allocations: 9.094 MB / 279.7 MB, free: 2.949 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.001409/0.001409, allocations: 69.52 kB / 388.2 MB, free: 47.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06333/0.06475, allocations: 48.17 MB / 436.4 MB, free: 7.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.3219/0.3866, allocations: 142.2 MB / 0.565 GB, free: 2.242 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.07855/0.4652, allocations: 97.73 MB / 0.6604 GB, free: 1.371 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004621/0.4657, allocations: 8 kB / 0.6604 GB, free: 1.363 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002801/0.4686, allocations: 1.362 MB / 0.6618 GB, free: 15.99 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003306/0.4719, allocations: 1.656 MB / 0.6634 GB, free: 14.33 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.0655/0.5374, allocations: 29.54 MB / 0.6922 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00177/0.5392, allocations: 1.414 MB / 0.6936 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002954/0.5395, allocations: 127.3 kB / 0.6937 GB, free: 15.17 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0155/0.555, allocations: 9.87 MB / 0.7034 GB, free: 5.277 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006899/0.5557, allocations: 378.5 kB / 0.7037 GB, free: 4.906 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 9.824e-05/0.5558, allocations: 40 kB / 0.7038 GB, free: 4.867 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05102/0.6069, allocations: 31.39 MB / 0.7344 GB, free: 5.418 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002079/0.6071, allocations: 119.6 kB / 0.7345 GB, free: 5.301 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005145/0.6076, allocations: 306.7 kB / 0.7348 GB, free: 5 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.2535/0.8612, allocations: 12.65 MB / 0.7472 GB, free: 57.06 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.8612, allocations: 4.391 kB / 0.7472 GB, free: 57.06 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.733e-06/0.8612, allocations: 0 / 0.7472 GB, free: 57.06 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.827e-06/0.8612, allocations: 0 / 0.7472 GB, free: 57.06 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.007127/0.8684, allocations: 2.284 MB / 0.7494 GB, free: 55.88 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.8684, allocations: 9.281 kB / 0.7494 GB, free: 55.88 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000602/0.869, allocations: 82.45 kB / 0.7495 GB, free: 55.86 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004283/0.8695, allocations: 339.5 kB / 0.7498 GB, free: 55.64 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.888e-05/0.8695, allocations: 29.94 kB / 0.7498 GB, free: 55.64 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.964e-05/0.8696, allocations: 35 kB / 0.7499 GB, free: 55.64 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.8707, allocations: 0.5834 MB / 0.7505 GB, free: 55.55 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.8707, allocations: 6.047 kB / 0.7505 GB, free: 55.55 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.067e-05/0.8708, allocations: 16.66 kB / 0.7505 GB, free: 55.55 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/0.8708, allocations: 16.22 kB / 0.7505 GB, free: 55.55 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.8719, allocations: 0.5253 MB / 0.751 GB, free: 55.55 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.8738, allocations: 2.492 MB / 0.7534 GB, free: 53.87 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009667/0.8748, allocations: 0.4932 MB / 0.7539 GB, free: 53.84 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004599/0.8753, allocations: 339.8 kB / 0.7542 GB, free: 53.83 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1867/1.062, allocations: 121.8 MB / 0.8732 GB, free: 26.69 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.656e-05/1.062, allocations: 43.67 kB / 0.8733 GB, free: 26.65 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=78): time 2.915e-06/1.062, allocations: 0 / 0.8733 GB, free: 26.65 MB / 0.6231 GB Notification: Performance of matching and sorting (n=82): time 0.005724/1.068, allocations: 2.398 MB / 0.8756 GB, free: 26.03 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/1.068, allocations: 59.09 kB / 0.8757 GB, free: 25.96 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/1.068, allocations: 253.5 kB / 0.8759 GB, free: 25.86 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.001e-05/1.068, allocations: 30.83 kB / 0.8759 GB, free: 25.82 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 9.292e-05/1.068, allocations: 198.3 kB / 0.8761 GB, free: 25.69 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/1.068, allocations: 266.4 kB / 0.8764 GB, free: 25.52 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/1.069, allocations: 95.55 kB / 0.8765 GB, free: 25.5 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001395/1.069, allocations: 355.6 kB / 0.8768 GB, free: 25.19 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004618/1.069, allocations: 267.6 kB / 0.8771 GB, free: 25.18 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004808/1.07, allocations: 398.3 kB / 0.8774 GB, free: 25.06 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009098/1.071, allocations: 0.7078 MB / 0.8781 GB, free: 24.92 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/1.071, allocations: 0 / 0.8781 GB, free: 24.92 MB / 0.6231 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00132/1.072, allocations: 0.8037 MB / 0.8789 GB, free: 24.82 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/1.072, allocations: 7.656 kB / 0.8789 GB, free: 24.82 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/1.072, allocations: 4.125 kB / 0.8789 GB, free: 24.82 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005032/1.072, allocations: 108.7 kB / 0.879 GB, free: 24.79 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004863/1.073, allocations: 110.6 kB / 0.8791 GB, free: 24.79 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07213/1.145, allocations: 19.18 MB / 0.8979 GB, free: 25.25 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005316/1.146, allocations: 36.53 kB / 0.8979 GB, free: 25.22 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.821e-05/1.146, allocations: 15.94 kB / 0.8979 GB, free: 25.21 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (47): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {1, 2} * 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.0003147/1.146, allocations: 192.7 kB / 0.8981 GB, free: 25.05 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/1.146, allocations: 39.53 kB / 0.8981 GB, free: 25.01 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001866/1.148, allocations: 1.7 MB / 0.8998 GB, free: 23.82 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001384/1.149, allocations: 1.263 MB / 0.901 GB, free: 22.79 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/1.149, allocations: 6.625 kB / 0.901 GB, free: 22.79 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001525/1.15, allocations: 118.7 kB / 0.9012 GB, free: 22.66 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.846e-05/1.15, allocations: 12.58 kB / 0.9012 GB, free: 22.65 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003116/1.15, allocations: 30.66 kB / 0.9012 GB, free: 22.63 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.632e-05/1.15, allocations: 43.36 kB / 0.9012 GB, free: 22.6 MB / 0.6387 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): volume.medium.p = $cse8.p 2/2 (7): $cse8 = HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.fixedMassFlowRate.Medium.setState_dT(fixedMassFlowRate.medium.d, fixedMassFlowRate.T_ambient, 0) Variables: 1: $cse8.h:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse8.phase:DISCRETE(protected = true ) type: Integer unreplaceable 3: $cse8.T:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse8.p:VARIABLE(protected = true ) type: Real unreplaceable 5: fixedMassFlowRate.medium.d:VARIABLE(min = 1e-60 max = 800.0 start = 228.0 unit = "kg/m3" nominal = 1.0 ) "Density of medium" type: Real 6: $cse8.d: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.0006241/1.151, allocations: 179.2 kB / 0.9014 GB, free: 22.45 MB / 0.6387 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph could not be translated