Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.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.R134aTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2") translateModel(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 109.6 kB / 16.41 MB, free: 6.465 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.001123/0.001123, allocations: 190.5 kB / 17.35 MB, free: 5.738 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.293/1.293, 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.04673/0.04673, allocations: 9.096 MB / 279.7 MB, free: 2.953 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.001404/0.001404, allocations: 71.94 kB / 388.2 MB, free: 47.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06928/0.0707, allocations: 48.18 MB / 436.4 MB, free: 7.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.3803/0.4511, allocations: 197.7 MB / 0.6192 GB, free: 11.64 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3961/0.8473, allocations: 143.6 MB / 0.7595 GB, free: 160 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000608/0.8479, allocations: 10.34 kB / 0.7595 GB, free: 160 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.003455/0.8514, allocations: 1.84 MB / 0.7613 GB, free: 144 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004676/0.8561, allocations: 2.534 MB / 0.7638 GB, free: 112 kB / 0.545 GB [/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.0856/0.9417, allocations: 39.11 MB / 0.802 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002297/0.9441, allocations: 1.967 MB / 0.8039 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003021/0.9444, allocations: 197.2 kB / 0.8041 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001156/0.9455, allocations: 0.8113 MB / 0.8049 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006838/0.9462, allocations: 0.5372 MB / 0.8054 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.19e-05/0.9463, allocations: 60.12 kB / 0.8055 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07173/1.018, allocations: 46.6 MB / 0.851 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003357/1.018, allocations: 169.9 kB / 0.8511 GB, free: 2.578 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007421/1.019, allocations: 431.2 kB / 0.8516 GB, free: 2.25 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.04865/1.068, allocations: 18.75 MB / 0.8699 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/1.068, allocations: 0 / 0.8699 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.011e-06/1.068, allocations: 0 / 0.8699 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.332e-05/1.068, allocations: 0 / 0.8699 GB, free: 0.9492 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.007592/1.075, allocations: 3.359 MB / 0.8732 GB, free: 13.55 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/1.076, allocations: 12.03 kB / 0.8732 GB, free: 13.54 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008063/1.076, allocations: 119.1 kB / 0.8733 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005306/1.077, allocations: 408.9 kB / 0.8737 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.472e-05/1.077, allocations: 41 kB / 0.8737 GB, free: 12.94 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.117e-05/1.077, allocations: 51.91 kB / 0.8738 GB, free: 12.89 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001703/1.079, allocations: 0.8152 MB / 0.8746 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.202e-05/1.079, allocations: 11.91 kB / 0.8746 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.365e-05/1.079, allocations: 20 kB / 0.8746 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.212e-05/1.079, allocations: 20.22 kB / 0.8746 GB, free: 12 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00177/1.081, allocations: 0.7574 MB / 0.8753 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003279/1.084, allocations: 3.422 MB / 0.8787 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001466/1.085, allocations: 0.6802 MB / 0.8793 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007325/1.086, allocations: 487 kB / 0.8798 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5743/1.66, allocations: 185.3 MB / 1.061 GB, free: 143.6 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.113e-05/1.661, allocations: 36.44 kB / 1.061 GB, free: 143.5 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=109): time 3.526e-06/1.661, allocations: 3.812 kB / 1.061 GB, free: 143.5 MB / 0.7325 GB Notification: Performance of matching and sorting (n=117): time 0.008052/1.669, allocations: 3.415 MB / 1.064 GB, free: 143 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.656e-05/1.669, allocations: 57.66 kB / 1.064 GB, free: 143 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002583/1.669, allocations: 311.6 kB / 1.064 GB, free: 142.9 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.863e-05/1.669, allocations: 39.17 kB / 1.065 GB, free: 142.8 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.165e-05/1.669, allocations: 225.6 kB / 1.065 GB, free: 142.7 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/1.669, allocations: 380.6 kB / 1.065 GB, free: 142.5 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/1.669, allocations: 142.4 kB / 1.065 GB, free: 142.4 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 7.126e-05/1.669, allocations: 372.2 kB / 1.066 GB, free: 142.1 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000611/1.67, allocations: 392.8 kB / 1.066 GB, free: 142.1 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007/1.671, allocations: 0.5308 MB / 1.066 GB, free: 142 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/1.672, allocations: 0.9803 MB / 1.067 GB, free: 141.8 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/1.672, allocations: 0 / 1.067 GB, free: 141.8 MB / 0.7325 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001891/1.674, allocations: 1.129 MB / 1.069 GB, free: 141.7 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/1.674, allocations: 6.469 kB / 1.069 GB, free: 141.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/1.674, allocations: 3.656 kB / 1.069 GB, free: 141.7 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003794/1.674, allocations: 107.6 kB / 1.069 GB, free: 141.7 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009742/1.675, allocations: 208.6 kB / 1.069 GB, free: 141.7 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1353/1.811, allocations: 35.25 MB / 1.103 GB, free: 128.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005908/1.811, allocations: 40.44 kB / 1.103 GB, free: 128.3 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-05/1.811, allocations: 31.78 kB / 1.103 GB, free: 128.3 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,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 (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * 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): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003241/1.812, allocations: 227.6 kB / 1.104 GB, free: 128.2 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/1.812, allocations: 53.81 kB / 1.104 GB, free: 128.2 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002514/1.814, allocations: 2.38 MB / 1.106 GB, free: 127.8 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001919/1.816, allocations: 1.651 MB / 1.108 GB, free: 127.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/1.816, allocations: 0 / 1.108 GB, free: 127.4 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.352e-05/1.816, allocations: 140 kB / 1.108 GB, free: 127.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.577e-05/1.816, allocations: 16.75 kB / 1.108 GB, free: 127.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003886/1.817, allocations: 37.06 kB / 1.108 GB, free: 127.2 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/1.817, allocations: 66.41 kB / 1.108 GB, free: 127.2 MB / 0.7325 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 = $cse17.T 2/2 (7): $cse17 = HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.fixedMassFlowRate.Medium.setState_ph(volume.medium.p, fixedMassFlowRate.medium.state.h, 0) Variables: 1: $cse17.h:VARIABLE(protected = true ) type: Real unreplaceable 2: fixedMassFlowRate.medium.state.h:VARIABLE(min = 0.0 max = 6e5 start = 3e5 unit = "J/kg" nominal = 1e6 ) "Specific enthalpy of medium" type: Real 3: $cse17.s:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse17.T:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse17.phase:DISCRETE(protected = true ) type: Integer unreplaceable 6: $cse17.d:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse17.p:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse17.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.0005898/1.818, allocations: 181 kB / 1.108 GB, free: 127 MB / 0.7325 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2 could not be translated