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.001616/0.001616, allocations: 123.5 kB / 18.46 MB, free: 4.613 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.001786/0.001786, allocations: 188.3 kB / 21.39 MB, free: 1.688 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.444/1.444, allocations: 225.6 MB / 249.8 MB, free: 3.602 MB / 190.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.001505/0.001505, allocations: 55.91 kB / 366.8 MB, free: 360 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09555/0.09705, allocations: 52.14 MB / 418.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01203/0.1091, allocations: 10.1 MB / 429 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005389/0.1145, allocations: 3.474 MB / 432.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007158/0.1152, allocations: 23.94 kB / 432.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002974/0.1182, allocations: 1.179 MB / 433.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001474/0.1196, allocations: 0.653 MB / 434.4 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001117/0.1207, allocations: 492.3 kB / 434.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008096/0.1288, allocations: 7.329 MB / 442.2 MB, free: 4.801 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004391/0.1332, allocations: 3.298 MB / 445.5 MB, free: 1.418 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2007/0.3339, allocations: 2.851 MB / 448.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004192/0.3381, allocations: 2.979 MB / 451.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002017/0.3402, allocations: 0.6767 MB / 452 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002576/0.3427, allocations: 0.7238 MB / 452.7 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006053/0.3488, allocations: 5.824 MB / 458.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01498/0.3638, allocations: 7.183 MB / 465.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03019/0.394, allocations: 24.97 MB / 490.7 MB, free: 13.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.394, allocations: 0 / 490.7 MB, free: 13.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.394, allocations: 0 / 490.7 MB, free: 13.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007978/0.3948, allocations: 3.625 kB / 490.7 MB, free: 13.39 MB / 382.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.06494/0.4597, allocations: 19.19 MB / 0.4979 GB, free: 11.06 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.4598, allocations: 12.03 kB / 0.4979 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007631/0.4674, allocations: 1.627 MB / 0.4995 GB, free: 9.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04906/0.5164, allocations: 17.88 MB / 0.517 GB, free: 7.898 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005989/0.517, allocations: 332.2 kB / 0.5173 GB, free: 7.566 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001383/0.5184, allocations: 329.3 kB / 0.5176 GB, free: 7.246 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01742/0.5358, allocations: 6.498 MB / 0.524 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00013/0.536, allocations: 7.469 kB / 0.524 GB, free: 0.543 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001257/0.5372, allocations: 144 kB / 0.5241 GB, free: 412 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.545e-05/0.5373, allocations: 80 kB / 0.5242 GB, free: 332 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01266/0.55, allocations: 5.127 MB / 0.5292 GB, free: 11.21 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0846/0.6346, allocations: 33.44 MB / 0.5618 GB, free: 9.766 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008918/0.6435, allocations: 4.184 MB / 0.5659 GB, free: 5.672 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005023/0.6485, allocations: 2.476 MB / 0.5684 GB, free: 3.203 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001467/0.6487, allocations: 17.31 kB / 0.5684 GB, free: 3.188 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.287e-05/0.6487, allocations: 69.36 kB / 0.5684 GB, free: 3.113 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.436e-06/0.6487, allocations: 4 kB / 0.5684 GB, free: 3.109 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.02142/0.6702, allocations: 7.586 MB / 0.5758 GB, free: 11.49 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005469/0.6707, allocations: 0.9863 MB / 0.5768 GB, free: 10.27 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.09528/0.766, allocations: 35.77 MB / 0.6117 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0006378/0.7666, allocations: 65.7 kB / 0.6118 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.01959/0.7862, allocations: 7.52 MB / 0.6191 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001234/0.7874, allocations: 0.5715 MB / 0.6197 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001015/0.7885, allocations: 431.4 kB / 0.6201 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.7886, allocations: 301.1 kB / 0.6204 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003993/0.7926, allocations: 1.974 MB / 0.6223 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004897/0.7975, allocations: 2.856 MB / 0.6251 GB, free: 8.652 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00811/0.8056, allocations: 4.206 MB / 0.6292 GB, free: 4.297 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.551e-05/0.8056, allocations: 4 kB / 0.6292 GB, free: 4.293 MB / 0.5137 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.2282/1.034, allocations: 6.093 MB / 0.6352 GB, free: 151.8 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.853e-05/1.034, allocations: 12.72 kB / 0.6352 GB, free: 151.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.946e-05/1.034, allocations: 17.61 kB / 0.6352 GB, free: 151.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/1.035, allocations: 362.5 kB / 0.6356 GB, free: 151.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002556/1.038, allocations: 0.6936 MB / 0.6362 GB, free: 151.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00573/1.043, allocations: 4.606 MB / 0.6407 GB, free: 150.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008564/1.052, allocations: 0.669 MB / 0.6414 GB, free: 150.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005858/1.052, allocations: 76.47 kB / 0.6415 GB, free: 150.3 MB / 0.5137 GB 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.01567/1.068, allocations: 8.121 MB / 0.6494 GB, free: 150.1 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006577/1.075, allocations: 1.472 MB / 0.6508 GB, free: 150.1 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01446/1.089, allocations: 6.017 MB / 0.6567 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/1.089, allocations: 13.34 kB / 0.6567 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/1.089, allocations: 3.281 kB / 0.6567 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.621e-05/1.089, allocations: 7.875 kB / 0.6567 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04725/1.136, allocations: 18.54 MB / 0.6748 GB, free: 141.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/1.136, allocations: 0 / 0.6748 GB, free: 141.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001879/1.138, allocations: 0.5645 MB / 0.6754 GB, free: 140.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008316/1.139, allocations: 292.6 kB / 0.6757 GB, free: 140.3 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001773/1.139, allocations: 40.86 kB / 0.6757 GB, free: 140.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003786/1.143, allocations: 4.039 MB / 0.6796 GB, free: 136.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/1.143, allocations: 5.25 kB / 0.6796 GB, free: 136.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01613/1.159, allocations: 7.698 MB / 0.6872 GB, free: 128.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01163/1.171, allocations: 4.27 MB / 0.6913 GB, free: 124.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006164/1.177, allocations: 47.98 kB / 0.6914 GB, free: 124.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008211/1.185, allocations: 0.6513 MB / 0.692 GB, free: 123.5 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001112/1.186, allocations: 436.7 kB / 0.6924 GB, free: 123.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001717/1.187, allocations: 44 kB / 0.6925 GB, free: 123.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.05465/1.241, allocations: 25.59 MB / 0.7175 GB, free: 97.55 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.11e-07/1.241, allocations: 4 kB / 0.7175 GB, free: 97.54 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01259/1.254, allocations: 1.844 MB / 0.7193 GB, free: 95.77 MB / 0.5137 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.001802/1.256, allocations: 438.6 kB / 0.7197 GB, free: 95.54 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007856/1.263, allocations: 4.4 MB / 0.724 GB, free: 91.17 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.49e-05/1.263, allocations: 9.156 kB / 0.724 GB, free: 91.16 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003638/1.267, allocations: 2.214 MB / 0.7262 GB, free: 88.93 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02449/1.292, allocations: 2.119 MB / 0.7282 GB, free: 86.85 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07837/1.37, allocations: 38.89 MB / 0.7662 GB, free: 47.9 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02285/1.393, allocations: 10.13 MB / 0.7761 GB, free: 37.74 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007225/1.4, allocations: 0.6869 MB / 0.7768 GB, free: 37.05 MB / 0.5137 GB Notification: Performance of SimCode: time 1.232e-06/1.4, allocations: 4 kB / 0.7768 GB, free: 37.05 MB / 0.5137 GB Notification: Performance of Templates: time 1.039/2.439, allocations: 307 MB / 1.077 GB, free: 195.6 MB / 0.5763 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: 21.95820794417523] 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.44788810191676 2.456474772 2.060107588 Calling exit ...