Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001577/0.001576, allocations: 102.7 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001772/0.001772, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001014/0.001015, allocations: 47.45 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.105, allocations: 49.44 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.01265/0.1177, allocations: 11.22 MB / 361.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006074/0.1238, allocations: 3.774 MB / 365.2 MB, free: 5.262 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009602/0.1248, allocations: 31.88 kB / 365.2 MB, free: 5.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2267/0.3516, allocations: 5.785 MB / 371 MB, free: 17.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002665/0.3543, allocations: 482.2 kB / 371.4 MB, free: 17.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001856/0.3562, allocations: 0.5105 MB / 372 MB, free: 17.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02563/0.3819, allocations: 21.57 MB / 393.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00827/0.3902, allocations: 9.565 MB / 403.1 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05518/0.4454, allocations: 49.81 MB / 452.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005901/0.4513, allocations: 3.892 MB / 456.8 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00288/0.4543, allocations: 0.9609 MB / 457.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003658/0.4579, allocations: 1.023 MB / 458.8 MB, free: 9.223 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004519/0.4625, allocations: 3.852 MB / 462.6 MB, free: 5.371 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01075/0.4733, allocations: 5.17 MB / 467.8 MB, free: 184 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01986/0.4932, allocations: 17.42 MB / 485.2 MB, free: 15.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.4932, allocations: 0 / 485.2 MB, free: 15.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4932, allocations: 3.938 kB / 485.2 MB, free: 15.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000572/0.4938, allocations: 4 kB / 485.2 MB, free: 15.02 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: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.03537/0.5292, allocations: 12.41 MB / 497.6 MB, free: 2.527 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.5293, allocations: 12.03 kB / 497.7 MB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002267/0.5316, allocations: 0.6081 MB / 498.3 MB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003269/0.5348, allocations: 1.044 MB / 499.3 MB, free: 0.8477 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02102/0.5559, allocations: 11.02 MB / 0.4984 GB, free: 5.941 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002021/0.5579, allocations: 0.9794 MB / 0.4993 GB, free: 4.918 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001916/0.5599, allocations: 395.9 kB / 0.4997 GB, free: 4.531 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02104/0.5809, allocations: 8.542 MB / 0.508 GB, free: 11.75 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.88e-05/0.5811, allocations: 7.938 kB / 0.5081 GB, free: 11.74 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006869/0.5818, allocations: 176 kB / 0.5082 GB, free: 11.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.094e-05/0.5818, allocations: 100 kB / 0.5083 GB, free: 11.47 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01372/0.5956, allocations: 7.127 MB / 0.5153 GB, free: 4.34 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2346/0.8302, allocations: 28.77 MB / 0.5434 GB, free: 120.7 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00863/0.8388, allocations: 6.079 MB / 0.5493 GB, free: 117.8 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005496/0.8444, allocations: 4.3 MB / 0.5535 GB, free: 115.9 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001112/0.8445, allocations: 22 kB / 0.5535 GB, free: 115.9 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.556e-05/0.8446, allocations: 81 kB / 0.5536 GB, free: 115.8 MB / 430.1 MB Notification: Performance of pre-optimization done (n=231): time 4.488e-06/0.8446, allocations: 0 / 0.5536 GB, free: 115.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.01735/0.8619, allocations: 9.803 MB / 0.5632 GB, free: 106.3 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000213/0.8622, allocations: 1.296 MB / 0.5644 GB, free: 104.7 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02457/0.8868, allocations: 14.73 MB / 0.5788 GB, free: 90.01 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001123/0.888, allocations: 77.7 kB / 0.5789 GB, free: 89.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.007832/0.8958, allocations: 4.408 MB / 0.5832 GB, free: 85.63 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0016/0.8975, allocations: 0.8188 MB / 0.584 GB, free: 84.82 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003661/0.9012, allocations: 0.6111 MB / 0.5846 GB, free: 84.2 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.78e-05/0.9013, allocations: 301.1 kB / 0.5849 GB, free: 83.9 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008224/0.9095, allocations: 2.96 MB / 0.5878 GB, free: 80.94 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009603/0.9191, allocations: 4.016 MB / 0.5917 GB, free: 76.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01637/0.9356, allocations: 6.092 MB / 0.5977 GB, free: 70.22 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.054e-05/0.9356, allocations: 5.406 kB / 0.5977 GB, free: 70.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.02425/0.9599, allocations: 7.675 MB / 0.6052 GB, free: 62.48 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.576e-05/0.96, allocations: 12 kB / 0.6052 GB, free: 62.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.822e-05/0.96, allocations: 20 kB / 0.6052 GB, free: 62.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002112/0.9622, allocations: 0.5472 MB / 0.6057 GB, free: 61.89 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004577/0.9668, allocations: 1.011 MB / 0.6067 GB, free: 60.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006121/0.9729, allocations: 6.381 MB / 0.6129 GB, free: 54.36 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00513/0.9781, allocations: 0.8322 MB / 0.6138 GB, free: 53.53 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006867/0.9788, allocations: 99.98 kB / 0.6138 GB, free: 53.43 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (308): * Single equations (assignments): 307 * 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,38)} Notification: Performance of prepare postOptimizeDAE: time 0.007247/0.986, allocations: 4.779 MB / 0.6185 GB, free: 48.64 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00261/0.9887, allocations: 0.8681 MB / 0.6194 GB, free: 47.76 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00369/0.9924, allocations: 1.301 MB / 0.6206 GB, free: 46.45 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.9924, allocations: 27.17 kB / 0.6207 GB, free: 46.43 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.9924, allocations: 0 / 0.6207 GB, free: 46.43 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.079e-05/0.9925, allocations: 7.969 kB / 0.6207 GB, free: 46.42 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03108/1.024, allocations: 15.93 MB / 0.6362 GB, free: 30.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/1.024, allocations: 0 / 0.6362 GB, free: 30.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002796/1.026, allocations: 0.846 MB / 0.637 GB, free: 29.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001027/1.027, allocations: 465.1 kB / 0.6375 GB, free: 29.15 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002435/1.028, allocations: 75.97 kB / 0.6376 GB, free: 29.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004827/1.033, allocations: 5.496 MB / 0.6429 GB, free: 23.44 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.033, allocations: 0 / 0.6429 GB, free: 23.44 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01429/1.047, allocations: 9.812 MB / 0.6525 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004977/1.052, allocations: 2.231 MB / 0.6547 GB, free: 11.31 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001939/1.054, allocations: 79.97 kB / 0.6548 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004279/1.058, allocations: 0.8584 MB / 0.6556 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007977/1.059, allocations: 449.4 kB / 0.656 GB, free: 9.934 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001874/1.059, allocations: 60 kB / 0.6561 GB, free: 9.875 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.01537/1.074, allocations: 10.51 MB / 0.6664 GB, free: 15.39 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.8e-07/1.075, allocations: 0 / 0.6664 GB, free: 15.39 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008759/1.083, allocations: 1.553 MB / 0.6679 GB, free: 13.84 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,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 (201): * Single equations (assignments): 200 * 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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02125/1.105, allocations: 10.89 MB / 0.6785 GB, free: 3.102 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02365/1.128, allocations: 12.69 MB / 0.6909 GB, free: 6.406 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.624e-05/1.128, allocations: 6.625 kB / 0.6909 GB, free: 6.402 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006276/1.135, allocations: 3.384 MB / 0.6942 GB, free: 3.004 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01461/1.149, allocations: 2.207 MB / 0.6964 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4148/1.564, allocations: 153.7 MB / 0.8465 GB, free: 21.53 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01364/1.578, allocations: 6.744 MB / 0.8531 GB, free: 14.76 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.01399/1.592, allocations: 3.355 MB / 0.8563 GB, free: 11.41 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01044/1.602, allocations: 3.639 MB / 0.8599 GB, free: 7.773 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/1.602, allocations: 0 / 0.8599 GB, free: 7.773 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7084/2.311, allocations: 216.8 MB / 1.072 GB, free: 129.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.26/17.57, allocations: 3.656 kB / 1.072 GB, free: 129.7 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1)