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.001697/0.001697, allocations: 115 kB / 18.46 MB, free: 4.621 MB / 14.72 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.002021/0.002021, allocations: 207.3 kB / 21.41 MB, free: 1.668 MB / 14.72 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 1.476/1.476, allocations: 230.6 MB / 254.8 MB, free: 15.11 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+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 0.0015/0.0015, allocations: 47.92 kB / 374.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1132, allocations: 53.34 MB / 427.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.2113/0.3244, allocations: 10.14 MB / 437.6 MB, free: 6.234 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005615/0.3301, allocations: 3.64 MB / 441.3 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001285/0.3313, allocations: 31.75 kB / 441.3 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003198/0.3345, allocations: 1.192 MB / 442.5 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002339/0.3369, allocations: 0.6837 MB / 443.2 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001333/0.3382, allocations: 479.8 kB / 443.6 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008751/0.347, allocations: 7.33 MB / 451 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004707/0.3517, allocations: 3.311 MB / 454.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00575/0.3574, allocations: 2.928 MB / 457.2 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00699/0.3644, allocations: 2.982 MB / 460.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002787/0.3672, allocations: 0.6806 MB / 460.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003612/0.3708, allocations: 0.7177 MB / 461.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006848/0.3777, allocations: 5.848 MB / 467.4 MB, free: 8.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01375/0.3914, allocations: 7.188 MB / 474.6 MB, free: 1.598 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03209/0.4235, allocations: 25.01 MB / 499.6 MB, free: 8.508 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.245e-06/0.4235, allocations: 3.984 kB / 499.6 MB, free: 8.504 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4235, allocations: 0 / 499.6 MB, free: 8.504 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000804/0.4243, allocations: 0 / 499.6 MB, free: 8.504 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.05425/0.4786, allocations: 19.24 MB / 0.5067 GB, free: 5.105 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.4786, allocations: 8.031 kB / 0.5067 GB, free: 5.098 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006811/0.4854, allocations: 1.635 MB / 0.5083 GB, free: 3.453 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04488/0.5303, allocations: 17.92 MB / 0.5258 GB, free: 1.461 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005341/0.5308, allocations: 336.2 kB / 0.5261 GB, free: 1.125 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001259/0.5321, allocations: 328 kB / 0.5264 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01367/0.5458, allocations: 6.491 MB / 0.5328 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.872e-05/0.5458, allocations: 8.453 kB / 0.5328 GB, free: 10.08 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004827/0.5463, allocations: 148 kB / 0.5329 GB, free: 9.934 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-05/0.5464, allocations: 80 kB / 0.533 GB, free: 9.855 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01084/0.5572, allocations: 5.126 MB / 0.538 GB, free: 4.719 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07458/0.6318, allocations: 33.45 MB / 0.5707 GB, free: 2.973 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008583/0.6404, allocations: 4.183 MB / 0.5748 GB, free: 14.87 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004702/0.6451, allocations: 2.478 MB / 0.5772 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001135/0.6452, allocations: 21.25 kB / 0.5772 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.279e-05/0.6453, allocations: 63.88 kB / 0.5773 GB, free: 12.3 MB / 494.1 MB Notification: Performance of pre-optimization done (n=156): time 3.607e-06/0.6453, allocations: 0 / 0.5773 GB, free: 12.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.01983/0.6651, allocations: 7.591 MB / 0.5847 GB, free: 4.664 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005864/0.6657, allocations: 0.9941 MB / 0.5856 GB, free: 3.438 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.479/1.145, allocations: 35.87 MB / 0.6207 GB, free: 127.4 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0005837/1.145, allocations: 62.89 kB / 0.6207 GB, free: 127.4 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.01411/1.159, allocations: 7.536 MB / 0.6281 GB, free: 123.3 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008653/1.16, allocations: 0.5691 MB / 0.6287 GB, free: 123.2 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000897/1.161, allocations: 430.6 kB / 0.6291 GB, free: 123 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.681e-05/1.161, allocations: 301.1 kB / 0.6293 GB, free: 122.7 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003887/1.165, allocations: 1.968 MB / 0.6313 GB, free: 122.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004592/1.17, allocations: 2.856 MB / 0.6341 GB, free: 121 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007781/1.177, allocations: 4.207 MB / 0.6382 GB, free: 119.5 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.39e-05/1.177, allocations: 8.062 kB / 0.6382 GB, free: 119.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01721/1.195, allocations: 6.101 MB / 0.6441 GB, free: 117.8 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 3.683e-05/1.195, allocations: 11.62 kB / 0.6441 GB, free: 117.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.422e-05/1.195, allocations: 17.56 kB / 0.6442 GB, free: 117.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001094/1.196, allocations: 369.1 kB / 0.6445 GB, free: 117.7 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002446/1.198, allocations: 0.6966 MB / 0.6452 GB, free: 117.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005137/1.203, allocations: 4.605 MB / 0.6497 GB, free: 114.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007249/1.211, allocations: 0.6604 MB / 0.6503 GB, free: 114.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000531/1.211, allocations: 82.42 kB / 0.6504 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.01103/1.222, allocations: 8.137 MB / 0.6584 GB, free: 112.7 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004994/1.227, allocations: 1.48 MB / 0.6598 GB, free: 111.8 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01339/1.241, allocations: 6.025 MB / 0.6657 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/1.241, allocations: 15.5 kB / 0.6657 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/1.241, allocations: 0 / 0.6657 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.691e-05/1.241, allocations: 7.969 kB / 0.6657 GB, free: 109.3 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04205/1.283, allocations: 18.58 MB / 0.6839 GB, free: 99.48 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.198e-06/1.283, allocations: 7.984 kB / 0.6839 GB, free: 99.48 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001919/1.285, allocations: 0.5596 MB / 0.6844 GB, free: 99.28 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008082/1.285, allocations: 292.2 kB / 0.6847 GB, free: 99.16 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002042/1.286, allocations: 39.8 kB / 0.6847 GB, free: 99.13 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003784/1.289, allocations: 4.042 MB / 0.6887 GB, free: 96.17 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/1.289, allocations: 0 / 0.6887 GB, free: 96.17 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01405/1.303, allocations: 7.697 MB / 0.6962 GB, free: 92.37 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009542/1.313, allocations: 4.267 MB / 0.7004 GB, free: 90.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004548/1.318, allocations: 47.67 kB / 0.7004 GB, free: 90.38 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007131/1.325, allocations: 0.6567 MB / 0.701 GB, free: 90.07 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009906/1.326, allocations: 431.6 kB / 0.7015 GB, free: 89.86 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002569/1.326, allocations: 43.36 kB / 0.7015 GB, free: 89.84 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.04702/1.373, allocations: 25.68 MB / 0.7266 GB, free: 64.99 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.11e-07/1.373, allocations: 0 / 0.7266 GB, free: 64.99 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008934/1.382, allocations: 1.846 MB / 0.7284 GB, free: 63.21 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.001649/1.384, allocations: 438.7 kB / 0.7288 GB, free: 62.97 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.007634/1.391, allocations: 4.401 MB / 0.7331 GB, free: 58.56 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/1.391, allocations: 5.906 kB / 0.7331 GB, free: 58.56 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003414/1.395, allocations: 2.206 MB / 0.7353 GB, free: 56.34 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01846/1.413, allocations: 2.106 MB / 0.7373 GB, free: 54.27 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06129/1.474, allocations: 38.61 MB / 0.775 GB, free: 15.6 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01727/1.492, allocations: 10.16 MB / 0.7849 GB, free: 5.406 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00537/1.497, allocations: 0.683 MB / 0.7856 GB, free: 4.723 MB / 0.5138 GB Notification: Performance of SimCode: time 1.964e-06/1.497, allocations: 4 kB / 0.7856 GB, free: 4.719 MB / 0.5138 GB Notification: Performance of Templates: time 0.8794/2.376, allocations: 307.9 MB / 1.086 GB, free: 196.5 MB / 0.5919 GB " [Timeout remaining time 658] 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: 22.65364070297801] 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.3857803549908567 2.39457092 1.9684089 Calling exit ...