Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.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_Stack,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",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.001611/0.001611, allocations: 104.5 kB / 16.92 MB, free: 6.199 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.001779/0.001779, allocations: 191.4 kB / 17.85 MB, free: 5.301 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.349/1.349, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 44.73 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09969/0.101, allocations: 49.45 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01254/0.1136, allocations: 10.04 MB / 360.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007078/0.1208, allocations: 3.466 MB / 363.7 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001655/0.1225, allocations: 19.94 kB / 363.7 MB, free: 6.711 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003106/0.1256, allocations: 1.175 MB / 364.9 MB, free: 5.531 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002145/0.1278, allocations: 0.6373 MB / 365.5 MB, free: 4.891 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001487/0.1294, allocations: 486.5 kB / 366 MB, free: 4.418 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1782/0.3076, allocations: 7.31 MB / 373.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004624/0.3122, allocations: 4.457 MB / 377.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003515/0.3158, allocations: 2.84 MB / 380.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004377/0.3202, allocations: 2.923 MB / 383.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001663/0.3218, allocations: 0.6762 MB / 384.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002115/0.324, allocations: 0.7243 MB / 384.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004402/0.3284, allocations: 5.817 MB / 390.7 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0102/0.3386, allocations: 7.178 MB / 397.9 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01997/0.3586, allocations: 24.66 MB / 422.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.3587, allocations: 0 / 422.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3587, allocations: 0 / 422.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005404/0.3592, allocations: 0 / 422.6 MB, free: 12.36 MB / 334.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.04867/0.4079, allocations: 18.64 MB / 441.2 MB, free: 9.586 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.408, allocations: 12.03 kB / 441.2 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001654/0.4096, allocations: 499.6 kB / 441.7 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004899/0.4145, allocations: 1.549 MB / 443.3 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03697/0.4515, allocations: 17.65 MB / 460.9 MB, free: 6.203 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00166/0.4532, allocations: 0.7481 MB / 461.7 MB, free: 5.449 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001047/0.4543, allocations: 323.9 kB / 462 MB, free: 5.133 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01417/0.4685, allocations: 6.495 MB / 468.5 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.563e-05/0.4686, allocations: 6.719 kB / 468.5 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007677/0.4694, allocations: 144 kB / 468.6 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-05/0.4695, allocations: 80 kB / 468.7 MB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009868/0.4793, allocations: 5.12 MB / 473.8 MB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06482/0.5442, allocations: 33.58 MB / 0.4955 GB, free: 7.469 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007844/0.5521, allocations: 4.305 MB / 0.4997 GB, free: 3.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004273/0.5564, allocations: 2.565 MB / 0.5022 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001192/0.5565, allocations: 23.25 kB / 0.5022 GB, free: 0.668 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.255e-05/0.5566, allocations: 63.81 kB / 0.5023 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of pre-optimization done (n=156): time 3.847e-06/0.5566, allocations: 0 / 0.5023 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.01802/0.5746, allocations: 7.51 MB / 0.5096 GB, free: 9.047 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004286/0.5751, allocations: 0.9895 MB / 0.5106 GB, free: 7.828 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4047/0.9798, allocations: 35.76 MB / 0.5455 GB, free: 105.9 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004491/0.9803, allocations: 65.11 kB / 0.5456 GB, free: 105.9 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01423/0.9945, allocations: 7.465 MB / 0.5529 GB, free: 100.6 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007642/0.9953, allocations: 0.5376 MB / 0.5534 GB, free: 100.4 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007418/0.9961, allocations: 429.3 kB / 0.5538 GB, free: 100.2 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.84e-05/0.9961, allocations: 301.1 kB / 0.5541 GB, free: 99.94 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002997/0.9991, allocations: 1.966 MB / 0.556 GB, free: 98.1 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003457/1.003, allocations: 2.854 MB / 0.5588 GB, free: 94.95 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005634/1.008, allocations: 4.204 MB / 0.5629 GB, free: 90.56 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.375e-05/1.008, allocations: 4 kB / 0.5629 GB, free: 90.56 MB / 430.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01365/1.022, allocations: 6.019 MB / 0.5688 GB, free: 84.84 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.068e-05/1.022, allocations: 15.56 kB / 0.5688 GB, free: 84.83 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.063e-05/1.022, allocations: 16 kB / 0.5688 GB, free: 84.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/1.023, allocations: 373.7 kB / 0.5692 GB, free: 84.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002301/1.025, allocations: 0.6863 MB / 0.5698 GB, free: 83.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004425/1.03, allocations: 4.625 MB / 0.5744 GB, free: 79.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006771/1.037, allocations: 0.6547 MB / 0.575 GB, free: 78.36 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000473/1.037, allocations: 76 kB / 0.5751 GB, free: 78.29 MB / 430.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.009374/1.047, allocations: 8.125 MB / 0.583 GB, free: 70.14 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004827/1.051, allocations: 1.392 MB / 0.5844 GB, free: 68.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01582/1.067, allocations: 6.019 MB / 0.5902 GB, free: 62.7 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.298e-05/1.067, allocations: 12 kB / 0.5903 GB, free: 62.68 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/1.067, allocations: 4 kB / 0.5903 GB, free: 62.68 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.461e-05/1.067, allocations: 7.969 kB / 0.5903 GB, free: 62.67 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03984/1.107, allocations: 18.54 MB / 0.6084 GB, free: 44.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.884e-06/1.107, allocations: 0 / 0.6084 GB, free: 44.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001818/1.109, allocations: 0.5616 MB / 0.6089 GB, free: 43.53 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006852/1.11, allocations: 299.6 kB / 0.6092 GB, free: 43.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001473/1.11, allocations: 39.98 kB / 0.6092 GB, free: 43.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00362/1.114, allocations: 4.034 MB / 0.6132 GB, free: 39.04 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/1.114, allocations: 0 / 0.6132 GB, free: 39.04 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0136/1.127, allocations: 7.606 MB / 0.6206 GB, free: 31.39 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01299/1.14, allocations: 4.197 MB / 0.6247 GB, free: 27.15 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006062/1.146, allocations: 43.98 kB / 0.6247 GB, free: 27.11 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007684/1.154, allocations: 0.6628 MB / 0.6254 GB, free: 26.45 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009851/1.155, allocations: 404.2 kB / 0.6258 GB, free: 26.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002546/1.155, allocations: 40 kB / 0.6258 GB, free: 26.02 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.04897/1.204, allocations: 25.59 MB / 0.6508 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.633e-06/1.204, allocations: 0 / 0.6508 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.009809/1.214, allocations: 1.841 MB / 0.6526 GB, free: 14.65 MB / 446.1 MB 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.0214/1.236, allocations: 8.556 MB / 0.661 GB, free: 6.215 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01253/1.248, allocations: 6.956 MB / 0.6678 GB, free: 15.26 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/1.248, allocations: 5.219 kB / 0.6678 GB, free: 15.25 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004256/1.252, allocations: 2.265 MB / 0.67 GB, free: 12.97 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02267/1.275, allocations: 2.119 MB / 0.672 GB, free: 10.88 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.141/2.416, allocations: 465.6 MB / 1.127 GB, free: 138.5 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.022/2.438, allocations: 10.17 MB / 1.137 GB, free: 128.3 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.02247/2.46, allocations: 8.147 MB / 1.145 GB, free: 120.2 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01545/2.476, allocations: 6.076 MB / 1.151 GB, free: 114.1 MB / 0.4982 GB Notification: Performance of SimCode: time 2.264e-06/2.476, allocations: 0 / 1.151 GB, free: 114.1 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8021/3.278, allocations: 322.7 MB / 1.466 GB, free: 134.8 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.25/21.53, allocations: 0.7031 kB / 1.466 GB, free: 134.8 MB / 0.4982 GB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1)