Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.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.IsobutaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001518/0.001518, allocations: 111.4 kB / 16.42 MB, free: 6.469 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.001261/0.001262, allocations: 189.5 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.32/1.32, 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.0467/0.0467, allocations: 9.101 MB / 279.7 MB, free: 2.938 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.001384/0.001384, allocations: 75.17 kB / 388.2 MB, free: 47.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08539/0.08679, allocations: 48.17 MB / 436.4 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel): time 0.3815/0.4684, allocations: 128.8 MB / 0.5519 GB, free: 2.555 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.09197/0.5604, allocations: 111.1 MB / 0.6604 GB, free: 1.324 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005425/0.561, allocations: 11.94 kB / 0.6604 GB, free: 1.312 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003037/0.5641, allocations: 1.358 MB / 0.6617 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003681/0.5678, allocations: 1.656 MB / 0.6633 GB, free: 14.29 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.07144/0.6392, allocations: 29.52 MB / 0.6922 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001801/0.641, allocations: 1.398 MB / 0.6935 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/0.6413, allocations: 133.7 kB / 0.6937 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01806/0.6594, allocations: 9.862 MB / 0.7033 GB, free: 5.27 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000523/0.6599, allocations: 375.2 kB / 0.7037 GB, free: 4.902 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.423e-05/0.66, allocations: 44 kB / 0.7037 GB, free: 4.859 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06158/0.7216, allocations: 35.36 MB / 0.7382 GB, free: 1.434 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002768/0.7219, allocations: 123.6 kB / 0.7384 GB, free: 1.312 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005352/0.7224, allocations: 314.7 kB / 0.7387 GB, free: 1.004 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.3019/1.024, allocations: 14.15 MB / 0.7525 GB, free: 57.88 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.902e-06/1.024, allocations: 0 / 0.7525 GB, free: 57.88 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.993e-06/1.024, allocations: 0 / 0.7525 GB, free: 57.88 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.408e-06/1.024, allocations: 1.094 kB / 0.7525 GB, free: 57.88 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.007337/1.032, allocations: 2.57 MB / 0.755 GB, free: 56.52 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/1.032, allocations: 10.59 kB / 0.755 GB, free: 56.52 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006071/1.032, allocations: 86.09 kB / 0.7551 GB, free: 56.49 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003702/1.033, allocations: 342.6 kB / 0.7554 GB, free: 56.27 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.039e-05/1.033, allocations: 31.72 kB / 0.7554 GB, free: 56.27 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.712e-05/1.033, allocations: 36.09 kB / 0.7555 GB, free: 56.27 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/1.034, allocations: 0.597 MB / 0.756 GB, free: 56.18 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/1.034, allocations: 3.688 kB / 0.756 GB, free: 56.18 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.947e-05/1.034, allocations: 17.97 kB / 0.7561 GB, free: 56.18 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.737e-05/1.034, allocations: 13.02 kB / 0.7561 GB, free: 56.18 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/1.035, allocations: 0.5494 MB / 0.7566 GB, free: 56.18 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002016/1.037, allocations: 2.465 MB / 0.759 GB, free: 54.56 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009939/1.038, allocations: 499.6 kB / 0.7595 GB, free: 54.53 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004784/1.039, allocations: 336 kB / 0.7598 GB, free: 54.52 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.238/1.277, allocations: 139 MB / 0.8955 GB, free: 25.34 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/1.277, allocations: 37.94 kB / 0.8956 GB, free: 25.3 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=77): time 3.457e-06/1.277, allocations: 0 / 0.8956 GB, free: 25.3 MB / 0.6387 GB Notification: Performance of matching and sorting (n=81): time 0.005742/1.283, allocations: 2.349 MB / 0.8979 GB, free: 23.49 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.924e-05/1.283, allocations: 62.25 kB / 0.8979 GB, free: 23.42 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002527/1.283, allocations: 256.6 kB / 0.8982 GB, free: 23.21 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.512e-05/1.283, allocations: 36.89 kB / 0.8982 GB, free: 23.17 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 9.668e-05/1.283, allocations: 186.2 kB / 0.8984 GB, free: 23.01 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.000139/1.283, allocations: 261.5 kB / 0.8986 GB, free: 22.79 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/1.283, allocations: 100.7 kB / 0.8987 GB, free: 22.72 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001118/1.284, allocations: 352.4 kB / 0.8991 GB, free: 22.39 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004379/1.284, allocations: 282.6 kB / 0.8993 GB, free: 22.22 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004718/1.285, allocations: 383.6 kB / 0.8997 GB, free: 21.93 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009258/1.285, allocations: 0.6968 MB / 0.9004 GB, free: 21.46 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/1.285, allocations: 2.812 kB / 0.9004 GB, free: 21.46 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001296/1.287, allocations: 0.8028 MB / 0.9012 GB, free: 20.91 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/1.287, allocations: 4 kB / 0.9012 GB, free: 20.9 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/1.287, allocations: 4 kB / 0.9012 GB, free: 20.9 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000235/1.287, allocations: 62.73 kB / 0.9012 GB, free: 20.84 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006896/1.288, allocations: 141.7 kB / 0.9014 GB, free: 20.72 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06962/1.357, allocations: 19.67 MB / 0.9206 GB, free: 17.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004494/1.358, allocations: 26.11 kB / 0.9206 GB, free: 17.5 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.613e-05/1.358, allocations: 24.28 kB / 0.9206 GB, free: 17.48 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.0003013/1.358, allocations: 191.2 kB / 0.9208 GB, free: 17.33 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/1.358, allocations: 51.38 kB / 0.9209 GB, free: 17.28 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001925/1.36, allocations: 1.708 MB / 0.9225 GB, free: 16.09 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001439/1.362, allocations: 1.287 MB / 0.9238 GB, free: 15.04 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/1.362, allocations: 0 / 0.9238 GB, free: 15.04 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/1.362, allocations: 132.1 kB / 0.9239 GB, free: 14.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.069e-05/1.362, allocations: 7.688 kB / 0.9239 GB, free: 14.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002917/1.362, allocations: 27.09 kB / 0.924 GB, free: 14.87 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.546e-05/1.362, allocations: 42.06 kB / 0.924 GB, free: 14.84 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.IsobutaneTestModel.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.0006131/1.363, allocations: 174.3 kB / 0.9242 GB, free: 14.7 MB / 0.6544 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel could not be translated