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.001511/0.001511, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001661/0.001661, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.429/1.429, allocations: 230.6 MB / 258.3 MB, free: 8.004 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.001511/0.001511, allocations: 51.91 kB / 379 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2365, allocations: 53.36 MB / 432.4 MB, free: 7.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01253/0.249, allocations: 10.17 MB / 442.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005973/0.255, allocations: 3.653 MB / 446.2 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000764/0.2557, allocations: 35.81 kB / 446.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002645/0.2584, allocations: 1.198 MB / 447.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001476/0.2599, allocations: 0.688 MB / 448.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.2609, allocations: 0.4947 MB / 448.6 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008462/0.2694, allocations: 7.326 MB / 456 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003255/0.2727, allocations: 2.092 MB / 458 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00415/0.2768, allocations: 2.925 MB / 461 MB, free: 10.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004813/0.2816, allocations: 2.985 MB / 464 MB, free: 7.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001747/0.2834, allocations: 0.6797 MB / 464.6 MB, free: 6.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002029/0.2854, allocations: 0.7187 MB / 465.4 MB, free: 5.941 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005732/0.2911, allocations: 5.833 MB / 471.2 MB, free: 96 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01019/0.3013, allocations: 7.199 MB / 478.4 MB, free: 8.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02644/0.3278, allocations: 25.01 MB / 0.4916 GB, free: 15.76 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.3278, allocations: 0 / 0.4916 GB, free: 15.76 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3278, allocations: 0 / 0.4916 GB, free: 15.76 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006809/0.3285, allocations: 0 / 0.4916 GB, free: 15.76 MB / 414.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.04658/0.375, allocations: 19.33 MB / 0.5105 GB, free: 12.29 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.3751, allocations: 8.031 kB / 0.5105 GB, free: 12.28 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005328/0.3804, allocations: 1.642 MB / 0.5121 GB, free: 10.63 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04062/0.421, allocations: 18.1 MB / 0.5298 GB, free: 8.449 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004523/0.4215, allocations: 357.9 kB / 0.5301 GB, free: 8.086 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000768/0.4223, allocations: 320 kB / 0.5304 GB, free: 7.773 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0116/0.4339, allocations: 6.503 MB / 0.5368 GB, free: 1.047 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.09e-05/0.4339, allocations: 3.938 kB / 0.5368 GB, free: 1.043 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004328/0.4343, allocations: 144 kB / 0.5369 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.099e-05/0.4344, allocations: 80 kB / 0.537 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3918/0.8263, allocations: 5.123 MB / 0.542 GB, free: 80.22 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05503/0.8813, allocations: 33.56 MB / 0.5748 GB, free: 55.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00613/0.8874, allocations: 4.18 MB / 0.5788 GB, free: 51.81 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003349/0.8908, allocations: 2.467 MB / 0.5812 GB, free: 49.36 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001059/0.8909, allocations: 25.3 kB / 0.5813 GB, free: 49.33 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.533e-05/0.8909, allocations: 67.81 kB / 0.5813 GB, free: 49.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 4.097e-06/0.8909, allocations: 0 / 0.5813 GB, free: 49.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01561/0.9065, allocations: 7.514 MB / 0.5887 GB, free: 42.18 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001637/0.9067, allocations: 0.9824 MB / 0.5896 GB, free: 40.97 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06176/0.9685, allocations: 35.89 MB / 0.6247 GB, free: 5.172 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004825/0.969, allocations: 61.7 kB / 0.6247 GB, free: 5.105 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01218/0.9811, allocations: 7.539 MB / 0.6321 GB, free: 13.75 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009946/0.9821, allocations: 0.5764 MB / 0.6327 GB, free: 13.23 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009488/0.9831, allocations: 419.4 kB / 0.6331 GB, free: 12.81 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.9832, allocations: 309.1 kB / 0.6334 GB, free: 12.51 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003687/0.9869, allocations: 1.971 MB / 0.6353 GB, free: 10.54 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004623/0.9915, allocations: 2.854 MB / 0.6381 GB, free: 7.359 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007767/0.9993, allocations: 4.212 MB / 0.6422 GB, free: 2.938 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.916e-05/0.9993, allocations: 5.594 kB / 0.6422 GB, free: 2.934 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01707/1.016, allocations: 6.099 MB / 0.6481 GB, free: 12.81 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.915e-05/1.016, allocations: 12 kB / 0.6482 GB, free: 12.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.964e-05/1.016, allocations: 16 kB / 0.6482 GB, free: 12.79 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/1.018, allocations: 366.8 kB / 0.6485 GB, free: 12.43 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002572/1.02, allocations: 0.6941 MB / 0.6492 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00604/1.026, allocations: 4.511 MB / 0.6536 GB, free: 7.133 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008136/1.034, allocations: 0.6649 MB / 0.6543 GB, free: 6.527 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005266/1.035, allocations: 76 kB / 0.6543 GB, free: 6.453 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.01379/1.049, allocations: 8.141 MB / 0.6623 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005707/1.054, allocations: 1.474 MB / 0.6637 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01387/1.068, allocations: 6.024 MB / 0.6696 GB, free: 6.781 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.556e-05/1.068, allocations: 12.09 kB / 0.6696 GB, free: 6.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/1.068, allocations: 7.938 kB / 0.6696 GB, free: 6.762 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.909e-05/1.068, allocations: 15.95 kB / 0.6696 GB, free: 6.746 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04311/1.111, allocations: 18.8 MB / 0.688 GB, free: 3.887 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/1.111, allocations: 0 / 0.688 GB, free: 3.887 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001995/1.113, allocations: 0.5677 MB / 0.6885 GB, free: 3.32 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008403/1.114, allocations: 294.3 kB / 0.6888 GB, free: 3.031 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001354/1.114, allocations: 39.98 kB / 0.6889 GB, free: 2.992 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005008/1.119, allocations: 3.93 MB / 0.6927 GB, free: 14.96 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/1.119, allocations: 0 / 0.6927 GB, free: 14.96 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01672/1.136, allocations: 7.7 MB / 0.7002 GB, free: 7.219 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01322/1.149, allocations: 4.395 MB / 0.7045 GB, free: 2.836 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00494/1.154, allocations: 51.98 kB / 0.7046 GB, free: 2.785 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007414/1.162, allocations: 0.6552 MB / 0.7052 GB, free: 2.129 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001175/1.163, allocations: 448.6 kB / 0.7056 GB, free: 1.691 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002061/1.163, allocations: 40 kB / 0.7057 GB, free: 1.652 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.05828/1.221, allocations: 25.67 MB / 0.7307 GB, free: 8.051 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.2e-07/1.221, allocations: 0 / 0.7307 GB, free: 8.051 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01047/1.232, allocations: 1.846 MB / 0.7325 GB, free: 6.27 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.001772/1.234, allocations: 439.1 kB / 0.733 GB, free: 5.98 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008955/1.242, allocations: 4.401 MB / 0.7373 GB, free: 1.57 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.235e-05/1.243, allocations: 5.156 kB / 0.7373 GB, free: 1.566 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004281/1.247, allocations: 2.218 MB / 0.7394 GB, free: 15.33 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01709/1.264, allocations: 2.107 MB / 0.7415 GB, free: 13.25 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2863/1.55, allocations: 38.7 MB / 0.7793 GB, free: 186.8 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01829/1.568, allocations: 10.15 MB / 0.7892 GB, free: 181 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005001/1.573, allocations: 0.6791 MB / 0.7899 GB, free: 180.3 MB / 0.5607 GB Notification: Performance of SimCode: time 2.725e-06/1.573, allocations: 6.719 kB / 0.7899 GB, free: 180.3 MB / 0.5607 GB Notification: Performance of Templates: time 0.5693/2.143, allocations: 307.9 MB / 1.091 GB, free: 53.23 MB / 0.5607 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: 20.65524178906344] 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.152535408968106 2.16077865 1.830550559 Calling exit ...