Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.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.IsobutaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 116.2 kB / 16.42 MB, free: 6.492 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.001296/0.001296, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.407/1.407, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04938/0.04938, allocations: 9.098 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.001449/0.001449, allocations: 67.2 kB / 388.2 MB, free: 47.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09563/0.09709, allocations: 48.18 MB / 436.4 MB, free: 7.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel): time 0.4103/0.5075, allocations: 128.8 MB / 0.5519 GB, free: 2.094 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.09903/0.6065, allocations: 111.1 MB / 0.6604 GB, free: 1.148 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006859/0.6073, allocations: 4 kB / 0.6604 GB, free: 1.145 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00344/0.6108, allocations: 1.553 MB / 0.6619 GB, free: 15.59 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003876/0.6147, allocations: 1.828 MB / 0.6637 GB, free: 13.75 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.07935/0.6941, allocations: 31.33 MB / 0.6943 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001794/0.6959, allocations: 1.398 MB / 0.6957 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002438/0.6961, allocations: 131.6 kB / 0.6958 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01769/0.7138, allocations: 10.04 MB / 0.7056 GB, free: 2.75 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005384/0.7144, allocations: 379.4 kB / 0.706 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 7.311e-05/0.7145, allocations: 44 kB / 0.706 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3591/1.074, allocations: 35.36 MB / 0.7405 GB, free: 57.33 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002815/1.074, allocations: 122.6 kB / 0.7406 GB, free: 57.33 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006234/1.075, allocations: 302.9 kB / 0.7409 GB, free: 57.33 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.04874/1.123, allocations: 14.16 MB / 0.7548 GB, free: 57.24 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/1.123, allocations: 0 / 0.7548 GB, free: 57.24 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.114e-06/1.123, allocations: 5.438 kB / 0.7548 GB, free: 57.24 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.338e-06/1.123, allocations: 0 / 0.7548 GB, free: 57.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.008783/1.132, allocations: 2.566 MB / 0.7573 GB, free: 55.87 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/1.132, allocations: 11.53 kB / 0.7573 GB, free: 55.87 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006487/1.133, allocations: 84.58 kB / 0.7574 GB, free: 55.84 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004909/1.133, allocations: 341.9 kB / 0.7577 GB, free: 55.62 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.378e-05/1.133, allocations: 30.12 kB / 0.7577 GB, free: 55.62 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.611e-05/1.133, allocations: 35.62 kB / 0.7578 GB, free: 55.62 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/1.135, allocations: 0.5967 MB / 0.7583 GB, free: 55.53 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/1.135, allocations: 0 / 0.7583 GB, free: 55.53 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.127e-05/1.135, allocations: 15.62 kB / 0.7584 GB, free: 55.53 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.043e-05/1.135, allocations: 17.3 kB / 0.7584 GB, free: 55.53 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/1.136, allocations: 0.5508 MB / 0.7589 GB, free: 55.53 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002277/1.138, allocations: 2.462 MB / 0.7613 GB, free: 53.91 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/1.139, allocations: 497.7 kB / 0.7618 GB, free: 53.88 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005178/1.14, allocations: 333.2 kB / 0.7621 GB, free: 53.88 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2446/1.385, allocations: 139 MB / 0.8978 GB, free: 23.45 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.315e-05/1.385, allocations: 38.06 kB / 0.8979 GB, free: 23.41 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=77): time 7.324e-06/1.385, allocations: 2.109 kB / 0.8979 GB, free: 23.41 MB / 0.6387 GB Notification: Performance of matching and sorting (n=81): time 0.007153/1.392, allocations: 2.347 MB / 0.9002 GB, free: 21.6 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/1.392, allocations: 56.72 kB / 0.9002 GB, free: 21.54 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003184/1.392, allocations: 264.3 kB / 0.9005 GB, free: 21.32 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 5.172e-05/1.392, allocations: 30.83 kB / 0.9005 GB, free: 21.29 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/1.392, allocations: 192.2 kB / 0.9007 GB, free: 21.12 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/1.393, allocations: 260.8 kB / 0.9009 GB, free: 20.9 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/1.393, allocations: 102.8 kB / 0.901 GB, free: 20.83 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001308/1.393, allocations: 354.6 kB / 0.9014 GB, free: 20.5 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004626/1.393, allocations: 274.7 kB / 0.9016 GB, free: 20.34 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005023/1.394, allocations: 394.3 kB / 0.902 GB, free: 20.04 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009755/1.395, allocations: 0.6923 MB / 0.9027 GB, free: 19.57 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/1.395, allocations: 0 / 0.9027 GB, free: 19.57 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001371/1.396, allocations: 0.7951 MB / 0.9035 GB, free: 19.02 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/1.396, allocations: 13.97 kB / 0.9035 GB, free: 19.01 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/1.396, allocations: 0 / 0.9035 GB, free: 19.01 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002338/1.396, allocations: 65.48 kB / 0.9035 GB, free: 18.96 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006739/1.397, allocations: 142 kB / 0.9037 GB, free: 18.83 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06996/1.467, allocations: 19.68 MB / 0.9229 GB, free: 15.61 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005193/1.468, allocations: 30.97 kB / 0.9229 GB, free: 15.59 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-05/1.468, allocations: 16.5 kB / 0.9229 GB, free: 15.58 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.0003578/1.468, allocations: 197.1 kB / 0.9231 GB, free: 15.43 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/1.468, allocations: 47.38 kB / 0.9232 GB, free: 15.38 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002084/1.47, allocations: 1.704 MB / 0.9248 GB, free: 14.2 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001618/1.472, allocations: 1.289 MB / 0.9261 GB, free: 13.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/1.472, allocations: 4 kB / 0.9261 GB, free: 13.14 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001784/1.472, allocations: 120.4 kB / 0.9262 GB, free: 13 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.696e-05/1.472, allocations: 12.5 kB / 0.9262 GB, free: 13 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003048/1.473, allocations: 27.28 kB / 0.9262 GB, free: 12.98 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/1.473, allocations: 46.16 kB / 0.9263 GB, free: 12.94 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.IsobutaneTestModel.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.0006729/1.473, allocations: 168.1 kB / 0.9264 GB, free: 12.8 MB / 0.6544 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel could not be translated