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.001324/0.001324, allocations: 111.9 kB / 19.18 MB, free: 3.762 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.002109/0.002109, allocations: 208.9 kB / 22.13 MB, free: 0.8125 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.481/1.481, allocations: 230.2 MB / 255.1 MB, free: 15.25 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.001841/0.001841, allocations: 64.12 kB / 374.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1155, allocations: 53.32 MB / 427.8 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.2182/0.3337, allocations: 10.14 MB / 438 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004474/0.3381, allocations: 3.636 MB / 441.6 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000692/0.3388, allocations: 23.69 kB / 441.6 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002647/0.3415, allocations: 1.189 MB / 442.8 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001446/0.3429, allocations: 0.6879 MB / 443.5 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.3439, allocations: 486.7 kB / 444 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007891/0.3518, allocations: 7.32 MB / 451.3 MB, free: 260 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00431/0.3562, allocations: 3.315 MB / 454.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005358/0.3615, allocations: 2.86 MB / 457.5 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005768/0.3673, allocations: 2.987 MB / 460.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002112/0.3694, allocations: 0.6817 MB / 461.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002599/0.372, allocations: 0.7225 MB / 461.9 MB, free: 12.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006313/0.3783, allocations: 5.839 MB / 467.7 MB, free: 8.988 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01334/0.3916, allocations: 7.187 MB / 474.9 MB, free: 1.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03031/0.4219, allocations: 25.01 MB / 499.9 MB, free: 8.883 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.422, allocations: 4 kB / 499.9 MB, free: 8.879 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.422, allocations: 0 / 499.9 MB, free: 8.879 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007359/0.4227, allocations: 4 kB / 499.9 MB, free: 8.875 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.05103/0.4737, allocations: 19.22 MB / 0.507 GB, free: 5.496 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.785e-05/0.4738, allocations: 8.031 kB / 0.507 GB, free: 5.488 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005496/0.4793, allocations: 1.642 MB / 0.5086 GB, free: 3.836 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04043/0.5197, allocations: 17.92 MB / 0.5261 GB, free: 1.84 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004491/0.5201, allocations: 334.8 kB / 0.5264 GB, free: 1.508 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008268/0.521, allocations: 329.8 kB / 0.5267 GB, free: 1.188 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01193/0.5329, allocations: 6.491 MB / 0.5331 GB, free: 10.47 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.219e-05/0.533, allocations: 0 / 0.5331 GB, free: 10.47 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004287/0.5334, allocations: 152 kB / 0.5332 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.84e-05/0.5335, allocations: 83.94 kB / 0.5333 GB, free: 10.24 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009284/0.5427, allocations: 5.115 MB / 0.5383 GB, free: 5.113 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06895/0.6117, allocations: 33.45 MB / 0.5709 GB, free: 3.359 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008413/0.6201, allocations: 4.179 MB / 0.575 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004615/0.6247, allocations: 2.478 MB / 0.5774 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001136/0.6248, allocations: 17.31 kB / 0.5775 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.766e-05/0.6249, allocations: 67.88 kB / 0.5775 GB, free: 12.69 MB / 494.1 MB Notification: Performance of pre-optimization done (n=156): time 5.149e-06/0.6249, allocations: 4 kB / 0.5775 GB, free: 12.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.01963/0.6445, allocations: 7.595 MB / 0.585 GB, free: 5.043 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005397/0.6451, allocations: 0.9824 MB / 0.5859 GB, free: 3.828 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4962/1.141, allocations: 35.88 MB / 0.6209 GB, free: 127.3 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000582/1.142, allocations: 62.39 kB / 0.621 GB, free: 127.3 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.01402/1.156, allocations: 7.533 MB / 0.6284 GB, free: 123.2 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009215/1.157, allocations: 0.5687 MB / 0.6289 GB, free: 123.1 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008546/1.158, allocations: 430.6 kB / 0.6293 GB, free: 123 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.401e-05/1.158, allocations: 304.1 kB / 0.6296 GB, free: 122.7 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003974/1.162, allocations: 1.967 MB / 0.6315 GB, free: 122.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004626/1.166, allocations: 2.851 MB / 0.6343 GB, free: 120.9 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007545/1.174, allocations: 4.212 MB / 0.6384 GB, free: 119.4 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.762e-05/1.174, allocations: 4.438 kB / 0.6384 GB, free: 119.4 MB / 0.5138 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01704/1.191, allocations: 6.101 MB / 0.6444 GB, free: 117.8 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 3.164e-05/1.191, allocations: 15.34 kB / 0.6444 GB, free: 117.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.16e-05/1.191, allocations: 16.38 kB / 0.6444 GB, free: 117.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001093/1.192, allocations: 373.1 kB / 0.6448 GB, free: 117.7 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002559/1.195, allocations: 0.6991 MB / 0.6455 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005163/1.2, allocations: 4.604 MB / 0.65 GB, free: 114.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008498/1.208, allocations: 0.6661 MB / 0.6506 GB, free: 114.7 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005655/1.209, allocations: 73.06 kB / 0.6507 GB, free: 114.7 MB / 0.5138 GB 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.01249/1.221, allocations: 8.142 MB / 0.6586 GB, free: 112.6 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005918/1.227, allocations: 1.481 MB / 0.6601 GB, free: 111.8 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01293/1.24, allocations: 6.013 MB / 0.666 GB, free: 109.3 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/1.24, allocations: 22.05 kB / 0.666 GB, free: 109.3 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/1.24, allocations: 0 / 0.666 GB, free: 109.3 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/1.24, allocations: 7.969 kB / 0.666 GB, free: 109.3 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03905/1.279, allocations: 18.58 MB / 0.6841 GB, free: 99.48 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.626e-06/1.279, allocations: 0 / 0.6841 GB, free: 99.48 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001742/1.281, allocations: 0.5593 MB / 0.6847 GB, free: 99.27 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000749/1.282, allocations: 300 kB / 0.685 GB, free: 99.15 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001313/1.282, allocations: 40.67 kB / 0.685 GB, free: 99.12 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003601/1.286, allocations: 4.036 MB / 0.6889 GB, free: 96.16 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/1.286, allocations: 0 / 0.6889 GB, free: 96.16 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01397/1.3, allocations: 7.699 MB / 0.6965 GB, free: 92.36 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0102/1.31, allocations: 4.258 MB / 0.7006 GB, free: 90.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005628/1.315, allocations: 51.61 kB / 0.7007 GB, free: 90.37 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00805/1.323, allocations: 0.6622 MB / 0.7013 GB, free: 90.06 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009893/1.324, allocations: 434.4 kB / 0.7017 GB, free: 89.85 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001829/1.325, allocations: 43.25 kB / 0.7018 GB, free: 89.84 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.04618/1.371, allocations: 25.67 MB / 0.7268 GB, free: 65.32 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.4e-07/1.371, allocations: 0 / 0.7268 GB, free: 65.32 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.009806/1.381, allocations: 1.844 MB / 0.7286 GB, free: 63.54 MB / 0.5138 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.001667/1.382, allocations: 436.2 kB / 0.7291 GB, free: 63.29 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.007258/1.389, allocations: 4.408 MB / 0.7334 GB, free: 58.88 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.229e-05/1.389, allocations: 5.219 kB / 0.7334 GB, free: 58.88 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003329/1.393, allocations: 2.21 MB / 0.7355 GB, free: 56.66 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01944/1.412, allocations: 2.093 MB / 0.7376 GB, free: 54.6 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06186/1.474, allocations: 38.63 MB / 0.7753 GB, free: 15.91 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01851/1.493, allocations: 10.15 MB / 0.7852 GB, free: 5.719 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005419/1.498, allocations: 0.6869 MB / 0.7859 GB, free: 5.031 MB / 0.5138 GB Notification: Performance of SimCode: time 2.344e-06/1.498, allocations: 0 / 0.7859 GB, free: 5.031 MB / 0.5138 GB Notification: Performance of Templates: time 0.8636/2.362, allocations: 307.8 MB / 1.086 GB, free: 196.8 MB / 0.5919 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: 22.181396048050374] 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.3705432629212737 2.378381103 1.954101383 Calling exit ...