Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.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.PropaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001644/0.001644, allocations: 110.8 kB / 16.42 MB, free: 6.461 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.00188/0.001881, allocations: 190.6 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.346/1.346, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04642/0.04642, allocations: 9.099 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.001429/0.001429, allocations: 72.03 kB / 388.2 MB, free: 47.31 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07253/0.07397, allocations: 48.17 MB / 436.4 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel): time 0.3125/0.3865, allocations: 128.8 MB / 0.5519 GB, free: 2.535 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.09077/0.4773, allocations: 111.1 MB / 0.6604 GB, free: 1.352 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004764/0.4778, allocations: 4 kB / 0.6604 GB, free: 1.348 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002821/0.4807, allocations: 1.362 MB / 0.6618 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003935/0.4847, allocations: 1.66 MB / 0.6634 GB, free: 14.31 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.06749/0.5522, allocations: 29.48 MB / 0.6922 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001706/0.5539, allocations: 1.406 MB / 0.6936 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002242/0.5541, allocations: 129.9 kB / 0.6937 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0164/0.5705, allocations: 9.752 MB / 0.7032 GB, free: 5.441 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005393/0.5711, allocations: 374.5 kB / 0.7036 GB, free: 5.074 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.095e-05/0.5712, allocations: 40 kB / 0.7036 GB, free: 5.035 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05523/0.6264, allocations: 35.27 MB / 0.738 GB, free: 1.703 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002438/0.6267, allocations: 115.6 kB / 0.7382 GB, free: 1.59 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005503/0.6273, allocations: 302.8 kB / 0.7384 GB, free: 1.293 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.2895/0.9167, allocations: 14.09 MB / 0.7522 GB, free: 57.83 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.9168, allocations: 5.234 kB / 0.7522 GB, free: 57.83 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.665e-06/0.9168, allocations: 1.281 kB / 0.7522 GB, free: 57.83 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.566e-06/0.9168, allocations: 2.438 kB / 0.7522 GB, free: 57.83 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.008024/0.9249, allocations: 2.568 MB / 0.7547 GB, free: 56.47 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.9249, allocations: 9.656 kB / 0.7547 GB, free: 56.47 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006466/0.9256, allocations: 85.59 kB / 0.7548 GB, free: 56.45 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003875/0.926, allocations: 341 kB / 0.7551 GB, free: 56.22 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.539e-05/0.926, allocations: 30.25 kB / 0.7552 GB, free: 56.22 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.478e-05/0.9261, allocations: 34.72 kB / 0.7552 GB, free: 56.22 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001193/0.9273, allocations: 0.5928 MB / 0.7558 GB, free: 56.13 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.9273, allocations: 4.188 kB / 0.7558 GB, free: 56.13 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.172e-05/0.9273, allocations: 13.44 kB / 0.7558 GB, free: 56.13 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.925e-05/0.9274, allocations: 23.3 kB / 0.7558 GB, free: 56.13 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001198/0.9286, allocations: 0.5502 MB / 0.7563 GB, free: 56.13 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002124/0.9307, allocations: 2.504 MB / 0.7588 GB, free: 54.46 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.9317, allocations: 0.4941 MB / 0.7593 GB, free: 54.43 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004766/0.9322, allocations: 334.2 kB / 0.7596 GB, free: 54.42 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2442/1.176, allocations: 139 MB / 0.8953 GB, free: 25.21 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/1.177, allocations: 38.03 kB / 0.8954 GB, free: 25.18 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=78): time 4.057e-06/1.177, allocations: 4 kB / 0.8954 GB, free: 25.17 MB / 0.6387 GB Notification: Performance of matching and sorting (n=82): time 0.005751/1.182, allocations: 2.328 MB / 0.8976 GB, free: 23.37 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.496e-05/1.182, allocations: 55.41 kB / 0.8977 GB, free: 23.3 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002304/1.183, allocations: 261 kB / 0.8979 GB, free: 23.09 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.905e-05/1.183, allocations: 29.45 kB / 0.898 GB, free: 23.06 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 9.671e-05/1.183, allocations: 191.8 kB / 0.8981 GB, free: 22.89 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/1.183, allocations: 261.2 kB / 0.8984 GB, free: 22.68 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/1.183, allocations: 111.2 kB / 0.8985 GB, free: 22.6 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001234/1.183, allocations: 348.5 kB / 0.8988 GB, free: 22.27 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004321/1.184, allocations: 269.6 kB / 0.8991 GB, free: 22.11 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004589/1.184, allocations: 387.7 kB / 0.8995 GB, free: 21.82 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008987/1.185, allocations: 0.6898 MB / 0.9001 GB, free: 21.36 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/1.185, allocations: 2.078 kB / 0.9001 GB, free: 21.36 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001248/1.186, allocations: 0.7879 MB / 0.9009 GB, free: 20.81 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/1.186, allocations: 5.5 kB / 0.9009 GB, free: 20.81 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/1.186, allocations: 7.984 kB / 0.9009 GB, free: 20.8 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002339/1.187, allocations: 60.83 kB / 0.901 GB, free: 20.75 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005962/1.187, allocations: 131.8 kB / 0.9011 GB, free: 20.63 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07156/1.259, allocations: 19.41 MB / 0.9201 GB, free: 17.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004579/1.259, allocations: 27.03 kB / 0.9201 GB, free: 17.68 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.608e-05/1.259, allocations: 19.31 kB / 0.9201 GB, free: 17.66 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {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.0002841/1.26, allocations: 194.6 kB / 0.9203 GB, free: 17.51 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/1.26, allocations: 39.53 kB / 0.9203 GB, free: 17.47 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001832/1.261, allocations: 1.681 MB / 0.922 GB, free: 16.3 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001361/1.263, allocations: 1.25 MB / 0.9232 GB, free: 15.28 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/1.263, allocations: 0 / 0.9232 GB, free: 15.28 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/1.263, allocations: 120.4 kB / 0.9233 GB, free: 15.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.5e-05/1.263, allocations: 7.312 kB / 0.9233 GB, free: 15.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002976/1.263, allocations: 32.16 kB / 0.9233 GB, free: 15.11 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.594e-05/1.264, allocations: 42.94 kB / 0.9234 GB, free: 15.08 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): ambient.T_ambient = $cse7.T 2/2 (7): $cse7 = HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.ambient.Medium.setState_ph(ambient.p_ambient, ambient.medium.state.h, 0) Variables: 1: $cse7.T:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse7.d:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse7.u:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse7.p:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse7.h:VARIABLE(protected = true ) type: Real unreplaceable 6: ambient.medium.state.h:VARIABLE(min = -2e5 max = 2.4e6 start = 1.1e6 unit = "J/kg" nominal = 1e6 ) "Specific enthalpy of medium" type: Real 7: $cse7.s:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse7.phase:DISCRETE(protected = true ) type: Integer 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.0006494/1.264, allocations: 182.5 kB / 0.9236 GB, free: 14.91 MB / 0.6544 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel could not be translated