Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.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.ButaneTestModel_dT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 112.1 kB / 16.42 MB, free: 6.492 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.001248/0.001248, 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.3/1.3, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04559/0.04559, allocations: 9.092 MB / 279.7 MB, free: 2.969 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.00199/0.00199, allocations: 70.52 kB / 388.2 MB, free: 47.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06471/0.06672, allocations: 48.18 MB / 436.4 MB, free: 7.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.3105/0.3772, allocations: 142.1 MB / 0.565 GB, free: 1.789 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.07966/0.4569, allocations: 97.73 MB / 0.6604 GB, free: 1.199 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005988/0.4575, allocations: 15.94 kB / 0.6604 GB, free: 1.184 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002874/0.4605, allocations: 1.354 MB / 0.6617 GB, free: 15.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003418/0.4639, allocations: 1.656 MB / 0.6634 GB, free: 14.16 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.06496/0.5289, allocations: 29.53 MB / 0.6922 GB, free: 0.5586 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001963/0.5309, allocations: 1.414 MB / 0.6936 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002174/0.5311, allocations: 131.5 kB / 0.6937 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01497/0.5461, allocations: 9.87 MB / 0.7033 GB, free: 5.117 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004966/0.5466, allocations: 378.4 kB / 0.7037 GB, free: 4.746 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.91e-05/0.5467, allocations: 44 kB / 0.7037 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04547/0.5921, allocations: 29.4 MB / 0.7325 GB, free: 7.246 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002157/0.5924, allocations: 115.6 kB / 0.7326 GB, free: 7.133 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004619/0.5929, allocations: 306.7 kB / 0.7329 GB, free: 6.832 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.2577/0.8506, allocations: 11.89 MB / 0.7445 GB, free: 62.29 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.8507, allocations: 0.5 kB / 0.7445 GB, free: 62.29 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.665e-06/0.8507, allocations: 1 kB / 0.7445 GB, free: 62.29 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.356e-06/0.8507, allocations: 2.938 kB / 0.7445 GB, free: 62.29 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.006734/0.8574, allocations: 2.144 MB / 0.7466 GB, free: 61.17 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.8575, allocations: 8.844 kB / 0.7466 GB, free: 61.17 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000563/0.858, allocations: 77.78 kB / 0.7467 GB, free: 61.15 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000502/0.8586, allocations: 339.2 kB / 0.747 GB, free: 60.92 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.549e-05/0.8586, allocations: 30.47 kB / 0.747 GB, free: 60.92 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.36e-05/0.8587, allocations: 33.88 kB / 0.747 GB, free: 60.92 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.8599, allocations: 0.5798 MB / 0.7476 GB, free: 60.83 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.8599, allocations: 5.969 kB / 0.7476 GB, free: 60.83 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.949e-05/0.86, allocations: 15.47 kB / 0.7476 GB, free: 60.83 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.605e-05/0.86, allocations: 18.09 kB / 0.7477 GB, free: 60.83 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001182/0.8612, allocations: 0.513 MB / 0.7482 GB, free: 60.83 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.8632, allocations: 2.493 MB / 0.7506 GB, free: 59.16 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009235/0.8641, allocations: 497.4 kB / 0.7511 GB, free: 59.13 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004525/0.8646, allocations: 332.8 kB / 0.7514 GB, free: 59.12 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1607/1.025, allocations: 113.3 MB / 0.862 GB, free: 38.71 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/1.025, allocations: 32.81 kB / 0.862 GB, free: 38.68 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=78): time 2.825e-06/1.025, allocations: 3.938 kB / 0.862 GB, free: 38.68 MB / 0.6231 GB Notification: Performance of matching and sorting (n=83): time 0.005746/1.031, allocations: 2.63 MB / 0.8646 GB, free: 38.05 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/1.031, allocations: 55.38 kB / 0.8646 GB, free: 37.99 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/1.031, allocations: 259.2 kB / 0.8649 GB, free: 37.88 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.709e-05/1.031, allocations: 34.86 kB / 0.8649 GB, free: 37.85 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 8.771e-05/1.032, allocations: 191.8 kB / 0.8651 GB, free: 37.71 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/1.032, allocations: 266.8 kB / 0.8654 GB, free: 37.54 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/1.032, allocations: 96.77 kB / 0.8655 GB, free: 37.53 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.000125/1.032, allocations: 352.6 kB / 0.8658 GB, free: 37.21 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004291/1.032, allocations: 284.9 kB / 0.8661 GB, free: 37.21 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004644/1.033, allocations: 403 kB / 0.8665 GB, free: 37.08 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009099/1.034, allocations: 0.7114 MB / 0.8671 GB, free: 36.94 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/1.034, allocations: 0 / 0.8671 GB, free: 36.94 MB / 0.6231 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001242/1.035, allocations: 0.8132 MB / 0.8679 GB, free: 36.84 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/1.035, allocations: 13.78 kB / 0.868 GB, free: 36.84 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/1.035, allocations: 3.875 kB / 0.868 GB, free: 36.84 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007573/1.036, allocations: 144.8 kB / 0.8681 GB, free: 36.81 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005627/1.036, allocations: 119.1 kB / 0.8682 GB, free: 36.81 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002253/1.039, allocations: 3.754 MB / 0.8719 GB, free: 33.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003755/1.039, allocations: 29.91 kB / 0.8719 GB, free: 33.2 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.01e-05/1.039, allocations: 19.12 kB / 0.8719 GB, free: 33.2 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (47): * Single equations (assignments): 39 * 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, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002369/1.039, allocations: 205.5 kB / 0.8721 GB, free: 33.07 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.259e-05/1.039, allocations: 43.06 kB / 0.8722 GB, free: 33.05 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001772/1.041, allocations: 1.674 MB / 0.8738 GB, free: 32.77 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001319/1.043, allocations: 1.249 MB / 0.875 GB, free: 32.27 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/1.043, allocations: 0 / 0.875 GB, free: 32.27 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/1.043, allocations: 116.5 kB / 0.8751 GB, free: 32.14 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.624e-05/1.043, allocations: 7.906 kB / 0.8751 GB, free: 32.14 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002807/1.043, allocations: 25.36 kB / 0.8752 GB, free: 32.14 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/1.043, allocations: 49.98 kB / 0.8752 GB, free: 32.14 MB / 0.6231 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): volume.medium.p = $cse2.p 2/2 (7): $cse2 = HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.fixedMassFlowRate.Medium.setState_dT(fixedMassFlowRate.medium.d, fixedMassFlowRate.T_ambient, 0) Variables: 1: $cse2.h:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse2.s:VARIABLE(protected = true ) type: Real unreplaceable 3: fixedMassFlowRate.medium.d:VARIABLE(min = 1e-60 max = 800.0 start = 228.0 unit = "kg/m3" nominal = 1.0 ) "Density of medium" type: Real 4: $cse2.p:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse2.T:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse2.d:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse2.phase:DISCRETE(protected = true ) type: Integer unreplaceable 8: $cse2.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.0006452/1.044, allocations: 175.4 kB / 0.8754 GB, free: 32.04 MB / 0.6231 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT could not be translated