Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",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.001244/0.001244, allocations: 97.97 kB / 16.5 MB, free: 6.641 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.001163/0.001163, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.35/1.35, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 46.52 kB / 300.1 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1133, allocations: 49.46 MB / 349.5 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.00802/0.1214, allocations: 5.992 MB / 355.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003806/0.1252, allocations: 2.1 MB / 357.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006731/0.1259, allocations: 15.94 kB / 357.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00169/0.1277, allocations: 0.5955 MB / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009386/0.1287, allocations: 358.3 kB / 358.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000953/0.1296, allocations: 374.5 kB / 358.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001514/0.1312, allocations: 1.216 MB / 360.1 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006981/0.1319, allocations: 425.5 kB / 360.6 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006876/0.1326, allocations: 426.3 kB / 361 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007683/0.1333, allocations: 0.5447 MB / 361.5 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001958/0.1336, allocations: 60 kB / 361.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003564/0.1339, allocations: 119.9 kB / 361.7 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004763/0.1344, allocations: 0.5998 MB / 362.3 MB, free: 7.785 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00121/0.1356, allocations: 0.8152 MB / 363.1 MB, free: 6.965 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002469/0.1381, allocations: 2.527 MB / 365.6 MB, free: 4.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1381, allocations: 4 kB / 365.6 MB, free: 4.426 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1381, allocations: 0 / 365.6 MB, free: 4.426 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.916e-05/0.1382, allocations: 4 kB / 365.6 MB, free: 4.422 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003588/0.1418, allocations: 2.356 MB / 368 MB, free: 2.004 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.1418, allocations: 12.03 kB / 368 MB, free: 1.992 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001422/0.142, allocations: 110.7 kB / 368.1 MB, free: 1.875 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000299/0.1423, allocations: 210.3 kB / 368.3 MB, free: 1.668 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1946/0.3369, allocations: 1.649 MB / 370 MB, free: 23.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003127/0.3372, allocations: 131.9 kB / 370.1 MB, free: 23.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001708/0.3374, allocations: 61.33 kB / 370.2 MB, free: 23.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.3389, allocations: 0.8256 MB / 371 MB, free: 23.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.339, allocations: 1.875 kB / 371 MB, free: 23.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.342e-05/0.339, allocations: 26.66 kB / 371 MB, free: 23.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.054e-05/0.3391, allocations: 16 kB / 371 MB, free: 23.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/0.3401, allocations: 0.5502 MB / 371.6 MB, free: 23.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005993/0.3461, allocations: 4.011 MB / 375.6 MB, free: 21.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001289/0.3474, allocations: 0.5291 MB / 376.1 MB, free: 21.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007389/0.3482, allocations: 355 kB / 376.5 MB, free: 21.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.77e-05/0.3482, allocations: 7.031 kB / 376.5 MB, free: 21.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.3483, allocations: 43.72 kB / 376.5 MB, free: 21.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.954e-06/0.3483, allocations: 0 / 376.5 MB, free: 21.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.00239/0.3507, allocations: 0.9431 MB / 377.5 MB, free: 20.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.186e-05/0.3508, allocations: 266.7 kB / 377.7 MB, free: 20.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004619/0.3554, allocations: 3.145 MB / 380.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.99e-05/0.3555, allocations: 33.02 kB / 380.9 MB, free: 19.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006642/0.3561, allocations: 0.8602 MB / 381.8 MB, free: 18.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.012e-05/0.3562, allocations: 120.4 kB / 381.9 MB, free: 18.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001602/0.3564, allocations: 91.41 kB / 382 MB, free: 18.63 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.971e-05/0.3565, allocations: 324.8 kB / 382.3 MB, free: 18.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004528/0.3569, allocations: 215.1 kB / 382.5 MB, free: 18.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005584/0.3575, allocations: 393.6 kB / 382.9 MB, free: 17.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008589/0.3584, allocations: 0.5183 MB / 383.4 MB, free: 17.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.3584, allocations: 5.094 kB / 383.4 MB, free: 17.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001413/0.3598, allocations: 0.7743 MB / 384.2 MB, free: 17.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.3598, allocations: 7.531 kB / 384.2 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.3598, allocations: 2.562 kB / 384.2 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003239/0.3602, allocations: 73.14 kB / 384.3 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004748/0.3607, allocations: 117.4 kB / 384.4 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001641/0.3623, allocations: 1.632 MB / 386 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006198/0.3629, allocations: 74.8 kB / 386.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.273e-05/0.363, allocations: 16.84 kB / 386.1 MB, free: 15.73 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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 {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001025/0.364, allocations: 0.6589 MB / 386.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002485/0.3643, allocations: 186.8 kB / 386.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002774/0.3646, allocations: 219.2 kB / 387.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.3646, allocations: 3.281 kB / 387.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3646, allocations: 5.438 kB / 387.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3646, allocations: 1.969 kB / 387.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003003/0.3676, allocations: 2.155 MB / 389.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.3676, allocations: 1.812 kB / 389.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003777/0.368, allocations: 82 kB / 389.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001587/0.3682, allocations: 62.91 kB / 389.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.784e-05/0.3682, allocations: 11.94 kB / 389.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001069/0.3693, allocations: 1.574 MB / 391 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3693, allocations: 1.156 kB / 391 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00162/0.3709, allocations: 0.9708 MB / 392 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005456/0.3715, allocations: 444.3 kB / 392.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.3717, allocations: 12.12 kB / 392.5 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000517/0.3722, allocations: 54.73 kB / 392.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.3723, allocations: 44.38 kB / 392.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/0.3723, allocations: 12.25 kB / 392.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002384/0.3747, allocations: 2.245 MB / 394.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3747, allocations: 0 / 394.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007497/0.3755, allocations: 257.2 kB / 395.1 MB, free: 10.24 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.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 (29): * Single equations (assignments): 28 * 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 {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002625/0.3781, allocations: 1.91 MB / 397 MB, free: 8.898 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.3792, allocations: 0.6067 MB / 397.6 MB, free: 8.281 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3792, allocations: 0 / 397.6 MB, free: 8.281 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005416/0.3798, allocations: 358.4 kB / 397.9 MB, free: 7.918 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.3809, allocations: 275.9 kB / 398.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03825/0.4191, allocations: 23.22 MB / 421.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001501/0.4207, allocations: 1.493 MB / 422.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007824/0.4215, allocations: 295.1 kB / 423.2 MB, free: 13.22 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009269/0.4224, allocations: 0.6399 MB / 423.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of SimCode: time 1.523e-06/0.4224, allocations: 0 / 423.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06403/0.4865, allocations: 36.54 MB / 460.4 MB, free: 8.363 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002471/0.4868, allocations: 280.2 kB / 460.7 MB, free: 7.992 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.617/3.104, allocations: 0 / 460.7 MB, free: 7.992 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1)