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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=24000,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=24000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001432/0.001432, allocations: 117.7 kB / 18.51 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001561/0.001561, allocations: 209.8 kB / 19.46 MB, free: 3.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 230.2 MB / 250.4 MB, free: 9.391 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 59.89 kB / 367.8 MB, free: 7.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.265/0.2668, allocations: 53.31 MB / 421.1 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01254/0.2794, allocations: 10.14 MB / 431.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005886/0.2853, allocations: 3.641 MB / 434.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008011/0.2861, allocations: 19.94 kB / 434.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002714/0.2888, allocations: 1.194 MB / 436.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001588/0.2904, allocations: 0.6841 MB / 436.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.2915, allocations: 482.5 kB / 437.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008083/0.2996, allocations: 7.329 MB / 444.6 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004368/0.3039, allocations: 3.314 MB / 447.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00408/0.308, allocations: 2.859 MB / 450.7 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004725/0.3127, allocations: 2.985 MB / 453.7 MB, free: 7.703 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001717/0.3144, allocations: 0.6797 MB / 454.4 MB, free: 7.023 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001962/0.3164, allocations: 0.7226 MB / 455.1 MB, free: 6.301 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005582/0.322, allocations: 5.833 MB / 460.9 MB, free: 464 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01076/0.3328, allocations: 7.191 MB / 468.1 MB, free: 9.219 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02798/0.3607, allocations: 25.01 MB / 493.1 MB, free: 140 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.11e-05/0.3607, allocations: 3.984 kB / 493.2 MB, free: 136 kB / 398.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3607, allocations: 0 / 493.2 MB, free: 136 kB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007679/0.3615, allocations: 0 / 493.2 MB, free: 136 kB / 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.05029/0.4118, allocations: 19.23 MB / 0.5004 GB, free: 12.73 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.4119, allocations: 12.03 kB / 0.5004 GB, free: 12.72 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006266/0.4181, allocations: 1.635 MB / 0.502 GB, free: 11.08 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04318/0.4613, allocations: 17.93 MB / 0.5195 GB, free: 9.082 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000521/0.4618, allocations: 332.2 kB / 0.5198 GB, free: 8.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0011/0.4629, allocations: 320 kB / 0.5201 GB, free: 8.438 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01338/0.4763, allocations: 6.503 MB / 0.5265 GB, free: 1.707 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.778e-05/0.4764, allocations: 0 / 0.5265 GB, free: 1.707 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004801/0.4768, allocations: 148 kB / 0.5266 GB, free: 1.562 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.009e-05/0.4769, allocations: 84 kB / 0.5267 GB, free: 1.48 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01004/0.4869, allocations: 5.123 MB / 0.5317 GB, free: 12.34 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4857/0.9726, allocations: 33.45 MB / 0.5644 GB, free: 85.17 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007006/0.9796, allocations: 4.177 MB / 0.5684 GB, free: 83.27 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00361/0.9832, allocations: 2.473 MB / 0.5708 GB, free: 81.4 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.892e-05/0.9833, allocations: 21.25 kB / 0.5709 GB, free: 81.38 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.8e-05/0.9834, allocations: 67.88 kB / 0.5709 GB, free: 81.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 4.408e-06/0.9834, allocations: 0 / 0.5709 GB, free: 81.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01709/1, allocations: 7.593 MB / 0.5783 GB, free: 74.51 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002148/1.001, allocations: 0.9863 MB / 0.5793 GB, free: 73.29 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06371/1.064, allocations: 35.88 MB / 0.6144 GB, free: 37.51 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005093/1.065, allocations: 65.7 kB / 0.6144 GB, free: 37.44 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01175/1.077, allocations: 7.542 MB / 0.6218 GB, free: 30.12 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007188/1.077, allocations: 0.5588 MB / 0.6223 GB, free: 29.63 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007021/1.078, allocations: 435.4 kB / 0.6227 GB, free: 29.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.211e-05/1.078, allocations: 301.1 kB / 0.623 GB, free: 28.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003116/1.081, allocations: 1.963 MB / 0.6249 GB, free: 26.93 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003562/1.085, allocations: 2.861 MB / 0.6277 GB, free: 23.75 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006096/1.091, allocations: 4.203 MB / 0.6318 GB, free: 19.34 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.221e-05/1.091, allocations: 4 kB / 0.6318 GB, free: 19.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01504/1.106, allocations: 6.103 MB / 0.6378 GB, free: 13.21 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/1.106, allocations: 12 kB / 0.6378 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/1.106, allocations: 16.12 kB / 0.6378 GB, free: 13.19 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000941/1.107, allocations: 371.1 kB / 0.6382 GB, free: 12.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002296/1.109, allocations: 0.6941 MB / 0.6389 GB, free: 12.13 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004306/1.114, allocations: 4.612 MB / 0.6434 GB, free: 7.398 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007677/1.121, allocations: 0.657 MB / 0.644 GB, free: 6.801 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004437/1.122, allocations: 79.98 kB / 0.6441 GB, free: 6.723 MB / 462.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.01072/1.132, allocations: 8.145 MB / 0.652 GB, free: 14.58 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006115/1.139, allocations: 1.478 MB / 0.6535 GB, free: 13.09 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01483/1.153, allocations: 6.022 MB / 0.6594 GB, free: 7.062 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.969e-05/1.153, allocations: 19.98 kB / 0.6594 GB, free: 7.043 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/1.153, allocations: 0 / 0.6594 GB, free: 7.043 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.608e-05/1.153, allocations: 3.984 kB / 0.6594 GB, free: 7.039 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04757/1.201, allocations: 18.59 MB / 0.6775 GB, free: 4.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/1.201, allocations: 0 / 0.6775 GB, free: 4.43 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002187/1.203, allocations: 0.5686 MB / 0.6781 GB, free: 3.863 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008801/1.204, allocations: 295.5 kB / 0.6784 GB, free: 3.574 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00018/1.204, allocations: 43.98 kB / 0.6784 GB, free: 3.531 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005348/1.21, allocations: 4.031 MB / 0.6824 GB, free: 15.38 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.21, allocations: 8 kB / 0.6824 GB, free: 15.38 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01779/1.227, allocations: 7.7 MB / 0.6899 GB, free: 7.637 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01181/1.239, allocations: 4.265 MB / 0.694 GB, free: 3.363 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004725/1.244, allocations: 44 kB / 0.6941 GB, free: 3.32 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007326/1.251, allocations: 0.659 MB / 0.6947 GB, free: 2.66 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001128/1.252, allocations: 432.7 kB / 0.6951 GB, free: 2.234 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001806/1.253, allocations: 47.98 kB / 0.6952 GB, free: 2.188 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.0578/1.31, allocations: 25.67 MB / 0.7203 GB, free: 8.59 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.21e-07/1.31, allocations: 4 kB / 0.7203 GB, free: 8.586 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01006/1.32, allocations: 1.847 MB / 0.7221 GB, free: 6.809 MB / 0.5294 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.001762/1.322, allocations: 415.3 kB / 0.7225 GB, free: 6.527 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009546/1.332, allocations: 4.403 MB / 0.7268 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/1.332, allocations: 8.281 kB / 0.7268 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004495/1.336, allocations: 2.21 MB / 0.7289 GB, free: 15.88 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01869/1.355, allocations: 2.106 MB / 0.731 GB, free: 13.8 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.313/1.668, allocations: 38.61 MB / 0.7687 GB, free: 190.9 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02159/1.689, allocations: 10.16 MB / 0.7786 GB, free: 188.1 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005812/1.695, allocations: 0.6818 MB / 0.7793 GB, free: 188.1 MB / 0.5607 GB Notification: Performance of SimCode: time 1.222e-06/1.695, allocations: 3.375 kB / 0.7793 GB, free: 188.1 MB / 0.5607 GB Notification: Performance of Templates: time 0.5918/2.287, allocations: 307.8 MB / 1.08 GB, free: 96.42 MB / 0.5607 GB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile (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)