Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_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_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 107.8 kB / 16.41 MB, free: 6.477 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.001159/0.001159, allocations: 193.6 kB / 17.35 MB, free: 5.75 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.281/1.281, 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.04719/0.04719, allocations: 9.094 MB / 279.7 MB, free: 2.973 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.001395/0.001395, allocations: 68.62 kB / 388.2 MB, free: 47.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07256/0.07396, allocations: 48.18 MB / 436.4 MB, free: 7.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.3146/0.3886, allocations: 142.2 MB / 0.565 GB, free: 2.219 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.07928/0.4679, allocations: 97.74 MB / 0.6604 GB, free: 1.348 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000538/0.4685, allocations: 7.938 kB / 0.6604 GB, free: 1.34 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003012/0.4715, allocations: 1.37 MB / 0.6618 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004152/0.4757, allocations: 1.645 MB / 0.6634 GB, free: 14.31 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.06437/0.5401, allocations: 29.53 MB / 0.6922 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001741/0.5419, allocations: 1.41 MB / 0.6936 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002355/0.5421, allocations: 127.7 kB / 0.6937 GB, free: 15.17 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01496/0.5571, allocations: 9.874 MB / 0.7033 GB, free: 5.273 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004799/0.5576, allocations: 374.5 kB / 0.7037 GB, free: 4.906 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.055e-05/0.5576, allocations: 48 kB / 0.7038 GB, free: 4.859 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05413/0.6118, allocations: 35.39 MB / 0.7383 GB, free: 1.406 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002096/0.612, allocations: 119.6 kB / 0.7384 GB, free: 1.289 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004616/0.6125, allocations: 310.7 kB / 0.7387 GB, free: 0.9844 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.268/0.8805, allocations: 14.16 MB / 0.7525 GB, free: 57.84 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.8805, allocations: 3.344 kB / 0.7525 GB, free: 57.84 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.563e-06/0.8806, allocations: 0.8438 kB / 0.7525 GB, free: 57.84 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.786e-06/0.8806, allocations: 0 / 0.7525 GB, free: 57.84 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.006887/0.8875, allocations: 2.578 MB / 0.7551 GB, free: 56.47 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.8875, allocations: 7.375 kB / 0.7551 GB, free: 56.47 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006134/0.8881, allocations: 82.28 kB / 0.7552 GB, free: 56.45 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003635/0.8885, allocations: 338.9 kB / 0.7555 GB, free: 56.22 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.984e-05/0.8885, allocations: 31.03 kB / 0.7555 GB, free: 56.22 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.246e-05/0.8886, allocations: 33.59 kB / 0.7555 GB, free: 56.22 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.8897, allocations: 0.5939 MB / 0.7561 GB, free: 56.13 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.8898, allocations: 5.172 kB / 0.7561 GB, free: 56.13 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.044e-05/0.8898, allocations: 19.53 kB / 0.7561 GB, free: 56.13 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.8898, allocations: 17.8 kB / 0.7562 GB, free: 56.13 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001198/0.891, allocations: 0.5475 MB / 0.7567 GB, free: 56.13 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001905/0.893, allocations: 2.511 MB / 0.7591 GB, free: 54.46 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.894, allocations: 0.4952 MB / 0.7596 GB, free: 54.43 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004485/0.8945, allocations: 341 kB / 0.76 GB, free: 54.42 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2382/1.133, allocations: 139 MB / 0.8957 GB, free: 25.35 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/1.133, allocations: 41.3 kB / 0.8957 GB, free: 25.3 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=78): time 3.567e-06/1.133, allocations: 0 / 0.8957 GB, free: 25.3 MB / 0.6387 GB Notification: Performance of matching and sorting (n=82): time 0.005612/1.138, allocations: 2.33 MB / 0.898 GB, free: 23.5 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/1.138, allocations: 56.91 kB / 0.898 GB, free: 23.44 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002393/1.139, allocations: 256.4 kB / 0.8983 GB, free: 23.23 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 3.832e-05/1.139, allocations: 39.12 kB / 0.8983 GB, free: 23.19 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 9.384e-05/1.139, allocations: 194.4 kB / 0.8985 GB, free: 23.02 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/1.139, allocations: 254.8 kB / 0.8987 GB, free: 22.8 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/1.139, allocations: 103.1 kB / 0.8988 GB, free: 22.73 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001096/1.139, allocations: 352.1 kB / 0.8992 GB, free: 22.4 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000424/1.14, allocations: 270.6 kB / 0.8994 GB, free: 22.24 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004609/1.14, allocations: 414.9 kB / 0.8998 GB, free: 21.91 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009076/1.141, allocations: 0.7037 MB / 0.9005 GB, free: 21.43 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/1.141, allocations: 0 / 0.9005 GB, free: 21.43 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001279/1.142, allocations: 0.8058 MB / 0.9013 GB, free: 20.88 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/1.142, allocations: 12.47 kB / 0.9013 GB, free: 20.87 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/1.142, allocations: 4 kB / 0.9013 GB, free: 20.87 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002324/1.143, allocations: 61.17 kB / 0.9014 GB, free: 20.81 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006071/1.143, allocations: 134.9 kB / 0.9015 GB, free: 20.7 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07173/1.215, allocations: 19.08 MB / 0.9201 GB, free: 18.1 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004674/1.215, allocations: 22.86 kB / 0.9202 GB, free: 18.08 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.924e-05/1.216, allocations: 27.86 kB / 0.9202 GB, free: 18.06 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.0002911/1.216, allocations: 195.6 kB / 0.9204 GB, free: 17.91 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/1.216, allocations: 39.53 kB / 0.9204 GB, free: 17.87 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001746/1.218, allocations: 1.575 MB / 0.922 GB, free: 16.76 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001425/1.219, allocations: 1.166 MB / 0.9231 GB, free: 15.79 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/1.219, allocations: 5.578 kB / 0.9231 GB, free: 15.78 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002018/1.219, allocations: 120.4 kB / 0.9232 GB, free: 15.64 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/1.219, allocations: 10.94 kB / 0.9232 GB, free: 15.64 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003546/1.22, allocations: 31.59 kB / 0.9233 GB, free: 15.62 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/1.22, allocations: 42.25 kB / 0.9233 GB, free: 15.58 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.ButaneTestModel_ph.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 = -1e5 max = 1.3e6 start = 6e5 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.0007159/1.221, allocations: 175.5 kB / 0.9235 GB, free: 15.44 MB / 0.6544 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph could not be translated