Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.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.IsopentaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.001431, allocations: 107.4 kB / 16.41 MB, free: 6.453 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.001477/0.001478, allocations: 192.3 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.323/1.323, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04891/0.04891, allocations: 9.091 MB / 279.7 MB, free: 2.965 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.00142/0.00142, allocations: 69.83 kB / 388.2 MB, free: 47.3 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09078/0.09221, allocations: 48.18 MB / 436.4 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel): time 0.3477/0.44, allocations: 128.6 MB / 0.5517 GB, free: 2.477 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.09471/0.5347, allocations: 111.1 MB / 0.6602 GB, free: 1.664 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005594/0.5353, allocations: 4 kB / 0.6602 GB, free: 1.66 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002879/0.5383, allocations: 1.362 MB / 0.6615 GB, free: 300 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003663/0.5419, allocations: 1.656 MB / 0.6631 GB, free: 14.63 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.06801/0.61, allocations: 29.23 MB / 0.6917 GB, free: 1.324 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001781/0.6118, allocations: 1.402 MB / 0.693 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.612, allocations: 127.4 kB / 0.6932 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01768/0.6297, allocations: 10.51 MB / 0.7034 GB, free: 5.266 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005266/0.6303, allocations: 378.5 kB / 0.7038 GB, free: 4.895 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.789e-05/0.6303, allocations: 43.94 kB / 0.7038 GB, free: 4.852 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05903/0.6894, allocations: 34.53 MB / 0.7375 GB, free: 2.262 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002464/0.6897, allocations: 115.6 kB / 0.7377 GB, free: 2.148 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005224/0.6902, allocations: 310.7 kB / 0.738 GB, free: 1.844 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.2884/0.9786, allocations: 13.92 MB / 0.7515 GB, free: 58.1 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.9787, allocations: 1.859 kB / 0.7515 GB, free: 58.1 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.272e-06/0.9787, allocations: 0 / 0.7515 GB, free: 58.1 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.603e-05/0.9787, allocations: 1.781 kB / 0.7516 GB, free: 58.1 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.006767/0.9855, allocations: 2.574 MB / 0.7541 GB, free: 56.74 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.9855, allocations: 7.375 kB / 0.7541 GB, free: 56.74 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005838/0.9861, allocations: 88.09 kB / 0.7542 GB, free: 56.71 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003415/0.9865, allocations: 342.5 kB / 0.7545 GB, free: 56.49 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.256e-05/0.9865, allocations: 31.94 kB / 0.7545 GB, free: 56.49 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.255e-05/0.9866, allocations: 33.88 kB / 0.7545 GB, free: 56.49 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001128/0.9877, allocations: 0.5958 MB / 0.7551 GB, free: 56.4 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.9877, allocations: 4.719 kB / 0.7551 GB, free: 56.4 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.909e-05/0.9878, allocations: 19.78 kB / 0.7552 GB, free: 56.4 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.9878, allocations: 14.53 kB / 0.7552 GB, free: 56.4 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/0.989, allocations: 0.5493 MB / 0.7557 GB, free: 56.4 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.991, allocations: 2.459 MB / 0.7581 GB, free: 54.79 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009806/0.992, allocations: 0.4946 MB / 0.7586 GB, free: 54.75 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004926/0.9925, allocations: 334.1 kB / 0.7589 GB, free: 54.75 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2409/1.233, allocations: 139 MB / 0.8946 GB, free: 25.95 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.86e-05/1.233, allocations: 37.69 kB / 0.8947 GB, free: 25.91 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=77): time 2.946e-06/1.233, allocations: 0 / 0.8947 GB, free: 25.91 MB / 0.6387 GB Notification: Performance of matching and sorting (n=81): time 0.005677/1.239, allocations: 2.347 MB / 0.897 GB, free: 24.1 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.69e-05/1.239, allocations: 55.41 kB / 0.897 GB, free: 24.03 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002319/1.239, allocations: 258.9 kB / 0.8973 GB, free: 23.82 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.34e-05/1.24, allocations: 33.52 kB / 0.8973 GB, free: 23.78 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/1.24, allocations: 192 kB / 0.8975 GB, free: 23.62 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/1.24, allocations: 256.6 kB / 0.8977 GB, free: 23.4 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/1.24, allocations: 102.8 kB / 0.8978 GB, free: 23.33 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001256/1.24, allocations: 358.8 kB / 0.8982 GB, free: 22.99 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004464/1.24, allocations: 279.4 kB / 0.8984 GB, free: 22.83 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004813/1.241, allocations: 388.7 kB / 0.8988 GB, free: 22.54 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009306/1.242, allocations: 0.6951 MB / 0.8995 GB, free: 22.06 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/1.242, allocations: 0 / 0.8995 GB, free: 22.06 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.0013/1.243, allocations: 0.7954 MB / 0.9003 GB, free: 21.52 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/1.243, allocations: 11.98 kB / 0.9003 GB, free: 21.51 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/1.243, allocations: 4 kB / 0.9003 GB, free: 21.5 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002467/1.244, allocations: 60.94 kB / 0.9003 GB, free: 21.45 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006974/1.244, allocations: 147.2 kB / 0.9005 GB, free: 21.32 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07013/1.314, allocations: 18.41 MB / 0.9184 GB, free: 19.38 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004474/1.315, allocations: 36.97 kB / 0.9185 GB, free: 19.36 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.127e-05/1.315, allocations: 15.25 kB / 0.9185 GB, free: 19.34 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.0002774/1.315, allocations: 184.2 kB / 0.9187 GB, free: 19.2 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/1.315, allocations: 47.38 kB / 0.9187 GB, free: 19.15 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001852/1.317, allocations: 1.703 MB / 0.9204 GB, free: 17.97 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00145/1.319, allocations: 1.296 MB / 0.9216 GB, free: 16.91 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/1.319, allocations: 4 kB / 0.9217 GB, free: 16.91 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001573/1.319, allocations: 124.4 kB / 0.9218 GB, free: 16.77 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.815e-05/1.319, allocations: 7.688 kB / 0.9218 GB, free: 16.77 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000309/1.319, allocations: 26.72 kB / 0.9218 GB, free: 16.75 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.675e-05/1.319, allocations: 42.25 kB / 0.9218 GB, free: 16.71 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.IsopentaneTestModel.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 = -725000.0 max = 7e5 start = -12500.0 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.0006182/1.32, allocations: 171.5 kB / 0.922 GB, free: 16.57 MB / 0.6544 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel could not be translated