Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.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.HeliumTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 118.9 kB / 16.42 MB, free: 6.5 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.001259/0.001259, allocations: 187.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.471/1.471, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04847/0.04847, allocations: 9.096 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.001562/0.001562, allocations: 74.06 kB / 388.2 MB, free: 47.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07824/0.07981, allocations: 48.18 MB / 436.4 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.3807/0.4605, allocations: 128.1 MB / 0.5512 GB, free: 2.598 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.09916/0.5598, allocations: 110.1 MB / 0.6588 GB, free: 3.152 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007305/0.5605, allocations: 8 kB / 0.6588 GB, free: 3.145 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003435/0.5641, allocations: 1.456 MB / 0.6602 GB, free: 1.684 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004174/0.5683, allocations: 1.719 MB / 0.6619 GB, free: 15.96 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.08324/0.6515, allocations: 30.48 MB / 0.6916 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001928/0.6535, allocations: 1.328 MB / 0.6929 GB, free: 60 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002959/0.6538, allocations: 130.8 kB / 0.6931 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01808/0.6719, allocations: 8.815 MB / 0.7017 GB, free: 7.09 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004724/0.6724, allocations: 362.6 kB / 0.702 GB, free: 6.734 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.801e-05/0.6725, allocations: 44 kB / 0.7021 GB, free: 6.691 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06587/0.7384, allocations: 33.67 MB / 0.7349 GB, free: 4.965 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003122/0.7387, allocations: 119.6 kB / 0.7351 GB, free: 4.848 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005935/0.7393, allocations: 306.8 kB / 0.7354 GB, free: 4.547 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.3934/1.133, allocations: 14.12 MB / 0.7491 GB, free: 57.26 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/1.133, allocations: 0 / 0.7491 GB, free: 57.26 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.833e-06/1.133, allocations: 0 / 0.7491 GB, free: 57.26 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.045e-05/1.133, allocations: 1.094 kB / 0.7491 GB, free: 57.26 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.01036/1.143, allocations: 2.574 MB / 0.7517 GB, free: 55.91 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/1.143, allocations: 9.031 kB / 0.7517 GB, free: 55.91 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006492/1.144, allocations: 86.66 kB / 0.7517 GB, free: 55.89 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005319/1.144, allocations: 345.9 kB / 0.7521 GB, free: 55.66 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.411e-05/1.145, allocations: 29 kB / 0.7521 GB, free: 55.66 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.831e-05/1.145, allocations: 31.69 kB / 0.7521 GB, free: 55.66 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/1.146, allocations: 0.5961 MB / 0.7527 GB, free: 55.57 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/1.146, allocations: 0.8125 kB / 0.7527 GB, free: 55.57 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.347e-05/1.146, allocations: 15.25 kB / 0.7527 GB, free: 55.57 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.148e-05/1.146, allocations: 19.77 kB / 0.7528 GB, free: 55.57 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001298/1.147, allocations: 0.5604 MB / 0.7533 GB, free: 55.57 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002121/1.149, allocations: 2.5 MB / 0.7557 GB, free: 53.9 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001365/1.151, allocations: 0.496 MB / 0.7562 GB, free: 53.87 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005141/1.151, allocations: 339.1 kB / 0.7565 GB, free: 53.86 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.255/1.406, allocations: 139 MB / 0.8923 GB, free: 27.3 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.846e-05/1.406, allocations: 38.7 kB / 0.8923 GB, free: 27.26 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=78): time 3.917e-06/1.406, allocations: 0 / 0.8923 GB, free: 27.26 MB / 0.6387 GB Notification: Performance of matching and sorting (n=82): time 0.00666/1.413, allocations: 2.33 MB / 0.8946 GB, free: 25.46 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/1.413, allocations: 55.41 kB / 0.8946 GB, free: 25.39 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002923/1.413, allocations: 251.6 kB / 0.8949 GB, free: 25.18 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 5.13e-05/1.414, allocations: 37.58 kB / 0.8949 GB, free: 25.15 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/1.414, allocations: 195.4 kB / 0.8951 GB, free: 24.98 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.000152/1.414, allocations: 260.9 kB / 0.8953 GB, free: 24.77 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/1.414, allocations: 104.1 kB / 0.8954 GB, free: 24.69 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001385/1.414, allocations: 353.5 kB / 0.8958 GB, free: 24.36 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000502/1.415, allocations: 270.4 kB / 0.896 GB, free: 24.2 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005694/1.415, allocations: 405.6 kB / 0.8964 GB, free: 23.88 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/1.416, allocations: 0.7044 MB / 0.8971 GB, free: 23.38 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/1.416, allocations: 0 / 0.8971 GB, free: 23.38 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001518/1.418, allocations: 0.7999 MB / 0.8979 GB, free: 22.84 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/1.418, allocations: 12.47 kB / 0.8979 GB, free: 22.83 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/1.418, allocations: 1.938 kB / 0.8979 GB, free: 22.83 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002566/1.418, allocations: 61.17 kB / 0.898 GB, free: 22.78 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000643/1.419, allocations: 131.1 kB / 0.8981 GB, free: 22.66 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07347/1.492, allocations: 19.86 MB / 0.9175 GB, free: 19.27 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005877/1.493, allocations: 33.02 kB / 0.9175 GB, free: 19.24 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.135e-05/1.493, allocations: 25.44 kB / 0.9175 GB, free: 19.22 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 41 * 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, 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.0003722/1.493, allocations: 193.6 kB / 0.9177 GB, free: 19.07 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/1.494, allocations: 39.53 kB / 0.9178 GB, free: 19.03 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002009/1.496, allocations: 1.578 MB / 0.9193 GB, free: 17.92 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001434/1.497, allocations: 1.18 MB / 0.9205 GB, free: 16.94 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/1.497, allocations: 0 / 0.9205 GB, free: 16.94 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001883/1.497, allocations: 124.4 kB / 0.9206 GB, free: 16.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.272e-05/1.497, allocations: 10.12 kB / 0.9206 GB, free: 16.79 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003393/1.498, allocations: 27.91 kB / 0.9206 GB, free: 16.77 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/1.498, allocations: 35.02 kB / 0.9206 GB, free: 16.75 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.HeliumTestModel.fixedMassFlowRate.Medium.setState_ph(volume.medium.p, fixedMassFlowRate.medium.state.h, 0) Variables: 1: $cse8.phase:DISCRETE(protected = true ) type: Integer unreplaceable 2: $cse8.s:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse8.T:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse8.p:VARIABLE(protected = true ) type: Real unreplaceable 5: fixedMassFlowRate.medium.state.h:VARIABLE(min = -6687.7 max = 1.2e7 start = 0.0 unit = "J/kg" nominal = 1e6 ) "Specific enthalpy of medium" type: Real 6: $cse8.u:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse8.h:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse8.d: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.0006575/1.498, allocations: 172.7 kB / 0.9208 GB, free: 16.59 MB / 0.6544 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel could not be translated