Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 109.4 kB / 16.42 MB, free: 6.461 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.00137/0.00137, allocations: 190.7 kB / 17.35 MB, free: 5.715 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.461/1.461, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04589/0.04589, allocations: 9.095 MB / 279.7 MB, free: 2.941 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.001503/0.001503, allocations: 66.7 kB / 388.2 MB, free: 47.31 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0987/0.1002, allocations: 48.17 MB / 436.4 MB, free: 7.672 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.414/0.5142, allocations: 142.2 MB / 0.565 GB, free: 2.223 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.08952/0.6038, allocations: 97.73 MB / 0.6604 GB, free: 1.461 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006414/0.6045, allocations: 11.88 kB / 0.6604 GB, free: 1.449 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00359/0.6082, allocations: 1.55 MB / 0.6619 GB, free: 15.89 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004597/0.6128, allocations: 1.828 MB / 0.6637 GB, free: 14.06 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.08407/0.6969, allocations: 31.34 MB / 0.6943 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002251/0.6992, allocations: 1.41 MB / 0.6957 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002987/0.6995, allocations: 133.1 kB / 0.6958 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01836/0.7179, allocations: 10.05 MB / 0.7056 GB, free: 3.027 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005973/0.7185, allocations: 382.5 kB / 0.706 GB, free: 2.652 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 8.539e-05/0.7186, allocations: 44 kB / 0.706 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05323/0.7718, allocations: 29.4 MB / 0.7348 GB, free: 5.16 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002891/0.7722, allocations: 127.5 kB / 0.7349 GB, free: 5.035 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006292/0.7728, allocations: 298.8 kB / 0.7352 GB, free: 4.742 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.364/1.137, allocations: 11.9 MB / 0.7468 GB, free: 56.27 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/1.137, allocations: 4.438 kB / 0.7468 GB, free: 56.27 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.473e-06/1.137, allocations: 0 / 0.7468 GB, free: 56.27 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.04e-05/1.137, allocations: 0 / 0.7468 GB, free: 56.27 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.009916/1.147, allocations: 2.143 MB / 0.7489 GB, free: 55.17 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/1.147, allocations: 8.062 kB / 0.7489 GB, free: 55.17 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005881/1.147, allocations: 77.58 kB / 0.749 GB, free: 55.15 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006017/1.148, allocations: 338.5 kB / 0.7493 GB, free: 54.92 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.258e-05/1.148, allocations: 34.06 kB / 0.7493 GB, free: 54.92 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.39e-05/1.148, allocations: 32.91 kB / 0.7493 GB, free: 54.92 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/1.149, allocations: 0.5747 MB / 0.7499 GB, free: 54.83 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/1.149, allocations: 1.719 kB / 0.7499 GB, free: 54.83 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.92e-05/1.15, allocations: 19.38 kB / 0.7499 GB, free: 54.83 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.733e-05/1.15, allocations: 21.56 kB / 0.7499 GB, free: 54.83 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001176/1.151, allocations: 0.5145 MB / 0.7504 GB, free: 54.83 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002262/1.153, allocations: 2.482 MB / 0.7529 GB, free: 53.16 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009742/1.154, allocations: 0.492 MB / 0.7534 GB, free: 53.13 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004899/1.154, allocations: 331.5 kB / 0.7537 GB, free: 53.12 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1775/1.332, allocations: 113.3 MB / 0.8643 GB, free: 32.66 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.416e-05/1.332, allocations: 38.06 kB / 0.8643 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=78): time 4.168e-06/1.332, allocations: 0 / 0.8643 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of matching and sorting (n=83): time 0.007317/1.339, allocations: 2.642 MB / 0.8669 GB, free: 32 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/1.34, allocations: 55.38 kB / 0.8669 GB, free: 31.93 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003204/1.34, allocations: 257.4 kB / 0.8672 GB, free: 31.83 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 5.232e-05/1.34, allocations: 29.27 kB / 0.8672 GB, free: 31.8 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/1.34, allocations: 188.6 kB / 0.8674 GB, free: 31.66 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002179/1.34, allocations: 268.4 kB / 0.8677 GB, free: 31.49 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001641/1.34, allocations: 101.1 kB / 0.8678 GB, free: 31.47 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001753/1.341, allocations: 353.8 kB / 0.8681 GB, free: 31.16 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005486/1.341, allocations: 277.1 kB / 0.8684 GB, free: 31.16 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000563/1.342, allocations: 402.2 kB / 0.8687 GB, free: 31.03 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/1.343, allocations: 0.721 MB / 0.8694 GB, free: 30.89 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/1.343, allocations: 0 / 0.8694 GB, free: 30.89 MB / 0.6231 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001669/1.345, allocations: 0.8183 MB / 0.8702 GB, free: 30.78 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/1.345, allocations: 3.906 kB / 0.8702 GB, free: 30.78 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/1.345, allocations: 5.75 kB / 0.8703 GB, free: 30.78 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008855/1.346, allocations: 156.2 kB / 0.8704 GB, free: 30.75 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005912/1.346, allocations: 119.5 kB / 0.8705 GB, free: 30.75 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002575/1.349, allocations: 3.748 MB / 0.8742 GB, free: 27.14 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005038/1.349, allocations: 28.78 kB / 0.8742 GB, free: 27.14 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-05/1.349, allocations: 19.12 kB / 0.8742 GB, free: 27.14 MB / 0.6231 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): 39 * 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, 2} * Without analytic Jacobian (size): 0 systems 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): 2 systems {(1,2), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002947/1.35, allocations: 192 kB / 0.8744 GB, free: 27.02 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/1.35, allocations: 47.03 kB / 0.8744 GB, free: 26.99 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001924/1.352, allocations: 1.672 MB / 0.8761 GB, free: 26.71 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001431/1.353, allocations: 1.251 MB / 0.8773 GB, free: 26.21 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/1.353, allocations: 0 / 0.8773 GB, free: 26.21 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001865/1.353, allocations: 119.1 kB / 0.8774 GB, free: 26.09 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.654e-05/1.353, allocations: 10.78 kB / 0.8774 GB, free: 26.09 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000341/1.354, allocations: 26.53 kB / 0.8775 GB, free: 26.09 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/1.354, allocations: 45 kB / 0.8775 GB, free: 26.08 MB / 0.6231 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 = $cse2.p 2/2 (7): $cse2 = HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.fixedMassFlowRate.Medium.setState_dT(fixedMassFlowRate.medium.d, fixedMassFlowRate.T_ambient, 0) Variables: 1: $cse2.h:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse2.s:VARIABLE(protected = true ) type: Real unreplaceable 3: fixedMassFlowRate.medium.d:VARIABLE(min = 1e-60 max = 800.0 start = 228.0 unit = "kg/m3" nominal = 1.0 ) "Density of medium" type: Real 4: $cse2.p:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse2.T:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse2.d:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse2.phase:DISCRETE(protected = true ) type: Integer unreplaceable 8: $cse2.u: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.0006376/1.354, allocations: 173.2 kB / 0.8777 GB, free: 25.98 MB / 0.6231 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT could not be translated