Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.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_pT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 109.6 kB / 16.41 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.00111/0.00111, allocations: 192.2 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.268/1.268, 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.04616/0.04616, allocations: 9.098 MB / 279.7 MB, free: 2.938 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.001399/0.001399, allocations: 63.64 kB / 388.2 MB, free: 47.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06906/0.07047, allocations: 48.18 MB / 436.4 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.3171/0.3876, allocations: 142.2 MB / 0.565 GB, free: 1.781 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.07719/0.4648, allocations: 97.76 MB / 0.6604 GB, free: 1.195 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004579/0.4653, allocations: 7.938 kB / 0.6604 GB, free: 1.188 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002771/0.4681, allocations: 1.362 MB / 0.6618 GB, free: 15.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003295/0.4714, allocations: 1.649 MB / 0.6634 GB, free: 14.16 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.06371/0.5352, allocations: 29.54 MB / 0.6922 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001705/0.5369, allocations: 1.414 MB / 0.6936 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002216/0.5371, allocations: 127.6 kB / 0.6937 GB, free: 15 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01499/0.5521, allocations: 9.878 MB / 0.7034 GB, free: 5.105 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005024/0.5526, allocations: 374.5 kB / 0.7037 GB, free: 4.738 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.556e-05/0.5527, allocations: 44 kB / 0.7038 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05559/0.6083, allocations: 36.36 MB / 0.7393 GB, free: 280 kB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002099/0.6085, allocations: 119.6 kB / 0.7394 GB, free: 160 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.2355/0.844, allocations: 299.2 kB / 0.7397 GB, free: 57.84 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0375/0.8815, allocations: 14.57 MB / 0.7539 GB, free: 57.75 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.8816, allocations: 0 / 0.7539 GB, free: 57.75 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.533e-06/0.8816, allocations: 0 / 0.7539 GB, free: 57.75 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.8816, allocations: 0.6562 kB / 0.7539 GB, free: 57.75 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.007108/0.8887, allocations: 2.66 MB / 0.7565 GB, free: 56.33 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.8888, allocations: 8.5 kB / 0.7565 GB, free: 56.33 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005173/0.8893, allocations: 77.62 kB / 0.7566 GB, free: 56.3 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003498/0.8896, allocations: 338 kB / 0.7569 GB, free: 56.08 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.8897, allocations: 28.31 kB / 0.7569 GB, free: 56.08 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.718e-05/0.8897, allocations: 33.69 kB / 0.757 GB, free: 56.08 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.8908, allocations: 0.5779 MB / 0.7575 GB, free: 55.99 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.8908, allocations: 6.688 kB / 0.7575 GB, free: 55.99 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.05e-05/0.8909, allocations: 21.52 kB / 0.7576 GB, free: 55.99 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.8909, allocations: 13.52 kB / 0.7576 GB, free: 55.99 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001104/0.892, allocations: 0.5203 MB / 0.7581 GB, free: 55.99 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.8939, allocations: 2.485 MB / 0.7605 GB, free: 54.32 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009004/0.8948, allocations: 492.8 kB / 0.761 GB, free: 54.29 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000448/0.8953, allocations: 334.5 kB / 0.7613 GB, free: 54.28 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1552/1.05, allocations: 113.4 MB / 0.8721 GB, free: 29.41 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.261e-05/1.051, allocations: 40.59 kB / 0.8721 GB, free: 29.37 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=78): time 2.635e-06/1.051, allocations: 0 / 0.8721 GB, free: 29.37 MB / 0.6231 GB Notification: Performance of matching and sorting (n=83): time 0.005665/1.056, allocations: 2.424 MB / 0.8745 GB, free: 28.85 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.731e-05/1.056, allocations: 55.38 kB / 0.8745 GB, free: 28.79 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/1.057, allocations: 265.8 kB / 0.8748 GB, free: 28.68 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.319e-05/1.057, allocations: 29.58 kB / 0.8748 GB, free: 28.64 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 8.959e-05/1.057, allocations: 188.9 kB / 0.875 GB, free: 28.51 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/1.057, allocations: 272.1 kB / 0.8752 GB, free: 28.34 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/1.057, allocations: 94.97 kB / 0.8753 GB, free: 28.32 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001209/1.057, allocations: 354.9 kB / 0.8757 GB, free: 28.01 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004225/1.057, allocations: 276.9 kB / 0.8759 GB, free: 28 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004613/1.058, allocations: 411.3 kB / 0.8763 GB, free: 27.87 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009004/1.059, allocations: 0.7113 MB / 0.877 GB, free: 27.73 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/1.059, allocations: 0 / 0.877 GB, free: 27.73 MB / 0.6231 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001301/1.06, allocations: 0.8167 MB / 0.8778 GB, free: 27.64 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/1.06, allocations: 7.875 kB / 0.8778 GB, free: 27.64 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.894e-06/1.06, allocations: 1.875 kB / 0.8778 GB, free: 27.64 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002655/1.06, allocations: 83.7 kB / 0.8779 GB, free: 27.62 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004674/1.061, allocations: 115.4 kB / 0.878 GB, free: 27.62 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05251/1.113, allocations: 14.69 MB / 0.8924 GB, free: 33.2 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004658/1.114, allocations: 25.62 kB / 0.8924 GB, free: 33.18 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.335e-05/1.114, allocations: 18.31 kB / 0.8924 GB, free: 33.17 MB / 0.6387 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 (48): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000282/1.114, allocations: 193.7 kB / 0.8926 GB, free: 33.02 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/1.114, allocations: 47.5 kB / 0.8926 GB, free: 32.97 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001876/1.116, allocations: 1.718 MB / 0.8943 GB, free: 32.05 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001406/1.118, allocations: 1.267 MB / 0.8955 GB, free: 31.11 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/1.118, allocations: 0 / 0.8955 GB, free: 31.11 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/1.118, allocations: 119.2 kB / 0.8957 GB, free: 30.98 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.317e-05/1.118, allocations: 12.22 kB / 0.8957 GB, free: 30.98 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002848/1.118, allocations: 28.56 kB / 0.8957 GB, free: 30.96 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.073e-05/1.118, allocations: 42.97 kB / 0.8957 GB, free: 30.94 MB / 0.6387 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): ambient.h_ambient = $cse11.h 2/2 (7): $cse11 = HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.ambient.Medium.setState_pT(ambient.p_ambient, ambient.medium.T, 0) Variables: 1: $cse11.h:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse11.phase:DISCRETE(protected = true ) type: Integer unreplaceable 3: $cse11.u:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse11.s:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse11.p:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse11.d:VARIABLE(protected = true ) type: Real unreplaceable 7: ambient.medium.T:VARIABLE(min = 134.895 max = 575.0 start = 298.15 unit = "K" nominal = 300.0 ) "Temperature of medium" type: Real 8: $cse11.T: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.0006584/1.119, allocations: 189.8 kB / 0.8959 GB, free: 30.8 MB / 0.6387 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT could not be translated