Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001288/0.001288, allocations: 114.3 kB / 21.18 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 210.9 kB / 24.48 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.389/1.389, allocations: 230.4 MB / 258.1 MB, free: 8.156 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002076/0.002076, allocations: 71.83 kB / 378.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.2168, allocations: 53.31 MB / 432 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.01248/0.2293, allocations: 11.36 MB / 443.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005573/0.2349, allocations: 3.961 MB / 447.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004634/0.2353, allocations: 31.88 kB / 447.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007146/0.2425, allocations: 5.748 MB / 453.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001056/0.2435, allocations: 0.5317 MB / 453.7 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009766/0.2445, allocations: 0.5064 MB / 454.2 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02179/0.2663, allocations: 21.44 MB / 475.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007898/0.2742, allocations: 6.42 MB / 482 MB, free: 5.195 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05397/0.3282, allocations: 49.1 MB / 0.5187 GB, free: 4.039 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005632/0.3338, allocations: 3.958 MB / 0.5226 GB, free: 68 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001419/0.3352, allocations: 0.9649 MB / 0.5235 GB, free: 15.1 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00175/0.337, allocations: 1.027 MB / 0.5245 GB, free: 14.07 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003203/0.3402, allocations: 3.87 MB / 0.5283 GB, free: 10.2 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005664/0.3458, allocations: 5.174 MB / 0.5333 GB, free: 4.996 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2008/0.5466, allocations: 17.7 MB / 0.5506 GB, free: 87.84 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.5466, allocations: 0 / 0.5506 GB, free: 87.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5466, allocations: 0 / 0.5506 GB, free: 87.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003618/0.547, allocations: 0 / 0.5506 GB, free: 87.84 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.02875/0.5757, allocations: 12.79 MB / 0.5631 GB, free: 80.43 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.5758, allocations: 12.58 kB / 0.5631 GB, free: 80.43 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002875/0.5786, allocations: 1.104 MB / 0.5642 GB, free: 79.84 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02037/0.599, allocations: 11.27 MB / 0.5752 GB, free: 69.26 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00046/0.5995, allocations: 0.5544 MB / 0.5757 GB, free: 68.66 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001174/0.6006, allocations: 396 kB / 0.5761 GB, free: 68.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01184/0.6125, allocations: 8.547 MB / 0.5845 GB, free: 59.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.088e-05/0.6126, allocations: 3.188 kB / 0.5845 GB, free: 59.52 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005316/0.6131, allocations: 180 kB / 0.5846 GB, free: 59.34 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.877e-05/0.6131, allocations: 96 kB / 0.5847 GB, free: 59.25 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009523/0.6227, allocations: 7.139 MB / 0.5917 GB, free: 52.12 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.043/0.6657, allocations: 28.63 MB / 0.6197 GB, free: 23.58 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007903/0.6736, allocations: 5.882 MB / 0.6254 GB, free: 17.85 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005299/0.6789, allocations: 4.133 MB / 0.6294 GB, free: 13.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.088e-05/0.679, allocations: 22 kB / 0.6295 GB, free: 13.71 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.781e-05/0.679, allocations: 87.62 kB / 0.6295 GB, free: 13.62 MB / 446.1 MB Notification: Performance of pre-optimization done (n=231): time 4.308e-06/0.679, allocations: 3.281 kB / 0.6296 GB, free: 13.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.01707/0.6961, allocations: 9.854 MB / 0.6392 GB, free: 3.746 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001875/0.6963, allocations: 1.296 MB / 0.6404 GB, free: 2.145 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02984/0.7261, allocations: 14.85 MB / 0.6549 GB, free: 3.324 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009768/0.7271, allocations: 81.7 kB / 0.655 GB, free: 3.238 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.008952/0.736, allocations: 4.505 MB / 0.6594 GB, free: 14.82 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001895/0.7379, allocations: 0.8467 MB / 0.6602 GB, free: 13.98 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003066/0.741, allocations: 0.6192 MB / 0.6608 GB, free: 13.36 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.7411, allocations: 301.1 kB / 0.6611 GB, free: 13.06 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00627/0.7474, allocations: 2.966 MB / 0.664 GB, free: 10.09 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007009/0.7544, allocations: 4.019 MB / 0.668 GB, free: 5.719 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01164/0.7661, allocations: 6.089 MB / 0.6739 GB, free: 15.45 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.501e-05/0.7661, allocations: 4 kB / 0.6739 GB, free: 15.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01656/0.7826, allocations: 7.719 MB / 0.6814 GB, free: 7.766 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.269e-05/0.7827, allocations: 15.94 kB / 0.6815 GB, free: 7.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.441e-05/0.7827, allocations: 12 kB / 0.6815 GB, free: 7.738 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001428/0.7841, allocations: 0.5476 MB / 0.682 GB, free: 7.188 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003686/0.7878, allocations: 1.015 MB / 0.683 GB, free: 6.207 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008635/0.7965, allocations: 6.385 MB / 0.6892 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00565/0.8021, allocations: 0.8486 MB / 0.6901 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004011/0.8025, allocations: 99.98 kB / 0.6902 GB, free: 14.75 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.008676/0.8112, allocations: 4.79 MB / 0.6948 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002851/0.814, allocations: 0.9082 MB / 0.6957 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003582/0.8176, allocations: 1.317 MB / 0.697 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-05/0.8176, allocations: 11.95 kB / 0.697 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.8176, allocations: 4 kB / 0.697 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006463/0.8241, allocations: 2.279 MB / 0.6993 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001682/0.8258, allocations: 79.98 kB / 0.6993 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004493/0.8303, allocations: 0.8584 MB / 0.7002 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001031/0.8313, allocations: 481.3 kB / 0.7006 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02045/0.8518, allocations: 9.242 MB / 0.7096 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01769/0.8695, allocations: 9.662 MB / 0.7191 GB, free: 1.117 MB / 0.5137 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00489/0.8743, allocations: 2.909 MB / 0.7219 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.02117/0.8955, allocations: 10.59 MB / 0.7323 GB, free: 3.652 MB / 0.5294 GB Notification: Performance of Backend: time 4.01e-07/0.8955, allocations: 0 / 0.7323 GB, free: 3.652 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.1939/1.089, allocations: 4.699 MB / 0.7369 GB, free: 188.1 MB / 0.5294 GB Notification: Performance of SimCode: time 0.03029/1.12, allocations: 23.95 MB / 0.7602 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.1555/1.275, allocations: 125.2 MB / 0.8825 GB, free: 54.78 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 7.825841878075153] 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.2832203609868884 1.291663757 0.74278562 Calling exit ...