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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001338/0.001338, allocations: 110.2 kB / 20.37 MB, free: 2.102 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001518/0.001518, allocations: 215.5 kB / 23.54 MB, free: 5.402 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 230.2 MB / 256.7 MB, free: 8.633 MB / 206.1 MB [Timeout remaining time 88] 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.001771/0.001771, allocations: 67.89 kB / 376.9 MB, free: 3.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2722, allocations: 53.31 MB / 430.2 MB, free: 7.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.0122/0.2844, allocations: 10.14 MB / 440.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006194/0.2906, allocations: 3.637 MB / 444 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009582/0.2916, allocations: 23.94 kB / 444 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003041/0.2946, allocations: 1.19 MB / 445.2 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001916/0.2965, allocations: 0.688 MB / 445.9 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.2978, allocations: 494.6 kB / 446.3 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009188/0.307, allocations: 7.32 MB / 453.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004632/0.3117, allocations: 3.314 MB / 457 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004551/0.3162, allocations: 2.855 MB / 459.8 MB, free: 9.691 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005601/0.3218, allocations: 2.993 MB / 462.8 MB, free: 6.688 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002441/0.3242, allocations: 0.6797 MB / 463.5 MB, free: 6.008 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002903/0.3272, allocations: 0.7304 MB / 464.2 MB, free: 5.277 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006441/0.3336, allocations: 5.833 MB / 470.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01257/0.3462, allocations: 7.183 MB / 477.3 MB, free: 8.207 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03087/0.377, allocations: 25.01 MB / 0.4905 GB, free: 15.11 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.377, allocations: 0 / 0.4905 GB, free: 15.11 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.377, allocations: 0 / 0.4905 GB, free: 15.11 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007919/0.3778, allocations: 0 / 0.4905 GB, free: 15.11 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.05483/0.4327, allocations: 19.24 MB / 0.5093 GB, free: 11.71 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.4327, allocations: 12.03 kB / 0.5093 GB, free: 11.7 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006288/0.439, allocations: 1.635 MB / 0.5109 GB, free: 10.06 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04102/0.48, allocations: 17.91 MB / 0.5284 GB, free: 8.074 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005124/0.4805, allocations: 340.2 kB / 0.5287 GB, free: 7.734 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001058/0.4816, allocations: 331.9 kB / 0.529 GB, free: 7.41 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0128/0.4944, allocations: 6.495 MB / 0.5354 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.631e-05/0.4944, allocations: 0 / 0.5354 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004719/0.4949, allocations: 148 kB / 0.5355 GB, free: 0.543 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.692e-05/0.495, allocations: 83.94 kB / 0.5356 GB, free: 472 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4086/0.9036, allocations: 5.119 MB / 0.5406 GB, free: 81.19 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07331/0.9769, allocations: 33.45 MB / 0.5733 GB, free: 56.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006306/0.9832, allocations: 4.176 MB / 0.5773 GB, free: 52 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003481/0.9867, allocations: 2.475 MB / 0.5798 GB, free: 49.53 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.095e-05/0.9868, allocations: 17.31 kB / 0.5798 GB, free: 49.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.213e-05/0.9868, allocations: 75.81 kB / 0.5798 GB, free: 49.43 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 4.138e-06/0.9868, allocations: 0 / 0.5798 GB, free: 49.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01547/1.002, allocations: 7.588 MB / 0.5873 GB, free: 42.26 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001854/1.002, allocations: 0.9824 MB / 0.5882 GB, free: 41.05 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0625/1.065, allocations: 35.88 MB / 0.6233 GB, free: 5.254 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004418/1.065, allocations: 61.7 kB / 0.6233 GB, free: 5.188 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01547/1.081, allocations: 7.553 MB / 0.6307 GB, free: 13.82 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001173/1.082, allocations: 0.5686 MB / 0.6312 GB, free: 13.31 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001242/1.083, allocations: 419.4 kB / 0.6316 GB, free: 12.89 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/1.083, allocations: 313.1 kB / 0.6319 GB, free: 12.58 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005934/1.089, allocations: 1.963 MB / 0.6339 GB, free: 10.62 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006099/1.096, allocations: 2.861 MB / 0.6367 GB, free: 7.438 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00803/1.104, allocations: 4.203 MB / 0.6408 GB, free: 3.027 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.926e-05/1.104, allocations: 4 kB / 0.6408 GB, free: 3.023 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.0169/1.12, allocations: 6.1 MB / 0.6467 GB, free: 12.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.285e-05/1.121, allocations: 12 kB / 0.6467 GB, free: 12.89 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.452e-05/1.121, allocations: 18.91 kB / 0.6467 GB, free: 12.88 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/1.122, allocations: 367.3 kB / 0.6471 GB, free: 12.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002624/1.124, allocations: 0.702 MB / 0.6478 GB, free: 11.81 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006353/1.131, allocations: 4.611 MB / 0.6523 GB, free: 7.078 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007526/1.138, allocations: 0.6603 MB / 0.6529 GB, free: 6.477 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004597/1.139, allocations: 76 kB / 0.653 GB, free: 6.402 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.01406/1.153, allocations: 8.149 MB / 0.661 GB, free: 14.25 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006477/1.159, allocations: 1.474 MB / 0.6624 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01609/1.175, allocations: 6.02 MB / 0.6683 GB, free: 6.73 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-05/1.175, allocations: 12 kB / 0.6683 GB, free: 6.719 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/1.175, allocations: 3.938 kB / 0.6683 GB, free: 6.715 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-05/1.175, allocations: 11.97 kB / 0.6683 GB, free: 6.703 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04813/1.224, allocations: 18.57 MB / 0.6864 GB, free: 4.07 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/1.224, allocations: 0 / 0.6864 GB, free: 4.07 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002113/1.226, allocations: 0.5694 MB / 0.687 GB, free: 3.5 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009469/1.227, allocations: 296.2 kB / 0.6873 GB, free: 3.211 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002482/1.227, allocations: 43.98 kB / 0.6873 GB, free: 3.168 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005463/1.232, allocations: 4.037 MB / 0.6913 GB, free: 15 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/1.232, allocations: 0 / 0.6913 GB, free: 15 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01873/1.251, allocations: 7.7 MB / 0.6988 GB, free: 7.258 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0122/1.263, allocations: 4.265 MB / 0.703 GB, free: 2.984 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004804/1.268, allocations: 48 kB / 0.703 GB, free: 2.938 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007397/1.275, allocations: 0.6552 MB / 0.7036 GB, free: 2.281 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001176/1.277, allocations: 432.7 kB / 0.7041 GB, free: 1.855 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001836/1.277, allocations: 40 kB / 0.7041 GB, free: 1.816 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.06118/1.338, allocations: 25.68 MB / 0.7292 GB, free: 8.215 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.91e-07/1.338, allocations: 4 kB / 0.7292 GB, free: 8.211 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01064/1.349, allocations: 1.846 MB / 0.731 GB, free: 6.434 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.00179/1.35, allocations: 415.4 kB / 0.7314 GB, free: 6.145 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009735/1.36, allocations: 4.403 MB / 0.7357 GB, free: 1.734 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/1.36, allocations: 5.219 kB / 0.7357 GB, free: 1.73 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004574/1.365, allocations: 2.225 MB / 0.7378 GB, free: 15.49 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01963/1.384, allocations: 2.108 MB / 0.7399 GB, free: 13.4 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2959/1.68, allocations: 38.69 MB / 0.7777 GB, free: 187.1 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01729/1.698, allocations: 10.16 MB / 0.7876 GB, free: 181.5 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004901/1.702, allocations: 0.683 MB / 0.7883 GB, free: 180.9 MB / 0.5607 GB Notification: Performance of SimCode: time 1.352e-06/1.702, allocations: 3.562 kB / 0.7883 GB, free: 180.9 MB / 0.5607 GB Notification: Performance of Templates: time 0.6009/2.303, allocations: 307.8 MB / 1.089 GB, free: 53.64 MB / 0.5607 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]