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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008144/0.0008144, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004161/0.004161, allocations: 150.2 kB / 24.68 MB, free: 9.422 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8184/0.8184, allocations: 173.4 MB / 201.2 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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=12000,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=12000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 319.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.354e-05/2.512e-05, allocations: 2.281 kB / 319.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.006882/0.006907, allocations: 8.716 MB / 328.4 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002943/0.00985, allocations: 3.205 MB / 331.6 MB, free: 9.883 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003153/0.01017, allocations: 35.75 kB / 331.6 MB, free: 9.848 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001424/0.01159, allocations: 1.143 MB / 332.8 MB, free: 8.699 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008513/0.01244, allocations: 0.6681 MB / 333.4 MB, free: 8.027 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006109/0.01305, allocations: 496.8 kB / 333.9 MB, free: 7.547 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004397/0.01745, allocations: 7.507 MB / 341.4 MB, free: 12 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001812/0.01926, allocations: 2.147 MB / 343.6 MB, free: 13.78 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003436/0.0227, allocations: 4.18 MB / 347.8 MB, free: 9.594 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002172/0.02487, allocations: 2.979 MB / 350.7 MB, free: 6.609 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000484/0.02535, allocations: 0.6758 MB / 351.4 MB, free: 5.934 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000616/0.02597, allocations: 0.7226 MB / 352.1 MB, free: 5.211 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002583/0.02855, allocations: 5.896 MB / 358 MB, free: 15.3 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003064/0.03162, allocations: 4.208 MB / 362.2 MB, free: 11.08 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01348/0.04509, allocations: 24.39 MB / 386.6 MB, free: 2.629 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.0451, allocations: 4 kB / 386.6 MB, free: 2.625 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.0451, allocations: 0 / 386.6 MB, free: 2.625 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004101/0.04551, allocations: 0 / 386.6 MB, free: 2.625 MB / 346.7 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.02869/0.0742, allocations: 19.12 MB / 405.8 MB, free: 15.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.07424, allocations: 8.922 kB / 405.8 MB, free: 15.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001941/0.07618, allocations: 1.635 MB / 407.4 MB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02102/0.0972, allocations: 18.08 MB / 425.5 MB, free: 11.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002943/0.0975, allocations: 357.9 kB / 425.8 MB, free: 11.19 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000403/0.0979, allocations: 324 kB / 426.1 MB, free: 10.88 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007366/0.1053, allocations: 8.013 MB / 434.2 MB, free: 2.27 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.478e-05/0.1053, allocations: 4 kB / 434.2 MB, free: 2.266 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002458/0.1056, allocations: 144 kB / 434.3 MB, free: 2.125 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.745e-05/0.1056, allocations: 83.94 kB / 434.4 MB, free: 2.043 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005233/0.1108, allocations: 5.123 MB / 439.5 MB, free: 12.91 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3018/0.4126, allocations: 30.04 MB / 469.5 MB, free: 89.14 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003897/0.4165, allocations: 4.169 MB / 473.7 MB, free: 87.25 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00208/0.4186, allocations: 2.48 MB / 476.2 MB, free: 85.33 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 6.84e-05/0.4186, allocations: 17.31 kB / 476.2 MB, free: 85.31 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.4187, allocations: 64.62 kB / 476.3 MB, free: 85.24 MB / 410.8 MB Notification: Performance of pre-optimization done (n=156): time 3.036e-06/0.4187, allocations: 0 / 476.3 MB, free: 85.24 MB / 410.8 MB Notification: Performance of matching and sorting (n=156): time 0.008694/0.4274, allocations: 7.468 MB / 483.7 MB, free: 78.59 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001324/0.4275, allocations: 0.9898 MB / 484.7 MB, free: 77.37 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02944/0.4569, allocations: 35.33 MB / 0.5079 GB, free: 42.16 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004145/0.4573, allocations: 61.7 kB / 0.5079 GB, free: 42.1 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004569/0.4619, allocations: 7.522 MB / 0.5153 GB, free: 34.9 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004882/0.4624, allocations: 0.5575 MB / 0.5158 GB, free: 34.42 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004184/0.4628, allocations: 423.4 kB / 0.5162 GB, free: 34 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 2.683e-05/0.4628, allocations: 305.1 kB / 0.5165 GB, free: 33.7 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001899/0.4647, allocations: 1.97 MB / 0.5184 GB, free: 31.73 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002044/0.4668, allocations: 3.765 MB / 0.5221 GB, free: 27.42 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003292/0.4701, allocations: 4.21 MB / 0.5262 GB, free: 23 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.4701, allocations: 4 kB / 0.5262 GB, free: 23 MB / 410.8 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.008804/0.4789, allocations: 6.056 MB / 0.5322 GB, free: 16.92 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.4789, allocations: 12 kB / 0.5322 GB, free: 16.91 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.4789, allocations: 12 kB / 0.5322 GB, free: 16.9 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005016/0.4794, allocations: 368 kB / 0.5325 GB, free: 16.54 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.4805, allocations: 0.6863 MB / 0.5332 GB, free: 15.85 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002651/0.4831, allocations: 4.404 MB / 0.5375 GB, free: 11.37 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003252/0.4864, allocations: 0.6192 MB / 0.5381 GB, free: 10.8 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.4865, allocations: 76 kB / 0.5382 GB, free: 10.72 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 14 (cccvCharger.CV,energy.local_reset,stack.cell[3,2].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,1].cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (222): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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): 1 system {(3,24)} Notification: Performance of prepare postOptimizeDAE: time 0.007027/0.4935, allocations: 8.132 MB / 0.5461 GB, free: 2.59 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001646/0.4951, allocations: 1.436 MB / 0.5475 GB, free: 1.145 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00672/0.5019, allocations: 5.965 MB / 0.5533 GB, free: 11.16 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.5019, allocations: 19.98 kB / 0.5534 GB, free: 11.14 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.5019, allocations: 5.641 kB / 0.5534 GB, free: 11.14 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.5019, allocations: 3.984 kB / 0.5534 GB, free: 11.13 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01951/0.5214, allocations: 16.24 MB / 0.5692 GB, free: 10.89 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.5214, allocations: 0.875 kB / 0.5692 GB, free: 10.89 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.5224, allocations: 0.5694 MB / 0.5698 GB, free: 10.32 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004393/0.5228, allocations: 291.9 kB / 0.5701 GB, free: 10.04 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.855e-05/0.5229, allocations: 40 kB / 0.5701 GB, free: 9.996 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003082/0.526, allocations: 3.845 MB / 0.5739 GB, free: 6.062 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.526, allocations: 4 kB / 0.5739 GB, free: 6.059 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009321/0.5353, allocations: 7.651 MB / 0.5813 GB, free: 14.38 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006106/0.5414, allocations: 4.351 MB / 0.5856 GB, free: 10.04 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001776/0.5432, allocations: 46.86 kB / 0.5856 GB, free: 9.992 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002235/0.5455, allocations: 0.6591 MB / 0.5863 GB, free: 9.332 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005323/0.546, allocations: 448.5 kB / 0.5867 GB, free: 8.895 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.066e-05/0.5461, allocations: 40 kB / 0.5867 GB, free: 8.855 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.03733/0.5834, allocations: 25.21 MB / 0.6114 GB, free: 15.71 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5834, allocations: 0 / 0.6114 GB, free: 15.71 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.009772/0.5932, allocations: 1.887 MB / 0.6132 GB, free: 13.9 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (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,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (136): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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): 1 system {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000948/0.5941, allocations: 443.4 kB / 0.6136 GB, free: 13.65 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.005646/0.5998, allocations: 4.411 MB / 0.6179 GB, free: 9.223 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/0.5998, allocations: 9.281 kB / 0.6179 GB, free: 9.215 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002318/0.6021, allocations: 2.206 MB / 0.6201 GB, free: 6.996 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008954/0.611, allocations: 1.851 MB / 0.6219 GB, free: 5.168 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1914/0.8025, allocations: 38.64 MB / 0.6596 GB, free: 154.6 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005912/0.8084, allocations: 9.746 MB / 0.6692 GB, free: 144.8 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003286/0.8117, allocations: 0.6645 MB / 0.6698 GB, free: 144.2 MB / 490.8 MB Notification: Performance of SimCode: time 1.032e-06/0.8117, allocations: 0 / 0.6698 GB, free: 144.2 MB / 490.8 MB Notification: Performance of Templates: time 0.3934/1.205, allocations: 307.4 MB / 0.97 GB, free: 8.703 MB / 0.4949 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 12.295185416005552] Failed to read output from testmodel.py, exit status != 0: ['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'] 1.2143159424886107 1.222313265 1.175605815 Calling exit ...