Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.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.HeliumTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 109.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.001172/0.001172, allocations: 189.6 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.298/1.298, 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.04639/0.04639, allocations: 9.096 MB / 279.7 MB, free: 2.953 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.001577/0.001577, allocations: 70.52 kB / 388.2 MB, free: 47.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0763/0.07788, allocations: 48.18 MB / 436.4 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.3678/0.4457, allocations: 128.1 MB / 0.5512 GB, free: 2.57 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1029/0.5487, allocations: 110.1 MB / 0.6588 GB, free: 3.043 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007644/0.5495, allocations: 8 kB / 0.6588 GB, free: 3.035 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005031/0.5546, allocations: 1.276 MB / 0.66 GB, free: 1.754 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006284/0.5609, allocations: 1.547 MB / 0.6616 GB, free: 204 kB / 478.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.1375/0.6985, allocations: 28.68 MB / 0.6896 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00286/0.7014, allocations: 1.32 MB / 0.6909 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004278/0.7018, allocations: 123.7 kB / 0.691 GB, free: 2 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02707/0.7289, allocations: 8.643 MB / 0.6994 GB, free: 9.336 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001096/0.7301, allocations: 362.6 kB / 0.6998 GB, free: 8.98 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002095/0.7303, allocations: 44 kB / 0.6998 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07503/0.8053, allocations: 33.67 MB / 0.7327 GB, free: 7.211 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002657/0.8057, allocations: 115.6 kB / 0.7328 GB, free: 7.098 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005793/0.8062, allocations: 310.8 kB / 0.7331 GB, free: 6.793 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.3028/1.109, allocations: 14.12 MB / 0.7469 GB, free: 62.8 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/1.109, allocations: 2.344 kB / 0.7469 GB, free: 62.8 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.553e-06/1.109, allocations: 0.5312 kB / 0.7469 GB, free: 62.8 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.172e-05/1.109, allocations: 0 / 0.7469 GB, free: 62.8 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.008561/1.118, allocations: 2.572 MB / 0.7494 GB, free: 61.41 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/1.118, allocations: 11.44 kB / 0.7494 GB, free: 61.41 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006134/1.118, allocations: 87.05 kB / 0.7495 GB, free: 61.38 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004001/1.119, allocations: 340.5 kB / 0.7498 GB, free: 61.16 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.763e-05/1.119, allocations: 31.84 kB / 0.7498 GB, free: 61.16 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.247e-05/1.119, allocations: 31.09 kB / 0.7499 GB, free: 61.16 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/1.12, allocations: 0.6007 MB / 0.7505 GB, free: 61.07 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/1.12, allocations: 0 / 0.7505 GB, free: 61.07 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.302e-05/1.12, allocations: 14.03 kB / 0.7505 GB, free: 61.07 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/1.12, allocations: 17.64 kB / 0.7505 GB, free: 61.07 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/1.121, allocations: 0.5482 MB / 0.751 GB, free: 61.07 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/1.123, allocations: 2.51 MB / 0.7535 GB, free: 59.39 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009742/1.124, allocations: 0.4957 MB / 0.754 GB, free: 59.36 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004667/1.125, allocations: 330.5 kB / 0.7543 GB, free: 59.36 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2355/1.36, allocations: 139 MB / 0.89 GB, free: 32.56 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/1.361, allocations: 34.34 kB / 0.89 GB, free: 32.52 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=78): time 3.065e-06/1.361, allocations: 4 kB / 0.89 GB, free: 32.52 MB / 0.6387 GB Notification: Performance of matching and sorting (n=82): time 0.005883/1.366, allocations: 2.33 MB / 0.8923 GB, free: 30.84 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/1.366, allocations: 55.41 kB / 0.8924 GB, free: 30.78 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002567/1.367, allocations: 261 kB / 0.8926 GB, free: 30.56 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.398e-05/1.367, allocations: 28.95 kB / 0.8926 GB, free: 30.53 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 9.706e-05/1.367, allocations: 198.8 kB / 0.8928 GB, free: 30.36 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.000139/1.367, allocations: 258.2 kB / 0.8931 GB, free: 30.14 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/1.367, allocations: 99.95 kB / 0.8932 GB, free: 30.07 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001169/1.367, allocations: 355.8 kB / 0.8935 GB, free: 29.74 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004464/1.368, allocations: 273.3 kB / 0.8938 GB, free: 29.58 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004698/1.368, allocations: 411.5 kB / 0.8942 GB, free: 29.25 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009055/1.369, allocations: 0.7011 MB / 0.8949 GB, free: 28.77 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/1.369, allocations: 0 / 0.8949 GB, free: 28.77 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001298/1.37, allocations: 0.8016 MB / 0.8956 GB, free: 28.22 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/1.37, allocations: 10.97 kB / 0.8956 GB, free: 28.21 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/1.371, allocations: 5.016 kB / 0.8956 GB, free: 28.21 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002327/1.371, allocations: 66.3 kB / 0.8957 GB, free: 28.16 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005967/1.371, allocations: 130 kB / 0.8958 GB, free: 28.04 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07037/1.442, allocations: 19.86 MB / 0.9152 GB, free: 8.652 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005171/1.442, allocations: 26.61 kB / 0.9153 GB, free: 8.633 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.387e-05/1.442, allocations: 22.05 kB / 0.9153 GB, free: 8.613 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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.0003144/1.443, allocations: 199.4 kB / 0.9155 GB, free: 8.461 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/1.443, allocations: 39.53 kB / 0.9155 GB, free: 8.422 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001794/1.445, allocations: 1.578 MB / 0.917 GB, free: 7.309 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001306/1.446, allocations: 1.174 MB / 0.9182 GB, free: 6.328 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/1.446, allocations: 3.938 kB / 0.9182 GB, free: 6.324 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/1.446, allocations: 120.2 kB / 0.9183 GB, free: 6.191 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.596e-05/1.446, allocations: 10.55 kB / 0.9183 GB, free: 6.188 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003245/1.447, allocations: 31.09 kB / 0.9183 GB, free: 6.164 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.186e-05/1.447, allocations: 46.38 kB / 0.9184 GB, free: 6.129 MB / 0.6387 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.HeliumTestModel.fixedMassFlowRate.Medium.setState_ph(volume.medium.p, fixedMassFlowRate.medium.state.h, 0) Variables: 1: $cse8.phase:DISCRETE(protected = true ) type: Integer unreplaceable 2: $cse8.s:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse8.T:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse8.p:VARIABLE(protected = true ) type: Real unreplaceable 5: fixedMassFlowRate.medium.state.h:VARIABLE(min = -6687.7 max = 1.2e7 start = 0.0 unit = "J/kg" nominal = 1e6 ) "Specific enthalpy of medium" type: Real 6: $cse8.u:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse8.h:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse8.d: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.0006166/1.447, allocations: 167.1 kB / 0.9186 GB, free: 5.984 MB / 0.6387 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel could not be translated