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.001282/0.001282, allocations: 109.2 kB / 16.41 MB, free: 6.445 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.00119/0.00119, allocations: 189.5 kB / 17.35 MB, free: 5.707 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.224/1.224, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04496/0.04496, allocations: 9.103 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.001501/0.001501, allocations: 68.84 kB / 388.2 MB, free: 47.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06586/0.06737, allocations: 48.18 MB / 436.4 MB, free: 7.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel): time 0.31/0.3774, allocations: 128.8 MB / 0.5519 GB, free: 2.102 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.08705/0.4645, allocations: 111.1 MB / 0.6604 GB, free: 1.125 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004817/0.465, allocations: 8 kB / 0.6604 GB, free: 1.117 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002905/0.468, allocations: 1.546 MB / 0.6619 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004084/0.4721, allocations: 1.832 MB / 0.6637 GB, free: 13.73 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.07394/0.546, allocations: 31.3 MB / 0.6943 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001847/0.5479, allocations: 1.402 MB / 0.6957 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003397/0.5483, allocations: 128.2 kB / 0.6958 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0172/0.5655, allocations: 9.927 MB / 0.7055 GB, free: 2.871 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007326/0.5662, allocations: 374.5 kB / 0.7058 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001225/0.5664, allocations: 44 kB / 0.7059 GB, free: 2.461 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2898/0.8561, allocations: 35.25 MB / 0.7403 GB, free: 57.4 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002077/0.8564, allocations: 124 kB / 0.7404 GB, free: 57.4 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005948/0.857, allocations: 303.8 kB / 0.7407 GB, free: 57.4 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.03597/0.893, allocations: 14.13 MB / 0.7545 GB, free: 56.99 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.893, allocations: 0 / 0.7545 GB, free: 56.99 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.644e-06/0.893, allocations: 1.188 kB / 0.7545 GB, free: 56.99 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.85e-05/0.893, allocations: 0 / 0.7545 GB, free: 56.99 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.006288/0.8993, allocations: 2.683 MB / 0.7571 GB, free: 55.47 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.8994, allocations: 9.5 kB / 0.7571 GB, free: 55.47 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006145/0.9, allocations: 87.05 kB / 0.7572 GB, free: 55.44 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000506/0.9005, allocations: 343.5 kB / 0.7576 GB, free: 55.21 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.753e-05/0.9006, allocations: 29.12 kB / 0.7576 GB, free: 55.21 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.475e-05/0.9006, allocations: 35.97 kB / 0.7576 GB, free: 55.21 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.9018, allocations: 0.6 MB / 0.7582 GB, free: 55.12 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.9019, allocations: 4.844 kB / 0.7582 GB, free: 55.12 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.858e-05/0.9019, allocations: 17.66 kB / 0.7582 GB, free: 55.12 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.9019, allocations: 19.36 kB / 0.7582 GB, free: 55.12 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.9032, allocations: 0.5469 MB / 0.7588 GB, free: 55.12 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002059/0.9052, allocations: 2.51 MB / 0.7612 GB, free: 53.44 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009664/0.9062, allocations: 0.4888 MB / 0.7617 GB, free: 53.41 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004548/0.9067, allocations: 338 kB / 0.762 GB, free: 53.4 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2217/1.128, allocations: 139 MB / 0.8978 GB, free: 23.02 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.657e-05/1.128, allocations: 40.41 kB / 0.8978 GB, free: 22.98 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=78): time 3.256e-06/1.128, allocations: 4 kB / 0.8978 GB, free: 22.98 MB / 0.6387 GB Notification: Performance of matching and sorting (n=82): time 0.005423/1.134, allocations: 2.332 MB / 0.9001 GB, free: 21.18 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.868e-05/1.134, allocations: 55.41 kB / 0.9001 GB, free: 21.11 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002455/1.134, allocations: 257.9 kB / 0.9004 GB, free: 20.89 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.075e-05/1.134, allocations: 30.64 kB / 0.9004 GB, free: 20.86 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 9.512e-05/1.134, allocations: 200.3 kB / 0.9006 GB, free: 20.7 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/1.134, allocations: 276.9 kB / 0.9009 GB, free: 20.46 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/1.135, allocations: 97.67 kB / 0.901 GB, free: 20.39 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001184/1.135, allocations: 354.8 kB / 0.9013 GB, free: 20.06 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004205/1.135, allocations: 273 kB / 0.9016 GB, free: 19.9 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004613/1.136, allocations: 388.4 kB / 0.9019 GB, free: 19.61 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008779/1.136, allocations: 0.6875 MB / 0.9026 GB, free: 19.14 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/1.136, allocations: 0 / 0.9026 GB, free: 19.14 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001224/1.138, allocations: 0.7931 MB / 0.9034 GB, free: 18.6 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/1.138, allocations: 11.53 kB / 0.9034 GB, free: 18.59 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/1.138, allocations: 0 / 0.9034 GB, free: 18.59 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002252/1.138, allocations: 63.8 kB / 0.9034 GB, free: 18.54 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005572/1.139, allocations: 128.6 kB / 0.9036 GB, free: 18.42 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06444/1.203, allocations: 19.42 MB / 0.9225 GB, free: 15.47 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004187/1.203, allocations: 20.8 kB / 0.9225 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-05/1.204, allocations: 29 kB / 0.9226 GB, free: 15.43 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.0002589/1.204, allocations: 194.6 kB / 0.9228 GB, free: 15.28 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.83e-05/1.204, allocations: 43.72 kB / 0.9228 GB, free: 15.24 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001888/1.206, allocations: 1.671 MB / 0.9244 GB, free: 14.07 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00151/1.207, allocations: 1.262 MB / 0.9257 GB, free: 13.04 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/1.207, allocations: 3.984 kB / 0.9257 GB, free: 13.04 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001336/1.207, allocations: 123.7 kB / 0.9258 GB, free: 12.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.254e-05/1.208, allocations: 6.125 kB / 0.9258 GB, free: 12.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000294/1.208, allocations: 27.91 kB / 0.9258 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/1.208, allocations: 41.81 kB / 0.9259 GB, free: 12.85 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.0006477/1.209, allocations: 190.5 kB / 0.926 GB, free: 12.68 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