Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.Electrical.Batteries.Examples.CCCV_Stack,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|energy.y|stack.cell.1, 1..cell.limIntegrator.y|stack.cell.1, 1..limIntegrator.y|stack.cell.1, 2..cell.limIntegrator.y|stack.cell.1, 2..limIntegrator.y|stack.cell.2, 1..cell.limIntegrator.y|stack.cell.2, 1..limIntegrator.y|stack.cell.2, 2..cell.limIntegrator.y|stack.cell.2, 2..limIntegrator.y|stack.cell.3, 1..cell.limIntegrator.y|stack.cell.3, 1..limIntegrator.y|stack.cell.3, 2..cell.limIntegrator.y|stack.cell.3, 2..limIntegrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Stack,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|energy.y|stack.cell.1, 1..cell.limIntegrator.y|stack.cell.1, 1..limIntegrator.y|stack.cell.1, 2..cell.limIntegrator.y|stack.cell.1, 2..limIntegrator.y|stack.cell.2, 1..cell.limIntegrator.y|stack.cell.2, 1..limIntegrator.y|stack.cell.2, 2..cell.limIntegrator.y|stack.cell.2, 2..limIntegrator.y|stack.cell.3, 1..cell.limIntegrator.y|stack.cell.3, 1..limIntegrator.y|stack.cell.3, 2..cell.limIntegrator.y|stack.cell.3, 2..limIntegrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 114.6 kB / 16.63 MB, free: 6.812 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.001128/0.001128, allocations: 185.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009625/0.0009625, allocations: 46.89 kB / 300.1 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09852/0.0995, allocations: 49.44 MB / 349.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01075/0.1103, allocations: 9.962 MB / 359.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004899/0.1153, allocations: 3.389 MB / 362.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007174/0.116, allocations: 19.94 kB / 362.9 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002351/0.1184, allocations: 1.129 MB / 364.1 MB, free: 6.203 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001252/0.1197, allocations: 0.5873 MB / 364.7 MB, free: 5.613 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.1208, allocations: 434.6 kB / 365.1 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1888/0.3096, allocations: 7.334 MB / 372.4 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005006/0.3146, allocations: 4.464 MB / 376.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006058/0.3207, allocations: 3.573 MB / 380.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006134/0.3269, allocations: 2.929 MB / 383.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004169/0.3311, allocations: 0.6712 MB / 384.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004983/0.3361, allocations: 0.8391 MB / 384.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005905/0.342, allocations: 5.462 MB / 390.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008242/0.3503, allocations: 6.984 MB / 397.3 MB, free: 4.637 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01907/0.3694, allocations: 23.99 MB / 421.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.3695, allocations: 0 / 421.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3695, allocations: 0 / 421.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0006297/0.3701, allocations: 4 kB / 421.3 MB, free: 13.41 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 837 * Number of variables: 837 Notification: Performance of Generate backend data structure: time 0.05169/0.4218, allocations: 18.16 MB / 439.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.515e-05/0.4219, allocations: 14.66 kB / 439.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00706/0.429, allocations: 1.477 MB / 441 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0454/0.4744, allocations: 17.5 MB / 458.5 MB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001685/0.4762, allocations: 0.7534 MB / 459.2 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001768/0.478, allocations: 348 kB / 459.6 MB, free: 7.375 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01325/0.4912, allocations: 6.486 MB / 466.1 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.687e-05/0.4913, allocations: 7.656 kB / 466.1 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004552/0.4918, allocations: 148 kB / 466.2 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-05/0.4919, allocations: 83.94 kB / 466.3 MB, free: 468 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009712/0.5016, allocations: 5.117 MB / 471.4 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07987/0.5815, allocations: 34.56 MB / 0.4941 GB, free: 8.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008724/0.5903, allocations: 4.308 MB / 0.4983 GB, free: 4.508 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004806/0.5951, allocations: 2.558 MB / 0.5008 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001688/0.5953, allocations: 20.98 kB / 0.5008 GB, free: 1.934 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.058e-05/0.5954, allocations: 75.81 kB / 0.5009 GB, free: 1.852 MB / 414.1 MB Notification: Performance of pre-optimization done (n=156): time 3.497e-06/0.5954, allocations: 0 / 0.5009 GB, free: 1.852 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.02015/0.6156, allocations: 7.46 MB / 0.5082 GB, free: 10.35 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004949/0.6161, allocations: 0.9785 MB / 0.5091 GB, free: 9.141 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4224/1.039, allocations: 36.88 MB / 0.5452 GB, free: 105.1 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007542/1.039, allocations: 90.36 kB / 0.5452 GB, free: 105 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.007886/1.047, allocations: 4.557 MB / 0.5497 GB, free: 102.5 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001453/1.049, allocations: 0.9958 MB / 0.5507 GB, free: 101.7 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0295/1.078, allocations: 8.518 MB / 0.559 GB, free: 95.75 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.208e-05/1.078, allocations: 306.6 kB / 0.5593 GB, free: 95.45 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0297/1.108, allocations: 20.04 MB / 0.5789 GB, free: 75.4 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.042/1.15, allocations: 24.66 MB / 0.6029 GB, free: 49.55 MB / 430.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendEquation.mo:2511:7-2511:76:writable] Error: Internal error function solveEquation failed Notification: Performance of analyzeInitialSystem (initialization): time 16.14/17.29, allocations: 8.741 GB / 9.344 GB, free: 118.6 MB / 0.5607 GB Warning: It was not possible to solve the under-determined initial system (2202 equations and 2274 variables) Error: No system for the symbolic initialization was generated