Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.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.CarbondioxideTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001667/0.001667, allocations: 113.9 kB / 16.42 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.001985/0.001985, allocations: 187.9 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.59/1.59, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04795/0.04795, allocations: 9.101 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.001545/0.001545, allocations: 67 kB / 388.2 MB, free: 47.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09478/0.09634, allocations: 48.18 MB / 436.4 MB, free: 7.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.4299/0.5263, allocations: 128.9 MB / 0.552 GB, free: 2.586 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1146/0.6409, allocations: 111.1 MB / 0.6605 GB, free: 1.215 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007256/0.6417, allocations: 11.94 kB / 0.6605 GB, free: 1.203 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003847/0.6457, allocations: 1.542 MB / 0.662 GB, free: 15.66 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004418/0.6501, allocations: 1.832 MB / 0.6638 GB, free: 13.82 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.1037/0.7538, allocations: 31.94 MB / 0.695 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002533/0.7564, allocations: 1.402 MB / 0.6964 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003792/0.7568, allocations: 123.5 kB / 0.6965 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02349/0.7803, allocations: 11.88 MB / 0.7081 GB, free: 384 kB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009098/0.7812, allocations: 374.5 kB / 0.7084 GB, free: 8 kB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001759/0.7814, allocations: 44.05 kB / 0.7085 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4147/1.196, allocations: 36.97 MB / 0.7446 GB, free: 57.54 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002383/1.196, allocations: 120.1 kB / 0.7447 GB, free: 57.54 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005983/1.197, allocations: 305.1 kB / 0.745 GB, free: 57.54 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.05187/1.249, allocations: 14.51 MB / 0.7592 GB, free: 57.44 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 9.768e-06/1.249, allocations: 7.219 kB / 0.7592 GB, free: 57.44 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.857e-06/1.249, allocations: 1.625 kB / 0.7592 GB, free: 57.44 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.066e-05/1.249, allocations: 1.688 kB / 0.7592 GB, free: 57.44 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.01183/1.261, allocations: 2.565 MB / 0.7617 GB, free: 56.04 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.582e-05/1.261, allocations: 9.062 kB / 0.7617 GB, free: 56.04 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009999/1.262, allocations: 86.23 kB / 0.7618 GB, free: 56.02 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007234/1.263, allocations: 344 kB / 0.7621 GB, free: 55.79 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.676e-05/1.263, allocations: 32.41 kB / 0.7621 GB, free: 55.79 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.57e-05/1.263, allocations: 36.59 kB / 0.7622 GB, free: 55.79 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001876/1.265, allocations: 0.5934 MB / 0.7627 GB, free: 55.7 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.452e-05/1.265, allocations: 3.422 kB / 0.7627 GB, free: 55.7 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.753e-05/1.265, allocations: 16.88 kB / 0.7628 GB, free: 55.7 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.719e-05/1.265, allocations: 18.33 kB / 0.7628 GB, free: 55.7 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001868/1.267, allocations: 0.5512 MB / 0.7633 GB, free: 55.7 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00304/1.27, allocations: 2.464 MB / 0.7657 GB, free: 54.09 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/1.271, allocations: 497.3 kB / 0.7662 GB, free: 54.05 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007361/1.272, allocations: 338.9 kB / 0.7665 GB, free: 54.05 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2599/1.532, allocations: 139 MB / 0.9022 GB, free: 21.25 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/1.532, allocations: 41.92 kB / 0.9023 GB, free: 21.2 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=77): time 3.767e-06/1.532, allocations: 0 / 0.9023 GB, free: 21.2 MB / 0.6387 GB Notification: Performance of matching and sorting (n=81): time 0.005825/1.538, allocations: 2.353 MB / 0.9046 GB, free: 19.39 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/1.538, allocations: 55.41 kB / 0.9046 GB, free: 19.32 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002338/1.538, allocations: 259.5 kB / 0.9049 GB, free: 19.11 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 3.364e-05/1.538, allocations: 28.95 kB / 0.9049 GB, free: 19.08 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 9.242e-05/1.538, allocations: 194.5 kB / 0.9051 GB, free: 18.91 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.000113/1.538, allocations: 263.3 kB / 0.9053 GB, free: 18.69 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/1.539, allocations: 103.7 kB / 0.9054 GB, free: 18.62 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001456/1.539, allocations: 350.6 kB / 0.9058 GB, free: 18.29 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004506/1.539, allocations: 277.1 kB / 0.906 GB, free: 18.13 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004947/1.54, allocations: 395.6 kB / 0.9064 GB, free: 17.83 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00096/1.541, allocations: 0.6935 MB / 0.9071 GB, free: 17.36 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/1.541, allocations: 0 / 0.9071 GB, free: 17.36 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001298/1.542, allocations: 0.8018 MB / 0.9079 GB, free: 16.81 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/1.542, allocations: 10.03 kB / 0.9079 GB, free: 16.8 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/1.542, allocations: 384 / 0.9079 GB, free: 16.8 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002377/1.542, allocations: 63.92 kB / 0.9079 GB, free: 16.75 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000804/1.543, allocations: 139.7 kB / 0.9081 GB, free: 16.62 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07497/1.618, allocations: 22.96 MB / 0.9305 GB, free: 10.15 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000508/1.619, allocations: 31.75 kB / 0.9305 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.332e-05/1.619, allocations: 15.94 kB / 0.9305 GB, free: 10.11 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {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): 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.0003049/1.619, allocations: 190.1 kB / 0.9307 GB, free: 9.965 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/1.619, allocations: 47.38 kB / 0.9308 GB, free: 9.918 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002273/1.621, allocations: 1.709 MB / 0.9324 GB, free: 8.73 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0016/1.623, allocations: 1.294 MB / 0.9337 GB, free: 7.676 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/1.623, allocations: 0.875 kB / 0.9337 GB, free: 7.676 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001575/1.623, allocations: 124.4 kB / 0.9338 GB, free: 7.535 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.317e-05/1.623, allocations: 10.09 kB / 0.9338 GB, free: 7.535 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003203/1.624, allocations: 31.72 kB / 0.9339 GB, free: 7.512 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/1.624, allocations: 39.88 kB / 0.9339 GB, free: 7.477 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.CarbondioxideTestModel.fixedMassFlowRate.Medium.setState_ph(volume.medium.p, fixedMassFlowRate.medium.state.h, 0) Variables: 1: $cse8.T:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse8.d:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse8.h:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse8.phase:DISCRETE(protected = true ) type: Integer 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.p:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse8.u:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse8.s: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.0006289/1.624, allocations: 178.6 kB / 0.9341 GB, free: 7.324 MB / 0.6544 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel could not be translated