Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.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.0008375/0.0008375, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 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.004547/0.004547, allocations: 162.2 kB / 24.7 MB, free: 9.426 MB / 18.57 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 0.8868/0.8868, allocations: 177.1 MB / 205 MB, free: 5.363 MB / 186.7 MB " [Timeout remaining time 179] 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_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.1.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.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.644e-06/1.644e-06, allocations: 0 / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.805e-05/2.97e-05, allocations: 4.812 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.007064/0.007094, allocations: 8.772 MB / 334.6 MB, free: 6.637 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004137/0.01123, allocations: 3.357 MB / 338 MB, free: 3.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006273/0.01186, allocations: 31.81 kB / 338 MB, free: 3.238 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001679/0.01354, allocations: 1.151 MB / 339.1 MB, free: 2.082 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009734/0.01451, allocations: 0.707 MB / 339.8 MB, free: 1.371 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006982/0.01521, allocations: 0.491 MB / 340.3 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004854/0.02006, allocations: 7.504 MB / 347.8 MB, free: 9.352 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002352/0.02241, allocations: 2.139 MB / 350 MB, free: 7.133 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004425/0.02684, allocations: 4.192 MB / 354.2 MB, free: 2.934 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003675/0.03051, allocations: 2.979 MB / 357.1 MB, free: 15.95 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001258/0.03177, allocations: 0.6836 MB / 357.8 MB, free: 15.26 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001241/0.03301, allocations: 0.7264 MB / 358.6 MB, free: 14.54 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003072/0.03609, allocations: 5.908 MB / 364.5 MB, free: 8.617 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005591/0.04168, allocations: 4.196 MB / 368.7 MB, free: 4.41 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01506/0.05674, allocations: 24.43 MB / 393.1 MB, free: 11.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/0.05675, allocations: 0 / 393.1 MB, free: 11.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.05675, allocations: 0 / 393.1 MB, free: 11.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006684/0.05742, allocations: 0 / 393.1 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.0344/0.09182, allocations: 19.17 MB / 412.3 MB, free: 8.605 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.09186, allocations: 12.03 kB / 412.3 MB, free: 8.594 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004368/0.09623, allocations: 1.635 MB / 413.9 MB, free: 6.949 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02887/0.1251, allocations: 18.12 MB / 432 MB, free: 4.762 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000342/0.1254, allocations: 365.8 kB / 432.4 MB, free: 4.391 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006683/0.1261, allocations: 332 kB / 432.7 MB, free: 4.066 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009471/0.1356, allocations: 8.001 MB / 440.7 MB, free: 11.47 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.676e-05/0.1356, allocations: 4 kB / 440.7 MB, free: 11.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003179/0.1359, allocations: 144 kB / 440.8 MB, free: 11.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.144e-05/0.136, allocations: 80 kB / 440.9 MB, free: 11.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007575/0.1436, allocations: 5.126 MB / 446.1 MB, free: 6.109 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.325/0.4685, allocations: 30.06 MB / 476.1 MB, free: 80.01 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004268/0.4728, allocations: 4.165 MB / 480.3 MB, free: 75.93 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002166/0.475, allocations: 2.482 MB / 482.8 MB, free: 73.47 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 7.476e-05/0.475, allocations: 17.31 kB / 482.8 MB, free: 73.45 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.7e-05/0.4751, allocations: 66.69 kB / 482.8 MB, free: 73.38 MB / 410.8 MB Notification: Performance of pre-optimization done (n=156): time 4.308e-06/0.4751, allocations: 0 / 482.8 MB, free: 73.38 MB / 410.8 MB Notification: Performance of matching and sorting (n=156): time 0.01148/0.4866, allocations: 7.482 MB / 490.3 MB, free: 66.66 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/0.4867, allocations: 0.9902 MB / 491.3 MB, free: 65.44 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04998/0.5367, allocations: 35.44 MB / 0.5144 GB, free: 30.1 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004668/0.5371, allocations: 65.7 kB / 0.5145 GB, free: 30.03 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.009991/0.5471, allocations: 7.54 MB / 0.5218 GB, free: 22.68 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006072/0.5477, allocations: 0.5621 MB / 0.5224 GB, free: 22.19 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004886/0.5482, allocations: 427.4 kB / 0.5228 GB, free: 21.77 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 2.641e-05/0.5482, allocations: 301.1 kB / 0.5231 GB, free: 21.47 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001882/0.5501, allocations: 1.971 MB / 0.525 GB, free: 19.5 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002175/0.5523, allocations: 3.761 MB / 0.5287 GB, free: 15.19 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003602/0.5559, allocations: 4.208 MB / 0.5328 GB, free: 10.77 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.478e-05/0.5559, allocations: 4 kB / 0.5328 GB, free: 10.76 MB / 410.8 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01175/0.5677, allocations: 6.052 MB / 0.5387 GB, free: 4.688 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/0.5677, allocations: 12.97 kB / 0.5387 GB, free: 4.676 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.241e-05/0.5677, allocations: 16 kB / 0.5387 GB, free: 4.66 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007204/0.5684, allocations: 368.1 kB / 0.5391 GB, free: 4.301 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001322/0.5698, allocations: 0.698 MB / 0.5398 GB, free: 3.602 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003129/0.5729, allocations: 4.395 MB / 0.544 GB, free: 15.13 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005569/0.5785, allocations: 0.6146 MB / 0.5446 GB, free: 14.56 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004252/0.5789, allocations: 76 kB / 0.5447 GB, free: 14.49 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.01056/0.5895, allocations: 8.153 MB / 0.5527 GB, free: 6.332 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005002/0.5945, allocations: 1.44 MB / 0.5541 GB, free: 4.883 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01044/0.6049, allocations: 5.991 MB / 0.5599 GB, free: 14.86 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.6049, allocations: 12 kB / 0.56 GB, free: 14.85 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.6049, allocations: 0 / 0.56 GB, free: 14.85 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/0.6049, allocations: 14.38 kB / 0.56 GB, free: 14.84 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03499/0.6399, allocations: 16.27 MB / 0.5758 GB, free: 14.57 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.6399, allocations: 4 kB / 0.5759 GB, free: 14.56 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.641, allocations: 0.5597 MB / 0.5764 GB, free: 14 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006741/0.6417, allocations: 300.3 kB / 0.5767 GB, free: 13.71 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/0.6418, allocations: 40 kB / 0.5767 GB, free: 13.67 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003548/0.6453, allocations: 3.847 MB / 0.5805 GB, free: 9.738 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.6453, allocations: 0 / 0.5805 GB, free: 9.738 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01398/0.6593, allocations: 7.666 MB / 0.588 GB, free: 2.043 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01023/0.6695, allocations: 4.352 MB / 0.5922 GB, free: 13.7 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005032/0.6746, allocations: 44 kB / 0.5923 GB, free: 13.66 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00694/0.6815, allocations: 0.6591 MB / 0.5929 GB, free: 13 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001256/0.6828, allocations: 444.6 kB / 0.5933 GB, free: 12.57 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002436/0.683, allocations: 40 kB / 0.5934 GB, free: 12.53 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.0494/0.7324, allocations: 25.29 MB / 0.6181 GB, free: 3.297 MB / 490.8 MB Notification: Performance of sort global known variables: time 3.2e-07/0.7324, allocations: 0 / 0.6181 GB, free: 3.297 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01005/0.7425, allocations: 1.879 MB / 0.6199 GB, free: 1.5 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.001489/0.744, allocations: 452.5 kB / 0.6203 GB, free: 1.227 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.1744/0.9184, allocations: 4.409 MB / 0.6246 GB, free: 171.5 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/0.9184, allocations: 9.812 kB / 0.6246 GB, free: 171.5 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002294/0.9207, allocations: 2.209 MB / 0.6268 GB, free: 171 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01323/0.9339, allocations: 1.843 MB / 0.6286 GB, free: 170.2 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04493/0.9788, allocations: 38.38 MB / 0.6661 GB, free: 138.4 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0135/0.9923, allocations: 9.771 MB / 0.6756 GB, free: 128.6 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004444/0.9968, allocations: 0.6645 MB / 0.6763 GB, free: 127.9 MB / 490.8 MB Notification: Performance of SimCode: time 1.733e-06/0.9968, allocations: 0 / 0.6763 GB, free: 127.9 MB / 490.8 MB Notification: Performance of Templates: time 0.4396/1.436, allocations: 308.1 MB / 0.9772 GB, free: 11.73 MB / 0.5105 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 14.622145280241966] 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.4445630181580782 1.605292545 1.394769197 Calling exit ...