Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001712/0.001712, allocations: 111 kB / 21.18 MB, free: 0.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002119/0.002119, allocations: 209 kB / 24.48 MB, free: 3.969 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 2.088/2.088, allocations: 230.6 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00236/0.00236, allocations: 51.91 kB / 379 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3615, allocations: 53.37 MB / 432.3 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.02008/0.3815, allocations: 8.769 MB / 441.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009379/0.3909, allocations: 3.346 MB / 444.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001266/0.3922, allocations: 35.75 kB / 444.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004769/0.397, allocations: 1.144 MB / 445.6 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002984/0.3999, allocations: 0.6919 MB / 446.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002062/0.402, allocations: 494.5 kB / 446.8 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02786/0.4299, allocations: 7.321 MB / 454.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0104/0.4403, allocations: 2.1 MB / 456.2 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006664/0.4469, allocations: 2.956 MB / 459.2 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005236/0.4522, allocations: 2.981 MB / 462.1 MB, free: 8.914 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002111/0.4543, allocations: 0.6797 MB / 462.8 MB, free: 8.234 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00267/0.4569, allocations: 0.7187 MB / 463.5 MB, free: 7.516 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008339/0.4653, allocations: 5.829 MB / 469.4 MB, free: 1.672 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0237/0.489, allocations: 5.279 MB / 474.7 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04482/0.5338, allocations: 25.17 MB / 499.8 MB, free: 3.113 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.5338, allocations: 0 / 499.8 MB, free: 3.113 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.5338, allocations: 0 / 499.8 MB, free: 3.113 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000693/0.5345, allocations: 0 / 499.8 MB, free: 3.113 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.07736/0.6119, allocations: 19.33 MB / 0.507 GB, free: 15.63 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.6119, allocations: 8.031 kB / 0.507 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008211/0.6201, allocations: 1.639 MB / 0.5086 GB, free: 13.98 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06001/0.6801, allocations: 18.11 MB / 0.5263 GB, free: 11.79 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006753/0.6808, allocations: 361.9 kB / 0.5266 GB, free: 11.42 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001369/0.6822, allocations: 328 kB / 0.5269 GB, free: 11.1 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02565/0.7078, allocations: 8.009 MB / 0.5348 GB, free: 2.5 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001436/0.708, allocations: 0 / 0.5348 GB, free: 2.5 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00141/0.7094, allocations: 144 kB / 0.5349 GB, free: 2.359 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001214/0.7095, allocations: 80 kB / 0.535 GB, free: 2.281 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6108/1.32, allocations: 5.131 MB / 0.54 GB, free: 80.34 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1413/1.462, allocations: 30.08 MB / 0.5694 GB, free: 60.47 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01802/1.48, allocations: 4.16 MB / 0.5734 GB, free: 56.39 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005231/1.485, allocations: 2.465 MB / 0.5758 GB, free: 53.94 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001687/1.485, allocations: 17.31 kB / 0.5758 GB, free: 53.92 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003286/1.488, allocations: 75.52 kB / 0.5759 GB, free: 53.84 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 1.723e-05/1.488, allocations: 0 / 0.5759 GB, free: 53.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.02708/1.515, allocations: 7.475 MB / 0.5832 GB, free: 46.85 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000231/1.516, allocations: 0.9824 MB / 0.5842 GB, free: 45.63 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.08426/1.6, allocations: 35.45 MB / 0.6188 GB, free: 10.28 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004888/1.6, allocations: 61.7 kB / 0.6188 GB, free: 10.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.02605/1.626, allocations: 7.544 MB / 0.6262 GB, free: 2.859 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007711/1.627, allocations: 0.573 MB / 0.6268 GB, free: 2.363 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00129/1.628, allocations: 435.2 kB / 0.6272 GB, free: 1.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.654e-05/1.629, allocations: 312.5 kB / 0.6275 GB, free: 1.625 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00428/1.633, allocations: 1.967 MB / 0.6294 GB, free: 15.65 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009941/1.643, allocations: 3.757 MB / 0.6331 GB, free: 11.35 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/1.654, allocations: 4.215 MB / 0.6372 GB, free: 6.93 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-05/1.654, allocations: 4 kB / 0.6372 GB, free: 6.926 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.04226/1.696, allocations: 6.064 MB / 0.6431 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.373e-05/1.696, allocations: 12 kB / 0.6431 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.554e-05/1.696, allocations: 16 kB / 0.6431 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001327/1.698, allocations: 367.4 kB / 0.6435 GB, free: 464 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003427/1.701, allocations: 0.698 MB / 0.6442 GB, free: 15.75 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007568/1.709, allocations: 4.383 MB / 0.6485 GB, free: 11.29 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008488/1.717, allocations: 0.6233 MB / 0.6491 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006233/1.718, allocations: 76 kB / 0.6491 GB, free: 10.64 MB / 478.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.01686/1.734, allocations: 8.15 MB / 0.6571 GB, free: 2.484 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006697/1.741, allocations: 1.432 MB / 0.6585 GB, free: 1.043 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0184/1.76, allocations: 5.984 MB / 0.6643 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.146e-05/1.76, allocations: 16 kB / 0.6644 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/1.76, allocations: 0 / 0.6644 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.49e-05/1.76, allocations: 7.969 kB / 0.6644 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05667/1.816, allocations: 16.29 MB / 0.6803 GB, free: 10.69 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/1.816, allocations: 0 / 0.6803 GB, free: 10.69 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002993/1.819, allocations: 0.5655 MB / 0.6808 GB, free: 10.12 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001198/1.82, allocations: 292.6 kB / 0.6811 GB, free: 9.836 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000222/1.821, allocations: 43.98 kB / 0.6811 GB, free: 9.793 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006486/1.827, allocations: 3.83 MB / 0.6849 GB, free: 5.871 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/1.827, allocations: 96 / 0.6849 GB, free: 5.871 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03055/1.858, allocations: 7.671 MB / 0.6924 GB, free: 14.16 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.03054/1.888, allocations: 4.355 MB / 0.6966 GB, free: 9.816 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01515/1.903, allocations: 48 kB / 0.6967 GB, free: 9.77 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01691/1.92, allocations: 0.6552 MB / 0.6973 GB, free: 9.113 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001421/1.922, allocations: 444.5 kB / 0.6977 GB, free: 8.68 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002331/1.922, allocations: 43.98 kB / 0.6978 GB, free: 8.637 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.08878/2.011, allocations: 25.29 MB / 0.7225 GB, free: 15.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.91e-07/2.011, allocations: 0.6562 kB / 0.7225 GB, free: 15.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01424/2.025, allocations: 1.883 MB / 0.7243 GB, free: 13.6 MB / 0.545 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.002233/2.027, allocations: 454.3 kB / 0.7248 GB, free: 13.32 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01231/2.04, allocations: 4.405 MB / 0.7291 GB, free: 8.906 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.762e-05/2.04, allocations: 5.156 kB / 0.7291 GB, free: 8.902 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006199/2.046, allocations: 2.21 MB / 0.7312 GB, free: 6.676 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0217/2.067, allocations: 1.839 MB / 0.733 GB, free: 4.855 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4112/2.479, allocations: 37.61 MB / 0.7697 GB, free: 187.4 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02713/2.506, allocations: 9.809 MB / 0.7793 GB, free: 184.9 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.02456/2.53, allocations: 7.721 MB / 0.7869 GB, free: 180.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007301/2.538, allocations: 0.644 MB / 0.7875 GB, free: 180.1 MB / 0.5607 GB Notification: Performance of SimCode: time 1.553e-06/2.538, allocations: 0 / 0.7875 GB, free: 180.1 MB / 0.5607 GB Notification: Performance of Templates: time 0.334/2.872, allocations: 170.2 MB / 0.9537 GB, free: 10.4 MB / 0.5607 GB " [Timeout remaining time 657] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 14.605524500002502] 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.8867713260115124 3.133868323 2.595367544 Calling exit ...