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.001246/0.001246, allocations: 112 kB / 16.42 MB, free: 6.516 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.001214/0.001214, allocations: 186.7 kB / 17.35 MB, free: 5.734 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.239/1.239, 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.04271/0.04271, allocations: 9.09 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.001349/0.001349, allocations: 71.23 kB / 388.2 MB, free: 47.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0637/0.06506, allocations: 48.18 MB / 436.4 MB, free: 7.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.3183/0.3834, allocations: 142.2 MB / 0.565 GB, free: 2.246 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.07625/0.4597, allocations: 97.75 MB / 0.6604 GB, free: 1.34 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004597/0.4602, allocations: 4 kB / 0.6604 GB, free: 1.336 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002911/0.4631, allocations: 1.549 MB / 0.6619 GB, free: 15.78 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003265/0.4664, allocations: 1.832 MB / 0.6637 GB, free: 13.94 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.06385/0.5303, allocations: 31.34 MB / 0.6943 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.00171/0.532, allocations: 1.414 MB / 0.6957 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.5322, allocations: 124.6 kB / 0.6958 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01501/0.5472, allocations: 10.06 MB / 0.7057 GB, free: 2.906 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004507/0.5477, allocations: 386.4 kB / 0.706 GB, free: 2.527 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.674e-05/0.5478, allocations: 40 kB / 0.7061 GB, free: 2.488 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2941/0.8418, allocations: 36.34 MB / 0.7416 GB, free: 57.5 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002399/0.8421, allocations: 123.1 kB / 0.7417 GB, free: 57.5 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005187/0.8427, allocations: 302.1 kB / 0.742 GB, free: 57.5 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.03995/0.8826, allocations: 14.6 MB / 0.7562 GB, free: 57.08 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.8827, allocations: 2.25 kB / 0.7562 GB, free: 57.08 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.044e-06/0.8827, allocations: 3.344 kB / 0.7562 GB, free: 57.08 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.096e-06/0.8827, allocations: 0 / 0.7562 GB, free: 57.08 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.006935/0.8896, allocations: 2.771 MB / 0.7589 GB, free: 55.52 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.8897, allocations: 10.62 kB / 0.7589 GB, free: 55.52 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004918/0.8902, allocations: 80.86 kB / 0.759 GB, free: 55.5 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000429/0.8906, allocations: 340.3 kB / 0.7593 GB, free: 55.27 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.37e-05/0.8907, allocations: 30.59 kB / 0.7594 GB, free: 55.27 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.756e-05/0.8907, allocations: 31.34 kB / 0.7594 GB, free: 55.27 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.8917, allocations: 0.5805 MB / 0.76 GB, free: 55.18 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.8918, allocations: 8.203 kB / 0.76 GB, free: 55.18 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.526e-05/0.8918, allocations: 11.97 kB / 0.76 GB, free: 55.18 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/0.8918, allocations: 16.91 kB / 0.76 GB, free: 55.18 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.8929, allocations: 0.5211 MB / 0.7605 GB, free: 55.17 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00192/0.8948, allocations: 2.486 MB / 0.7629 GB, free: 53.5 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008888/0.8957, allocations: 491.8 kB / 0.7634 GB, free: 53.47 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004478/0.8961, allocations: 337.1 kB / 0.7637 GB, free: 53.46 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1372/1.033, allocations: 113.4 MB / 0.8745 GB, free: 28.6 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.55e-05/1.033, allocations: 45.02 kB / 0.8745 GB, free: 28.56 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=78): time 3.005e-06/1.033, allocations: 0 / 0.8745 GB, free: 28.56 MB / 0.6231 GB Notification: Performance of matching and sorting (n=83): time 0.005503/1.039, allocations: 2.436 MB / 0.8769 GB, free: 28.03 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/1.039, allocations: 58.97 kB / 0.877 GB, free: 27.96 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002047/1.039, allocations: 251.5 kB / 0.8772 GB, free: 27.86 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.152e-05/1.039, allocations: 36.77 kB / 0.8773 GB, free: 27.83 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 8.641e-05/1.039, allocations: 195.5 kB / 0.8774 GB, free: 27.69 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/1.039, allocations: 284.9 kB / 0.8777 GB, free: 27.5 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/1.04, allocations: 97.83 kB / 0.8778 GB, free: 27.49 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001057/1.04, allocations: 355.9 kB / 0.8781 GB, free: 27.18 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004091/1.04, allocations: 277.6 kB / 0.8784 GB, free: 27.17 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004473/1.041, allocations: 404.7 kB / 0.8788 GB, free: 27.04 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008785/1.041, allocations: 0.7045 MB / 0.8795 GB, free: 26.91 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/1.041, allocations: 3.312 kB / 0.8795 GB, free: 26.91 MB / 0.6231 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001278/1.043, allocations: 0.8157 MB / 0.8803 GB, free: 26.81 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/1.043, allocations: 6.25 kB / 0.8803 GB, free: 26.81 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/1.043, allocations: 5.906 kB / 0.8803 GB, free: 26.81 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002631/1.043, allocations: 86.56 kB / 0.8804 GB, free: 26.79 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004504/1.044, allocations: 112 kB / 0.8805 GB, free: 26.79 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04846/1.092, allocations: 14.7 MB / 0.8948 GB, free: 32.01 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004464/1.092, allocations: 30.38 kB / 0.8949 GB, free: 31.98 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.284e-05/1.093, allocations: 18.56 kB / 0.8949 GB, free: 31.97 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.0002579/1.093, allocations: 192.5 kB / 0.8951 GB, free: 31.82 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.803e-05/1.093, allocations: 47.66 kB / 0.8951 GB, free: 31.77 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001791/1.095, allocations: 1.714 MB / 0.8968 GB, free: 30.57 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001293/1.096, allocations: 1.273 MB / 0.898 GB, free: 29.53 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/1.096, allocations: 0 / 0.898 GB, free: 29.53 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 8.562e-05/1.096, allocations: 116.8 kB / 0.8981 GB, free: 29.39 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.223e-05/1.096, allocations: 7.922 kB / 0.8982 GB, free: 29.39 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/1.096, allocations: 35.72 kB / 0.8982 GB, free: 29.36 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.118e-05/1.096, allocations: 44.83 kB / 0.8982 GB, free: 29.33 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.0006167/1.097, allocations: 198 kB / 0.8984 GB, free: 29.17 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