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.001245/0.001245, allocations: 114.5 kB / 16.42 MB, free: 6.496 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.001307/0.001307, allocations: 188.3 kB / 17.35 MB, free: 5.758 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.226/1.226, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0454/0.0454, allocations: 9.091 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.001449/0.001449, allocations: 73.05 kB / 388.2 MB, free: 47.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06504/0.0665, allocations: 48.18 MB / 436.4 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.3107/0.3772, allocations: 142.2 MB / 0.565 GB, free: 1.801 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.07649/0.4537, allocations: 97.75 MB / 0.6604 GB, free: 1.188 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004547/0.4542, allocations: 7.938 kB / 0.6604 GB, free: 1.18 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002839/0.4571, allocations: 1.546 MB / 0.6619 GB, free: 15.63 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003375/0.4605, allocations: 1.828 MB / 0.6637 GB, free: 13.79 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.06732/0.5278, allocations: 31.34 MB / 0.6943 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001704/0.5296, allocations: 1.402 MB / 0.6957 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002661/0.5298, allocations: 130.1 kB / 0.6958 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01595/0.5458, allocations: 10.05 MB / 0.7056 GB, free: 2.773 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006387/0.5465, allocations: 382.4 kB / 0.706 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 8.576e-05/0.5466, allocations: 44 kB / 0.7061 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2955/0.8421, allocations: 35.39 MB / 0.7406 GB, free: 57.49 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002152/0.8423, allocations: 116.9 kB / 0.7407 GB, free: 57.49 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004751/0.8428, allocations: 313.3 kB / 0.741 GB, free: 57.49 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.03812/0.8809, allocations: 14.19 MB / 0.7549 GB, free: 57.09 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.881, allocations: 0 / 0.7549 GB, free: 57.09 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.523e-06/0.881, allocations: 0 / 0.7549 GB, free: 57.09 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.498e-06/0.881, allocations: 2.094 kB / 0.7549 GB, free: 57.09 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.006518/0.8875, allocations: 2.679 MB / 0.7575 GB, free: 55.57 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.8876, allocations: 10.72 kB / 0.7575 GB, free: 55.57 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006203/0.8882, allocations: 90.91 kB / 0.7576 GB, free: 55.54 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004148/0.8886, allocations: 346.4 kB / 0.7579 GB, free: 55.32 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/0.8887, allocations: 27.34 kB / 0.758 GB, free: 55.32 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.736e-05/0.8887, allocations: 37.75 kB / 0.758 GB, free: 55.32 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.8898, allocations: 0.5985 MB / 0.7586 GB, free: 55.22 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.8899, allocations: 0 / 0.7586 GB, free: 55.22 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.624e-05/0.8899, allocations: 16.09 kB / 0.7586 GB, free: 55.22 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.716e-05/0.8899, allocations: 20.12 kB / 0.7586 GB, free: 55.22 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001132/0.8911, allocations: 0.546 MB / 0.7591 GB, free: 55.22 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.893, allocations: 2.509 MB / 0.7616 GB, free: 53.54 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009428/0.894, allocations: 0.4984 MB / 0.7621 GB, free: 53.51 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004384/0.8944, allocations: 337 kB / 0.7624 GB, free: 53.5 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2167/1.111, allocations: 139 MB / 0.8981 GB, free: 23.02 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/1.111, allocations: 33.16 kB / 0.8982 GB, free: 22.98 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=78): time 3.697e-06/1.111, allocations: 0 / 0.8982 GB, free: 22.98 MB / 0.6387 GB Notification: Performance of matching and sorting (n=82): time 0.005478/1.117, allocations: 2.334 MB / 0.9004 GB, free: 21.18 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.176e-05/1.117, allocations: 60.91 kB / 0.9005 GB, free: 21.11 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002392/1.117, allocations: 259.1 kB / 0.9008 GB, free: 20.89 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.05e-05/1.117, allocations: 33.95 kB / 0.9008 GB, free: 20.86 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/1.117, allocations: 195.4 kB / 0.901 GB, free: 20.7 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/1.117, allocations: 274.4 kB / 0.9012 GB, free: 20.46 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/1.117, allocations: 96.36 kB / 0.9013 GB, free: 20.4 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001175/1.118, allocations: 361.9 kB / 0.9017 GB, free: 20.06 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000433/1.118, allocations: 272.6 kB / 0.9019 GB, free: 19.9 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004571/1.118, allocations: 408.5 kB / 0.9023 GB, free: 19.57 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008901/1.119, allocations: 0.7103 MB / 0.903 GB, free: 19.08 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/1.119, allocations: 3 kB / 0.903 GB, free: 19.08 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001255/1.121, allocations: 0.7978 MB / 0.9038 GB, free: 18.54 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/1.121, allocations: 12.31 kB / 0.9038 GB, free: 18.53 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/1.121, allocations: 6.219 kB / 0.9038 GB, free: 18.53 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002391/1.121, allocations: 68.58 kB / 0.9039 GB, free: 18.47 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005819/1.122, allocations: 121.9 kB / 0.904 GB, free: 18.36 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06562/1.187, allocations: 19.08 MB / 0.9226 GB, free: 15.75 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005612/1.188, allocations: 32.62 kB / 0.9227 GB, free: 15.72 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-05/1.188, allocations: 28.42 kB / 0.9227 GB, free: 15.7 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.000287/1.188, allocations: 193.2 kB / 0.9229 GB, free: 15.55 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/1.188, allocations: 43.72 kB / 0.9229 GB, free: 15.51 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001747/1.19, allocations: 1.575 MB / 0.9244 GB, free: 14.4 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001258/1.191, allocations: 1.182 MB / 0.9256 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/1.191, allocations: 0 / 0.9256 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001338/1.191, allocations: 124.7 kB / 0.9257 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.741e-05/1.192, allocations: 11.33 kB / 0.9257 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002801/1.192, allocations: 35.03 kB / 0.9258 GB, free: 13.24 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.063e-05/1.192, allocations: 40.08 kB / 0.9258 GB, free: 13.21 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.0005717/1.193, allocations: 165.2 kB / 0.926 GB, free: 13.07 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