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.001043/0.001043, allocations: 84.34 kB / 21.43 MB, free: 3.125 MB / 18.57 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.005773/0.005773, allocations: 154.2 kB / 24.7 MB, free: 9.406 MB / 18.57 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 0.8899/0.8899, allocations: 177 MB / 204.9 MB, free: 5.777 MB / 186.7 MB " [Timeout remaining time 179] 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 1.633e-06/1.633e-06, allocations: 0 / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.405e-05/2.568e-05, allocations: 2.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.006809/0.006835, allocations: 8.769 MB / 334.5 MB, free: 6.617 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004184/0.01102, allocations: 3.356 MB / 337.9 MB, free: 3.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006939/0.01171, allocations: 31.81 kB / 337.9 MB, free: 3.219 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00187/0.01358, allocations: 1.155 MB / 339.1 MB, free: 2.059 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001141/0.01472, allocations: 0.7031 MB / 339.8 MB, free: 1.352 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008159/0.01554, allocations: 498.5 kB / 340.3 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005161/0.0207, allocations: 7.487 MB / 347.8 MB, free: 9.348 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002476/0.02318, allocations: 2.143 MB / 349.9 MB, free: 7.121 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005047/0.02822, allocations: 4.192 MB / 354.1 MB, free: 2.922 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003688/0.03191, allocations: 2.979 MB / 357.1 MB, free: 15.93 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001678/0.03359, allocations: 0.6797 MB / 357.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001392/0.03498, allocations: 0.7265 MB / 358.5 MB, free: 14.53 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003042/0.03802, allocations: 5.916 MB / 364.4 MB, free: 8.598 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006039/0.04406, allocations: 4.2 MB / 368.6 MB, free: 4.391 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01693/0.06099, allocations: 24.43 MB / 393 MB, free: 11.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.585e-06/0.061, allocations: 0 / 393 MB, free: 11.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.061, allocations: 0 / 393 MB, free: 11.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007761/0.06178, allocations: 0 / 393 MB, free: 11.91 MB / 362.7 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.04057/0.1023, allocations: 19.16 MB / 412.2 MB, free: 8.605 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.1024, allocations: 15.98 kB / 412.2 MB, free: 8.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004984/0.1074, allocations: 1.639 MB / 413.8 MB, free: 6.941 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03288/0.1403, allocations: 18.11 MB / 431.9 MB, free: 4.758 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003671/0.1406, allocations: 362.1 kB / 432.3 MB, free: 4.391 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008826/0.1415, allocations: 324 kB / 432.6 MB, free: 4.074 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009445/0.151, allocations: 8.013 MB / 440.6 MB, free: 11.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.933e-05/0.151, allocations: 4 kB / 440.6 MB, free: 11.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003308/0.1513, allocations: 144 kB / 440.8 MB, free: 11.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.443e-05/0.1514, allocations: 80 kB / 440.8 MB, free: 11.24 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007303/0.1587, allocations: 5.119 MB / 446 MB, free: 6.109 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3466/0.5053, allocations: 30.05 MB / 476 MB, free: 80 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004728/0.51, allocations: 4.177 MB / 480.2 MB, free: 75.92 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002277/0.5123, allocations: 2.488 MB / 482.7 MB, free: 73.45 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 8.046e-05/0.5124, allocations: 17.31 kB / 482.7 MB, free: 73.43 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.718e-05/0.5125, allocations: 63.88 kB / 482.8 MB, free: 73.36 MB / 410.8 MB Notification: Performance of pre-optimization done (n=156): time 4.789e-06/0.5125, allocations: 4 kB / 482.8 MB, free: 73.35 MB / 410.8 MB Notification: Performance of matching and sorting (n=156): time 0.01201/0.5245, allocations: 7.471 MB / 490.2 MB, free: 66.64 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.5246, allocations: 0.9901 MB / 491.2 MB, free: 65.42 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05743/0.582, allocations: 35.44 MB / 0.5143 GB, free: 30.08 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000618/0.5826, allocations: 69.7 kB / 0.5144 GB, free: 30 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.01102/0.5937, allocations: 7.536 MB / 0.5218 GB, free: 22.66 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007489/0.5944, allocations: 0.5627 MB / 0.5223 GB, free: 22.17 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005417/0.595, allocations: 427.4 kB / 0.5227 GB, free: 21.75 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 3.493e-05/0.595, allocations: 301.1 kB / 0.523 GB, free: 21.45 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00204/0.597, allocations: 1.967 MB / 0.5249 GB, free: 19.48 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002366/0.5994, allocations: 3.765 MB / 0.5286 GB, free: 15.17 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003748/0.6031, allocations: 4.208 MB / 0.5327 GB, free: 10.75 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.52e-05/0.6032, allocations: 8 kB / 0.5327 GB, free: 10.74 MB / 410.8 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01316/0.6163, allocations: 6.048 MB / 0.5386 GB, free: 4.668 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.27e-05/0.6164, allocations: 12 kB / 0.5386 GB, free: 4.656 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.111e-05/0.6164, allocations: 19.98 kB / 0.5386 GB, free: 4.637 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007546/0.6171, allocations: 359.9 kB / 0.539 GB, free: 4.285 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/0.6185, allocations: 0.6941 MB / 0.5397 GB, free: 3.59 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0033/0.6218, allocations: 4.405 MB / 0.544 GB, free: 15.11 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006124/0.6279, allocations: 0.6131 MB / 0.5446 GB, free: 14.54 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004543/0.6284, allocations: 79.17 kB / 0.5446 GB, free: 14.47 MB / 426.8 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.01177/0.6402, allocations: 8.149 MB / 0.5526 GB, free: 6.32 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004903/0.6451, allocations: 1.432 MB / 0.554 GB, free: 4.879 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0106/0.6557, allocations: 5.989 MB / 0.5599 GB, free: 14.86 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/0.6557, allocations: 20 kB / 0.5599 GB, free: 14.84 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.6557, allocations: 0 / 0.5599 GB, free: 14.84 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.6557, allocations: 7.969 kB / 0.5599 GB, free: 14.84 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03549/0.6912, allocations: 16.27 MB / 0.5758 GB, free: 14.56 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/0.6912, allocations: 3.984 kB / 0.5758 GB, free: 14.56 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.6922, allocations: 0.5655 MB / 0.5763 GB, free: 13.99 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000664/0.6929, allocations: 296.7 kB / 0.5766 GB, free: 13.7 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/0.693, allocations: 39.98 kB / 0.5766 GB, free: 13.66 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003686/0.6967, allocations: 3.844 MB / 0.5804 GB, free: 9.73 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.6967, allocations: 7.938 kB / 0.5804 GB, free: 9.723 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01294/0.7096, allocations: 7.652 MB / 0.5879 GB, free: 2.035 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0105/0.7201, allocations: 4.352 MB / 0.5921 GB, free: 13.7 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00495/0.7251, allocations: 51.98 kB / 0.5922 GB, free: 13.64 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006662/0.7317, allocations: 0.6552 MB / 0.5928 GB, free: 12.99 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009417/0.7327, allocations: 448.5 kB / 0.5932 GB, free: 12.55 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/0.7328, allocations: 40 kB / 0.5933 GB, free: 12.51 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.04408/0.7769, allocations: 25.29 MB / 0.618 GB, free: 3.285 MB / 490.8 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7769, allocations: 3.281 kB / 0.618 GB, free: 3.285 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.009908/0.7868, allocations: 1.884 MB / 0.6198 GB, free: 1.484 MB / 490.8 MB 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.001062/0.7879, allocations: 446.7 kB / 0.6203 GB, free: 1.188 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.1763/0.9642, allocations: 4.408 MB / 0.6246 GB, free: 171.6 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/0.9642, allocations: 5.125 kB / 0.6246 GB, free: 171.6 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002343/0.9665, allocations: 2.213 MB / 0.6267 GB, free: 171.1 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01584/0.9824, allocations: 1.841 MB / 0.6285 GB, free: 170.2 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05764/1.04, allocations: 38.38 MB / 0.666 GB, free: 138.5 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01751/1.058, allocations: 9.775 MB / 0.6755 GB, free: 128.6 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005184/1.063, allocations: 0.6606 MB / 0.6762 GB, free: 128 MB / 490.8 MB Notification: Performance of SimCode: time 1.984e-06/1.063, allocations: 0 / 0.6762 GB, free: 128 MB / 490.8 MB Notification: Performance of Templates: time 0.4621/1.525, allocations: 308.1 MB / 0.9771 GB, free: 11.75 MB / 0.5105 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: 14.340124236419797] 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'] 1.5328994942829013 1.684418529 1.478378259 Calling exit ...