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.001073/0.001073, allocations: 114.2 kB / 16.42 MB, free: 6.504 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.001252/0.001252, allocations: 187.9 kB / 17.35 MB, free: 5.762 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.256/1.256, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04697/0.04697, allocations: 9.094 MB / 279.7 MB, free: 2.961 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.001457/0.001457, allocations: 68.66 kB / 388.2 MB, free: 47.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06676/0.06823, allocations: 48.18 MB / 436.4 MB, free: 7.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.3046/0.3729, allocations: 128.9 MB / 0.552 GB, free: 2.129 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.09083/0.4638, allocations: 111.1 MB / 0.6605 GB, free: 1.074 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005491/0.4644, allocations: 7.938 kB / 0.6605 GB, free: 1.066 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002894/0.4673, allocations: 1.358 MB / 0.6618 GB, free: 15.7 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00338/0.4707, allocations: 1.652 MB / 0.6635 GB, free: 14.04 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.06695/0.5377, allocations: 30.12 MB / 0.6929 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001722/0.5394, allocations: 1.402 MB / 0.6942 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002307/0.5397, allocations: 130.2 kB / 0.6944 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01842/0.5581, allocations: 11.69 MB / 0.7058 GB, free: 2.586 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005006/0.5586, allocations: 374.5 kB / 0.7061 GB, free: 2.219 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.475e-05/0.5587, allocations: 44 kB / 0.7062 GB, free: 2.176 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3019/0.8606, allocations: 36.97 MB / 0.7423 GB, free: 58.07 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002194/0.8609, allocations: 116.9 kB / 0.7424 GB, free: 58.07 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004964/0.8614, allocations: 307.9 kB / 0.7427 GB, free: 58.07 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.04071/0.9021, allocations: 14.52 MB / 0.7569 GB, free: 57.98 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.9021, allocations: 3.031 kB / 0.7569 GB, free: 57.98 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.403e-06/0.9022, allocations: 0 / 0.7569 GB, free: 57.98 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.9022, allocations: 1.688 kB / 0.7569 GB, free: 57.98 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.007328/0.9095, allocations: 2.563 MB / 0.7594 GB, free: 56.59 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.9096, allocations: 14.8 kB / 0.7594 GB, free: 56.59 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000643/0.9102, allocations: 83.47 kB / 0.7595 GB, free: 56.57 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003908/0.9106, allocations: 346.3 kB / 0.7598 GB, free: 56.34 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.952e-05/0.9106, allocations: 31.72 kB / 0.7598 GB, free: 56.34 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.554e-05/0.9107, allocations: 34.84 kB / 0.7599 GB, free: 56.34 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.9119, allocations: 0.5947 MB / 0.7604 GB, free: 56.25 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.9119, allocations: 1 kB / 0.7604 GB, free: 56.25 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.129e-05/0.912, allocations: 16.81 kB / 0.7605 GB, free: 56.25 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.912, allocations: 20.28 kB / 0.7605 GB, free: 56.25 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/0.9132, allocations: 0.5514 MB / 0.761 GB, free: 56.25 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002064/0.9153, allocations: 2.462 MB / 0.7634 GB, free: 54.64 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001001/0.9163, allocations: 499.2 kB / 0.7639 GB, free: 54.61 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004688/0.9168, allocations: 330.3 kB / 0.7642 GB, free: 54.6 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2421/1.159, allocations: 139 MB / 0.8999 GB, free: 22.61 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.906e-05/1.159, allocations: 36.25 kB / 0.9 GB, free: 22.57 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=77): time 4.208e-06/1.159, allocations: 0 / 0.9 GB, free: 22.57 MB / 0.6387 GB Notification: Performance of matching and sorting (n=81): time 0.00618/1.165, allocations: 2.348 MB / 0.9023 GB, free: 20.76 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/1.165, allocations: 59.39 kB / 0.9023 GB, free: 20.69 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002662/1.166, allocations: 264.1 kB / 0.9026 GB, free: 20.48 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.326e-05/1.166, allocations: 33.2 kB / 0.9026 GB, free: 20.44 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/1.166, allocations: 192 kB / 0.9028 GB, free: 20.28 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/1.166, allocations: 257.6 kB / 0.903 GB, free: 20.06 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/1.166, allocations: 100.6 kB / 0.9031 GB, free: 19.99 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001252/1.166, allocations: 354.5 kB / 0.9035 GB, free: 19.66 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004549/1.167, allocations: 278.4 kB / 0.9037 GB, free: 19.49 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004873/1.167, allocations: 385.6 kB / 0.9041 GB, free: 19.2 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009739/1.168, allocations: 0.694 MB / 0.9048 GB, free: 18.73 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-06/1.168, allocations: 1.188 kB / 0.9048 GB, free: 18.73 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001338/1.169, allocations: 0.8015 MB / 0.9056 GB, free: 18.18 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/1.169, allocations: 8 kB / 0.9056 GB, free: 18.17 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/1.169, allocations: 4 kB / 0.9056 GB, free: 18.17 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002352/1.17, allocations: 64.05 kB / 0.9056 GB, free: 18.11 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000691/1.17, allocations: 146.1 kB / 0.9058 GB, free: 17.98 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07502/1.245, allocations: 22.96 MB / 0.9282 GB, free: 11.51 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004966/1.246, allocations: 26.98 kB / 0.9282 GB, free: 11.49 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.607e-05/1.246, allocations: 24.48 kB / 0.9283 GB, free: 11.47 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.0003377/1.246, allocations: 181.9 kB / 0.9284 GB, free: 11.33 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/1.246, allocations: 47.38 kB / 0.9285 GB, free: 11.29 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002164/1.249, allocations: 1.715 MB / 0.9301 GB, free: 10.09 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001553/1.25, allocations: 1.295 MB / 0.9314 GB, free: 9.035 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/1.25, allocations: 0 / 0.9314 GB, free: 9.035 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001578/1.25, allocations: 120.4 kB / 0.9315 GB, free: 8.898 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.566e-05/1.251, allocations: 19.91 kB / 0.9315 GB, free: 8.891 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003154/1.251, allocations: 23.84 kB / 0.9316 GB, free: 8.871 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/1.251, allocations: 43.81 kB / 0.9316 GB, free: 8.836 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.0006645/1.252, allocations: 171.2 kB / 0.9318 GB, free: 8.688 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