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.001718/0.001718, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 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.002112/0.002112, allocations: 185 kB / 24.46 MB, free: 3.863 MB / 14.72 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 1.426/1.426, allocations: 225.7 MB / 253.3 MB, free: 12.87 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001583/0.001583, allocations: 43.92 kB / 371.6 MB, free: 9.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2558, allocations: 52.18 MB / 423.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.0116/0.2674, allocations: 8.726 MB / 432.5 MB, free: 5.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005448/0.2728, allocations: 3.182 MB / 435.7 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007188/0.2735, allocations: 31.81 kB / 435.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002491/0.276, allocations: 1.144 MB / 436.9 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001218/0.2772, allocations: 0.6491 MB / 437.5 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001017/0.2783, allocations: 0.4937 MB / 438 MB, free: 240 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007884/0.2861, allocations: 7.337 MB / 445.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003221/0.2894, allocations: 2.127 MB / 447.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004108/0.2935, allocations: 2.972 MB / 450.5 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00519/0.2987, allocations: 3.31 MB / 453.8 MB, free: 376 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001671/0.3003, allocations: 0.6758 MB / 454.5 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001767/0.3021, allocations: 0.7187 MB / 455.2 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005222/0.3073, allocations: 5.822 MB / 461 MB, free: 9.137 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008432/0.3158, allocations: 5.287 MB / 466.3 MB, free: 3.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0275/0.3433, allocations: 25.12 MB / 491.4 MB, free: 10.62 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.3433, allocations: 0 / 491.4 MB, free: 10.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3433, allocations: 0 / 491.4 MB, free: 10.62 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006719/0.3439, allocations: 0 / 491.4 MB, free: 10.62 MB / 398.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.0493/0.3932, allocations: 19.29 MB / 0.4987 GB, free: 7.184 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.3933, allocations: 8.031 kB / 0.4987 GB, free: 7.176 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00498/0.3982, allocations: 1.631 MB / 0.5003 GB, free: 5.535 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04075/0.439, allocations: 18.07 MB / 0.518 GB, free: 3.387 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005348/0.4395, allocations: 361.9 kB / 0.5183 GB, free: 3.02 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001054/0.4406, allocations: 327.9 kB / 0.5186 GB, free: 2.699 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01383/0.4544, allocations: 8.017 MB / 0.5265 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.656e-05/0.4545, allocations: 7.938 kB / 0.5265 GB, free: 10.08 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004408/0.4549, allocations: 144 kB / 0.5266 GB, free: 9.941 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.652e-05/0.455, allocations: 80 kB / 0.5267 GB, free: 9.863 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009723/0.4647, allocations: 5.115 MB / 0.5317 GB, free: 4.738 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4602/0.9249, allocations: 30.06 MB / 0.561 GB, free: 74.12 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0068/0.9317, allocations: 4.165 MB / 0.5651 GB, free: 70.04 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003672/0.9354, allocations: 2.473 MB / 0.5675 GB, free: 67.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001146/0.9355, allocations: 17.31 kB / 0.5675 GB, free: 67.56 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.757e-05/0.9355, allocations: 63.73 kB / 0.5676 GB, free: 67.49 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 3.918e-06/0.9355, allocations: 4 kB / 0.5676 GB, free: 67.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01611/0.9517, allocations: 7.486 MB / 0.5749 GB, free: 60.62 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001914/0.9519, allocations: 0.9824 MB / 0.5759 GB, free: 59.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06568/1.018, allocations: 35.33 MB / 0.6104 GB, free: 24.17 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004848/1.018, allocations: 61.7 kB / 0.6104 GB, free: 24.11 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01393/1.032, allocations: 7.528 MB / 0.6178 GB, free: 16.77 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000802/1.033, allocations: 0.569 MB / 0.6183 GB, free: 16.27 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001244/1.034, allocations: 427.4 kB / 0.6188 GB, free: 15.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.905e-05/1.034, allocations: 305.1 kB / 0.619 GB, free: 15.54 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003177/1.037, allocations: 1.967 MB / 0.621 GB, free: 13.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00365/1.041, allocations: 3.757 MB / 0.6246 GB, free: 9.273 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005975/1.047, allocations: 4.212 MB / 0.6287 GB, free: 4.855 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.521e-05/1.047, allocations: 7.938 kB / 0.6288 GB, free: 4.848 MB / 446.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01356/1.06, allocations: 6.055 MB / 0.6347 GB, free: 14.77 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.697e-05/1.06, allocations: 12.12 kB / 0.6347 GB, free: 14.76 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.07e-05/1.06, allocations: 20 kB / 0.6347 GB, free: 14.74 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001154/1.062, allocations: 364.3 kB / 0.635 GB, free: 14.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002603/1.064, allocations: 0.6942 MB / 0.6357 GB, free: 13.69 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006383/1.071, allocations: 4.395 MB / 0.64 GB, free: 9.215 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006882/1.077, allocations: 0.6167 MB / 0.6406 GB, free: 8.641 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004441/1.078, allocations: 76 kB / 0.6407 GB, free: 8.566 MB / 462.1 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.01296/1.091, allocations: 8.128 MB / 0.6486 GB, free: 448 kB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005119/1.096, allocations: 1.432 MB / 0.65 GB, free: 14.99 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01545/1.111, allocations: 5.98 MB / 0.6559 GB, free: 8.996 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.875e-05/1.111, allocations: 16 kB / 0.6559 GB, free: 8.98 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/1.111, allocations: 4 kB / 0.6559 GB, free: 8.977 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.178e-05/1.112, allocations: 7.969 kB / 0.6559 GB, free: 8.969 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04449/1.156, allocations: 16.24 MB / 0.6718 GB, free: 8.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/1.156, allocations: 0 / 0.6718 GB, free: 8.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002162/1.158, allocations: 0.5694 MB / 0.6723 GB, free: 8.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008263/1.159, allocations: 286.3 kB / 0.6726 GB, free: 7.879 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002/1.159, allocations: 43.98 kB / 0.6726 GB, free: 7.836 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005221/1.164, allocations: 3.824 MB / 0.6764 GB, free: 3.914 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/1.164, allocations: 4 kB / 0.6764 GB, free: 3.91 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01713/1.182, allocations: 7.657 MB / 0.6838 GB, free: 12.23 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01611/1.198, allocations: 4.352 MB / 0.6881 GB, free: 7.883 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004758/1.202, allocations: 59.92 kB / 0.6881 GB, free: 7.824 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007436/1.21, allocations: 0.6513 MB / 0.6888 GB, free: 7.172 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001219/1.211, allocations: 443 kB / 0.6892 GB, free: 6.742 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004163/1.211, allocations: 43.98 kB / 0.6892 GB, free: 6.699 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.0638/1.275, allocations: 25.21 MB / 0.7139 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.11e-07/1.275, allocations: 0 / 0.7139 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0103/1.286, allocations: 1.883 MB / 0.7157 GB, free: 11.75 MB / 0.5294 GB 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.002029/1.288, allocations: 463.5 kB / 0.7161 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009829/1.297, allocations: 4.402 MB / 0.7204 GB, free: 7.039 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-05/1.297, allocations: 9.156 kB / 0.7205 GB, free: 7.031 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004623/1.302, allocations: 2.211 MB / 0.7226 GB, free: 4.805 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0169/1.319, allocations: 1.842 MB / 0.7244 GB, free: 2.98 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2827/1.602, allocations: 38.75 MB / 0.7622 GB, free: 178.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01736/1.619, allocations: 9.749 MB / 0.7718 GB, free: 175.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00471/1.624, allocations: 0.6624 MB / 0.7724 GB, free: 175.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.903e-06/1.624, allocations: 1.312 kB / 0.7724 GB, free: 175.7 MB / 0.545 GB Notification: Performance of Templates: time 0.6073/2.231, allocations: 307 MB / 1.072 GB, free: 66.79 MB / 0.5607 GB " [Timeout remaining time 658] 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: 19.88617698615417] 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'] 2.2402607249096036 2.252162163 1.906333921 Calling exit ...