Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.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.001811/0.001811, allocations: 102.8 kB / 21.19 MB, free: 0.6367 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.002254/0.002254, allocations: 221.1 kB / 24.5 MB, free: 3.922 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 1.453/1.453, allocations: 230.6 MB / 258.3 MB, free: 7.797 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_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.1, 1..cell.capacitor.1..v|stack.cell.1, 1..cell.capacitor.2..v|stack.cell.1, 1..cell.limIntegrator.y|stack.cell.1, 1..limIntegrator.y|stack.cell.1, 2..cell.capacitor.1..v|stack.cell.1, 2..cell.capacitor.2..v|stack.cell.1, 2..cell.limIntegrator.y|stack.cell.1, 2..limIntegrator.y|stack.cell.2, 1..cell.capacitor.1..v|stack.cell.2, 1..cell.capacitor.2..v|stack.cell.2, 1..cell.limIntegrator.y|stack.cell.2, 1..limIntegrator.y|stack.cell.2, 2..cell.capacitor.1..v|stack.cell.2, 2..cell.capacitor.2..v|stack.cell.2, 2..cell.limIntegrator.y|stack.cell.2, 2..limIntegrator.y|stack.cell.3, 1..cell.capacitor.1..v|stack.cell.3, 1..cell.capacitor.2..v|stack.cell.3, 1..cell.limIntegrator.y|stack.cell.3, 1..limIntegrator.y|stack.cell.3, 2..cell.capacitor.1..v|stack.cell.3, 2..cell.capacitor.2..v|stack.cell.3, 2..cell.limIntegrator.y|stack.cell.3, 2..limIntegrator.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.1, 1..cell.capacitor.1..v|stack.cell.1, 1..cell.capacitor.2..v|stack.cell.1, 1..cell.limIntegrator.y|stack.cell.1, 1..limIntegrator.y|stack.cell.1, 2..cell.capacitor.1..v|stack.cell.1, 2..cell.capacitor.2..v|stack.cell.1, 2..cell.limIntegrator.y|stack.cell.1, 2..limIntegrator.y|stack.cell.2, 1..cell.capacitor.1..v|stack.cell.2, 1..cell.capacitor.2..v|stack.cell.2, 1..cell.limIntegrator.y|stack.cell.2, 1..limIntegrator.y|stack.cell.2, 2..cell.capacitor.1..v|stack.cell.2, 2..cell.capacitor.2..v|stack.cell.2, 2..cell.limIntegrator.y|stack.cell.2, 2..limIntegrator.y|stack.cell.3, 1..cell.capacitor.1..v|stack.cell.3, 1..cell.capacitor.2..v|stack.cell.3, 1..cell.limIntegrator.y|stack.cell.3, 1..limIntegrator.y|stack.cell.3, 2..cell.capacitor.1..v|stack.cell.3, 2..cell.capacitor.2..v|stack.cell.3, 2..cell.limIntegrator.y|stack.cell.3, 2..limIntegrator.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 47.92 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.233, allocations: 53.37 MB / 432.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.0131/0.2462, allocations: 9.761 MB / 442.1 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006009/0.2522, allocations: 3.642 MB / 445.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006486/0.2528, allocations: 35.75 kB / 445.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007754/0.2606, allocations: 5.721 MB / 451.5 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001359/0.2619, allocations: 0.5278 MB / 452 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.263, allocations: 0.5223 MB / 452.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0235/0.2865, allocations: 21.49 MB / 474 MB, free: 12.92 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008319/0.2949, allocations: 6.437 MB / 480.5 MB, free: 6.395 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05706/0.3519, allocations: 49.31 MB / 0.5174 GB, free: 5.031 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005603/0.3575, allocations: 3.954 MB / 0.5212 GB, free: 1.062 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0018/0.3593, allocations: 0.9648 MB / 0.5222 GB, free: 100 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002226/0.3615, allocations: 1.031 MB / 0.5232 GB, free: 15.06 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003505/0.365, allocations: 3.881 MB / 0.527 GB, free: 11.17 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005412/0.3705, allocations: 3.969 MB / 0.5308 GB, free: 7.184 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1971/0.5676, allocations: 17.79 MB / 0.5482 GB, free: 86.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.5676, allocations: 0 / 0.5482 GB, free: 86.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.5676, allocations: 0 / 0.5482 GB, free: 86.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004084/0.568, allocations: 0 / 0.5482 GB, free: 86.98 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.0229/0.5909, allocations: 12.77 MB / 0.5607 GB, free: 80.05 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.5909, allocations: 11.81 kB / 0.5607 GB, free: 80.05 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001672/0.5926, allocations: 1.101 MB / 0.5618 GB, free: 79.45 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01756/0.6102, allocations: 11.4 MB / 0.5729 GB, free: 69.48 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004479/0.6106, allocations: 0.8768 MB / 0.5738 GB, free: 68.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000737/0.6114, allocations: 395.9 kB / 0.5741 GB, free: 68.09 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01186/0.6232, allocations: 10.67 MB / 0.5846 GB, free: 56.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.338e-05/0.6233, allocations: 0 / 0.5846 GB, free: 56.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005244/0.6238, allocations: 180 kB / 0.5847 GB, free: 56.52 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.718e-05/0.6239, allocations: 100 kB / 0.5848 GB, free: 56.43 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009/0.6329, allocations: 7.134 MB / 0.5918 GB, free: 49.31 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03701/0.6699, allocations: 25.87 MB / 0.6171 GB, free: 23.54 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007716/0.6776, allocations: 5.865 MB / 0.6228 GB, free: 17.82 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005277/0.6829, allocations: 4.117 MB / 0.6268 GB, free: 13.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.733e-05/0.683, allocations: 30 kB / 0.6268 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.684e-05/0.683, allocations: 73 kB / 0.6269 GB, free: 13.62 MB / 446.1 MB Notification: Performance of pre-optimization done (n=231): time 4.859e-06/0.683, allocations: 0 / 0.6269 GB, free: 13.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.01754/0.7006, allocations: 9.735 MB / 0.6364 GB, free: 3.883 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002033/0.7008, allocations: 1.293 MB / 0.6377 GB, free: 2.281 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0278/0.7286, allocations: 14.12 MB / 0.6515 GB, free: 4.172 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000825/0.7294, allocations: 77.7 kB / 0.6515 GB, free: 4.09 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006194/0.7356, allocations: 4.483 MB / 0.6559 GB, free: 15.6 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001416/0.737, allocations: 0.8508 MB / 0.6567 GB, free: 14.76 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002083/0.7391, allocations: 0.6114 MB / 0.6573 GB, free: 14.14 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.7392, allocations: 312.9 kB / 0.6576 GB, free: 13.84 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005437/0.7447, allocations: 2.96 MB / 0.6605 GB, free: 10.87 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007137/0.7518, allocations: 5.242 MB / 0.6656 GB, free: 4.984 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/0.7623, allocations: 6.088 MB / 0.6716 GB, free: 14.71 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.765e-05/0.7624, allocations: 8 kB / 0.6716 GB, free: 14.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01669/0.779, allocations: 7.676 MB / 0.6791 GB, free: 7.062 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/0.7791, allocations: 8 kB / 0.6791 GB, free: 7.055 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.089e-05/0.7791, allocations: 23.56 kB / 0.6791 GB, free: 7.035 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001469/0.7806, allocations: 0.5508 MB / 0.6797 GB, free: 6.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003721/0.7843, allocations: 1.01 MB / 0.6806 GB, free: 5.504 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008451/0.7927, allocations: 6.116 MB / 0.6866 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005463/0.7982, allocations: 0.7984 MB / 0.6874 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004846/0.7987, allocations: 104 kB / 0.6875 GB, free: 14.41 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (308): * Single equations (assignments): 307 * 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,38)} Notification: Performance of prepare postOptimizeDAE: time 0.00895/0.8076, allocations: 4.782 MB / 0.6922 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002949/0.8106, allocations: 0.8694 MB / 0.693 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004327/0.8149, allocations: 1.267 MB / 0.6943 GB, free: 7.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.142e-05/0.815, allocations: 22.98 kB / 0.6943 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.815, allocations: 0 / 0.6943 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007234/0.8222, allocations: 2.23 MB / 0.6964 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002262/0.8245, allocations: 79.98 kB / 0.6965 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005024/0.8295, allocations: 0.8545 MB / 0.6974 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001103/0.8306, allocations: 0.4894 MB / 0.6978 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02022/0.8508, allocations: 9.21 MB / 0.7068 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01756/0.8684, allocations: 9.625 MB / 0.7162 GB, free: 0.9805 MB / 0.5137 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004862/0.8732, allocations: 2.917 MB / 0.7191 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.02277/0.896, allocations: 10.02 MB / 0.7289 GB, free: 4.066 MB / 0.5294 GB Notification: Performance of Backend: time 8.11e-07/0.896, allocations: 0 / 0.7289 GB, free: 4.066 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01689/0.9129, allocations: 4.75 MB / 0.7335 GB, free: 15.69 MB / 0.545 GB Notification: Performance of SimCode: time 0.2415/1.154, allocations: 23.53 MB / 0.7565 GB, free: 192.3 MB / 0.545 GB Notification: Performance of Templates: time 0.1792/1.334, allocations: 128.8 MB / 0.8823 GB, free: 79.41 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 8.149509789996955] Failed to read output from testmodel.py, exit status != 0: ['time', 'energy.y', 'stack.cell[1, 1].cell.capacitor[1].v', 'stack.cell[1, 1].cell.capacitor[2].v', 'stack.cell[1, 1].cell.limIntegrator.y', 'stack.cell[1, 1].limIntegrator.y', 'stack.cell[1, 2].cell.capacitor[1].v', 'stack.cell[1, 2].cell.capacitor[2].v', 'stack.cell[1, 2].cell.limIntegrator.y', 'stack.cell[1, 2].limIntegrator.y', 'stack.cell[2, 1].cell.capacitor[1].v', 'stack.cell[2, 1].cell.capacitor[2].v', 'stack.cell[2, 1].cell.limIntegrator.y', 'stack.cell[2, 1].limIntegrator.y', 'stack.cell[2, 2].cell.capacitor[1].v', 'stack.cell[2, 2].cell.capacitor[2].v', 'stack.cell[2, 2].cell.limIntegrator.y', 'stack.cell[2, 2].limIntegrator.y', 'stack.cell[3, 1].cell.capacitor[1].v', 'stack.cell[3, 1].cell.capacitor[2].v', 'stack.cell[3, 1].cell.limIntegrator.y', 'stack.cell[3, 1].limIntegrator.y', 'stack.cell[3, 2].cell.capacitor[1].v', 'stack.cell[3, 2].cell.capacitor[2].v', 'stack.cell[3, 2].cell.limIntegrator.y', 'stack.cell[3, 2].limIntegrator.y'] 1.341820576999453 1.3511117179999999 0.7811036259999999 Calling exit ...