Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.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.001381/0.001381, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.001464/0.001464, allocations: 211.5 kB / 24.48 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 230.5 MB / 258.1 MB, free: 7.746 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 63.88 kB / 379 MB, free: 2.324 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2501, allocations: 53.4 MB / 432.4 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01163/0.2617, allocations: 8.759 MB / 441.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005595/0.2673, allocations: 3.345 MB / 444.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007521/0.2681, allocations: 27.81 kB / 444.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00255/0.2706, allocations: 1.155 MB / 445.7 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001508/0.2722, allocations: 0.6802 MB / 446.4 MB, free: 8.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001096/0.2733, allocations: 497.7 kB / 446.8 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008351/0.2816, allocations: 7.321 MB / 454.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003446/0.285, allocations: 2.135 MB / 456.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004368/0.2894, allocations: 2.988 MB / 459.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005397/0.2948, allocations: 3.31 MB / 462.6 MB, free: 8.324 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00205/0.2969, allocations: 0.6797 MB / 463.3 MB, free: 7.645 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002862/0.2997, allocations: 0.7226 MB / 464 MB, free: 6.922 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006501/0.3062, allocations: 5.841 MB / 469.8 MB, free: 1.066 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009205/0.3154, allocations: 5.279 MB / 475.1 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02776/0.3432, allocations: 25.17 MB / 0.4886 GB, free: 2.512 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.3432, allocations: 0 / 0.4886 GB, free: 2.512 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3432, allocations: 0 / 0.4886 GB, free: 2.512 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006347/0.3438, allocations: 0 / 0.4886 GB, free: 2.512 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.04863/0.3925, allocations: 19.33 MB / 0.5074 GB, free: 15.04 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.3925, allocations: 11.98 kB / 0.5074 GB, free: 15.02 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005205/0.3977, allocations: 1.639 MB / 0.509 GB, free: 13.38 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04371/0.4414, allocations: 18.11 MB / 0.5267 GB, free: 11.19 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000611/0.442, allocations: 361.9 kB / 0.5271 GB, free: 10.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001256/0.4433, allocations: 323.9 kB / 0.5274 GB, free: 10.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01593/0.4592, allocations: 8.017 MB / 0.5352 GB, free: 1.895 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001194/0.4593, allocations: 3.938 kB / 0.5352 GB, free: 1.891 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00106/0.4604, allocations: 144 kB / 0.5354 GB, free: 1.75 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.693e-05/0.4605, allocations: 83.94 kB / 0.5354 GB, free: 1.668 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3957/0.8561, allocations: 5.12 MB / 0.5404 GB, free: 80.25 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05816/0.9143, allocations: 30.07 MB / 0.5698 GB, free: 59.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00669/0.921, allocations: 4.171 MB / 0.5739 GB, free: 55.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003541/0.9245, allocations: 2.459 MB / 0.5763 GB, free: 53.16 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000115/0.9247, allocations: 25.3 kB / 0.5763 GB, free: 53.14 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.824e-05/0.9247, allocations: 67.53 kB / 0.5764 GB, free: 53.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 4.589e-06/0.9247, allocations: 0 / 0.5764 GB, free: 53.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01627/0.941, allocations: 7.478 MB / 0.5837 GB, free: 46.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001901/0.9412, allocations: 0.9824 MB / 0.5846 GB, free: 44.85 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06478/1.006, allocations: 35.44 MB / 0.6192 GB, free: 9.504 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005213/1.007, allocations: 65.7 kB / 0.6193 GB, free: 9.434 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01229/1.019, allocations: 7.543 MB / 0.6267 GB, free: 2.082 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006898/1.019, allocations: 0.572 MB / 0.6272 GB, free: 1.582 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007356/1.02, allocations: 435.2 kB / 0.6276 GB, free: 1.148 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.236e-05/1.02, allocations: 305.1 kB / 0.6279 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00348/1.024, allocations: 1.967 MB / 0.6298 GB, free: 14.88 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005474/1.029, allocations: 3.761 MB / 0.6335 GB, free: 10.57 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007899/1.037, allocations: 4.215 MB / 0.6376 GB, free: 6.148 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.68e-05/1.037, allocations: 4 kB / 0.6376 GB, free: 6.145 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01629/1.053, allocations: 6.056 MB / 0.6436 GB, free: 68 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/1.053, allocations: 12 kB / 0.6436 GB, free: 56 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.668e-05/1.053, allocations: 14.73 kB / 0.6436 GB, free: 44 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/1.055, allocations: 372.2 kB / 0.6439 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002556/1.057, allocations: 0.6902 MB / 0.6446 GB, free: 14.99 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006141/1.063, allocations: 4.403 MB / 0.6489 GB, free: 10.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007649/1.071, allocations: 0.6193 MB / 0.6495 GB, free: 9.93 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004987/1.071, allocations: 79.98 kB / 0.6496 GB, free: 9.852 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.01459/1.086, allocations: 8.133 MB / 0.6575 GB, free: 1.715 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005912/1.092, allocations: 1.436 MB / 0.6589 GB, free: 276 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01518/1.107, allocations: 5.996 MB / 0.6648 GB, free: 10.26 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.789e-05/1.107, allocations: 16 kB / 0.6648 GB, free: 10.24 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/1.107, allocations: 0 / 0.6648 GB, free: 10.24 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.812e-05/1.107, allocations: 13.72 kB / 0.6648 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04777/1.155, allocations: 16.28 MB / 0.6807 GB, free: 9.91 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/1.155, allocations: 3.938 kB / 0.6807 GB, free: 9.906 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002127/1.157, allocations: 0.5616 MB / 0.6813 GB, free: 9.344 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008806/1.158, allocations: 296.2 kB / 0.6816 GB, free: 9.055 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001828/1.158, allocations: 43.92 kB / 0.6816 GB, free: 9.012 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005118/1.163, allocations: 3.824 MB / 0.6853 GB, free: 5.094 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/1.163, allocations: 48 / 0.6853 GB, free: 5.094 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01762/1.181, allocations: 7.663 MB / 0.6928 GB, free: 13.39 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01713/1.198, allocations: 4.364 MB / 0.6971 GB, free: 9.039 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005001/1.203, allocations: 47.98 kB / 0.6971 GB, free: 8.992 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007612/1.211, allocations: 0.6591 MB / 0.6978 GB, free: 8.332 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00144/1.212, allocations: 440.6 kB / 0.6982 GB, free: 7.902 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003977/1.212, allocations: 39.98 kB / 0.6982 GB, free: 7.863 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.07033/1.283, allocations: 25.29 MB / 0.7229 GB, free: 14.64 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.51e-07/1.283, allocations: 0 / 0.7229 GB, free: 14.64 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01147/1.294, allocations: 1.883 MB / 0.7248 GB, free: 12.84 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.002041/1.296, allocations: 449.5 kB / 0.7252 GB, free: 12.52 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01157/1.308, allocations: 4.401 MB / 0.7295 GB, free: 8.113 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/1.308, allocations: 9.219 kB / 0.7295 GB, free: 8.105 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004578/1.312, allocations: 2.209 MB / 0.7317 GB, free: 5.879 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01752/1.33, allocations: 1.828 MB / 0.7334 GB, free: 4.062 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3195/1.649, allocations: 38.5 MB / 0.771 GB, free: 186.4 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01753/1.667, allocations: 9.772 MB / 0.7806 GB, free: 183.9 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005117/1.672, allocations: 0.6621 MB / 0.7812 GB, free: 183.9 MB / 0.5607 GB Notification: Performance of SimCode: time 1.143e-06/1.672, allocations: 3.125 kB / 0.7812 GB, free: 183.9 MB / 0.5607 GB Notification: Performance of Templates: time 0.5767/2.249, allocations: 307.8 MB / 1.082 GB, free: 108.9 MB / 0.5763 GB " [Timeout remaining time 658] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 20.071649274788797] 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.2585960468277335 2.26845736 1.9226931 Calling exit ...