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.001775/0.001775, allocations: 107.1 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.001996/0.001996, 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.568/1.568, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 41.89 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1116, allocations: 49.45 MB / 350.2 MB, free: 4.301 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.009554/0.1212, allocations: 6.001 MB / 356.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004481/0.1257, allocations: 2.139 MB / 358.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008296/0.1266, allocations: 15.94 kB / 358.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001892/0.1285, allocations: 0.6301 MB / 359 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001368/0.1299, allocations: 401.8 kB / 359.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001147/0.1311, allocations: 406.7 kB / 359.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001769/0.1329, allocations: 1.301 MB / 361 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008049/0.1337, allocations: 481.7 kB / 361.5 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008032/0.1345, allocations: 0.4906 MB / 362 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009736/0.1355, allocations: 0.5838 MB / 362.6 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002707/0.1358, allocations: 116 kB / 362.7 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004452/0.1362, allocations: 172 kB / 362.9 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005535/0.1368, allocations: 0.6545 MB / 363.5 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001031/0.1378, allocations: 0.8932 MB / 364.4 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002408/0.1402, allocations: 2.593 MB / 367 MB, free: 3.367 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1403, allocations: 0 / 367 MB, free: 3.367 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1403, allocations: 0 / 367 MB, free: 3.367 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.811e-05/0.1403, allocations: 0 / 367 MB, free: 3.367 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.005249/0.1456, allocations: 2.364 MB / 369.4 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.1457, allocations: 11.89 kB / 369.4 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001939/0.1459, allocations: 106.7 kB / 369.5 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005317/0.1464, allocations: 214.3 kB / 369.7 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2007/0.3471, allocations: 1.646 MB / 371.3 MB, free: 23.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003483/0.3475, allocations: 132.7 kB / 371.5 MB, free: 23.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.3477, allocations: 64 kB / 371.5 MB, free: 23.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002272/0.3499, allocations: 0.8277 MB / 372.4 MB, free: 23.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.35, allocations: 0.7812 kB / 372.4 MB, free: 23.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.3501, allocations: 29.77 kB / 372.4 MB, free: 23.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.274e-05/0.3501, allocations: 18.66 kB / 372.4 MB, free: 23.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001619/0.3518, allocations: 0.5492 MB / 373 MB, free: 23.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00867/0.3604, allocations: 4.003 MB / 377 MB, free: 21.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001945/0.3624, allocations: 0.525 MB / 377.5 MB, free: 21.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001092/0.3636, allocations: 361.5 kB / 377.8 MB, free: 20.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.76e-05/0.3636, allocations: 7.453 kB / 377.9 MB, free: 20.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.379e-05/0.3637, allocations: 41.72 kB / 377.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 3.427e-06/0.3637, allocations: 0 / 377.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.00401/0.3677, allocations: 0.9436 MB / 378.8 MB, free: 20.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/0.3679, allocations: 266.8 kB / 379.1 MB, free: 20.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01074/0.3786, allocations: 3.145 MB / 382.2 MB, free: 19.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001986/0.3789, allocations: 33.02 kB / 382.3 MB, free: 19.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001549/0.3804, allocations: 0.8561 MB / 383.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000416/0.3809, allocations: 122.2 kB / 383.3 MB, free: 18.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005246/0.3815, allocations: 97.08 kB / 383.3 MB, free: 18.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.3816, allocations: 327.6 kB / 383.7 MB, free: 18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001085/0.3827, allocations: 213.6 kB / 383.9 MB, free: 17.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/0.3839, allocations: 392.7 kB / 384.3 MB, free: 17.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001492/0.3854, allocations: 0.5207 MB / 384.8 MB, free: 17.33 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.3855, allocations: 2.406 kB / 384.8 MB, free: 17.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.003129/0.3886, allocations: 0.7694 MB / 385.6 MB, free: 16.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.449e-05/0.3887, allocations: 11.28 kB / 385.6 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.779e-05/0.3887, allocations: 2.938 kB / 385.6 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004251/0.3891, allocations: 67.86 kB / 385.6 MB, free: 16.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007111/0.3898, allocations: 116.6 kB / 385.7 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002245/0.3921, allocations: 1.793 MB / 387.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/0.3935, allocations: 83.56 kB / 387.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.967e-05/0.3936, allocations: 17.5 kB / 387.6 MB, free: 15.24 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.001642/0.3953, allocations: 0.6614 MB / 388.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008512/0.3961, allocations: 179 kB / 388.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007929/0.3969, allocations: 218.7 kB / 388.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.397, allocations: 3.938 kB / 388.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.397, allocations: 0 / 388.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.397, allocations: 2.953 kB / 388.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005993/0.403, allocations: 2.168 MB / 390.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/0.403, allocations: 4.031 kB / 390.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006249/0.4037, allocations: 89.19 kB / 391 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003366/0.404, allocations: 57.69 kB / 391 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.275e-05/0.4041, allocations: 6.75 kB / 391 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001826/0.406, allocations: 1.743 MB / 392.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.406, allocations: 0 / 392.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002504/0.4085, allocations: 0.98 MB / 393.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009519/0.4095, allocations: 442.4 kB / 394.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003973/0.4099, allocations: 14.17 kB / 394.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000722/0.4106, allocations: 52.95 kB / 394.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.4107, allocations: 40.39 kB / 394.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.974e-05/0.4108, allocations: 16.23 kB / 394.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003326/0.4141, allocations: 2.248 MB / 396.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4141, allocations: 0 / 396.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001092/0.4152, allocations: 252.1 kB / 396.8 MB, free: 9.328 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.002929/0.4181, allocations: 1.897 MB / 398.7 MB, free: 7.617 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001318/0.4195, allocations: 0.6372 MB / 399.3 MB, free: 6.973 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.4195, allocations: 4 kB / 399.3 MB, free: 6.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000567/0.4201, allocations: 353.5 kB / 399.7 MB, free: 6.613 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001603/0.4217, allocations: 294.5 kB / 400 MB, free: 6.328 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03826/0.4599, allocations: 22.86 MB / 422.8 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001291/0.4613, allocations: 1.496 MB / 424.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000724/0.462, allocations: 303.1 kB / 424.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008797/0.4629, allocations: 0.6438 MB / 425.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4629, allocations: 0 / 425.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08743/0.5504, allocations: 37.68 MB / 462.9 MB, free: 6.223 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.03/13.59, allocations: 8.016 kB / 462.9 MB, free: 6.215 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1)