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.001624/0.001624, allocations: 109 kB / 17.06 MB, free: 6.02 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.002231/0.002231, allocations: 191 kB / 18 MB, free: 5.109 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.348/1.348, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 39.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2968, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007107/0.3039, allocations: 6.005 MB / 406.2 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004045/0.308, allocations: 2.147 MB / 408.4 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004575/0.3085, allocations: 15.94 kB / 408.4 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001315/0.3099, allocations: 0.6303 MB / 409 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008077/0.3107, allocations: 405.8 kB / 409.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009307/0.3117, allocations: 407.3 kB / 409.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001427/0.3131, allocations: 1.309 MB / 411.1 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006136/0.3137, allocations: 465.8 kB / 411.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005267/0.3143, allocations: 494.3 kB / 412.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005803/0.3148, allocations: 0.5916 MB / 412.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001285/0.315, allocations: 116 kB / 412.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002712/0.3153, allocations: 172 kB / 412.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004373/0.3157, allocations: 0.6506 MB / 413.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006848/0.3164, allocations: 0.8894 MB / 414.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002163/0.3186, allocations: 2.628 MB / 417.1 MB, free: 7.848 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3186, allocations: 0 / 417.1 MB, free: 7.848 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3186, allocations: 0 / 417.1 MB, free: 7.848 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.967e-05/0.3186, allocations: 0 / 417.1 MB, free: 7.848 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003811/0.3224, allocations: 2.363 MB / 419.5 MB, free: 5.426 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.3225, allocations: 8.031 kB / 419.5 MB, free: 5.418 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001228/0.3226, allocations: 114.7 kB / 419.6 MB, free: 5.297 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002752/0.3229, allocations: 210.3 kB / 419.8 MB, free: 5.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002303/0.3252, allocations: 1.675 MB / 421.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.3254, allocations: 104.7 kB / 421.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.965e-05/0.3255, allocations: 64 kB / 421.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.3268, allocations: 0.8297 MB / 422.5 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.3268, allocations: 0 / 422.5 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.461e-05/0.3269, allocations: 28 kB / 422.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.493e-05/0.3269, allocations: 19.94 kB / 422.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009799/0.3279, allocations: 0.5477 MB / 423.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005365/0.3333, allocations: 3.981 MB / 427 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.3346, allocations: 0.526 MB / 427.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000724/0.3353, allocations: 369.2 kB / 427.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.3354, allocations: 8.266 kB / 427.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.3354, allocations: 46.84 kB / 428 MB, free: 12.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.763e-06/0.3354, allocations: 3.938 kB / 428 MB, free: 12.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002248/0.3377, allocations: 0.9411 MB / 428.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/0.3378, allocations: 265 kB / 429.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003993/0.3418, allocations: 3.144 MB / 432.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.097e-05/0.3419, allocations: 33.7 kB / 432.4 MB, free: 8.113 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007288/0.3426, allocations: 0.8684 MB / 433.2 MB, free: 7.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.3427, allocations: 110.3 kB / 433.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001665/0.3429, allocations: 98.16 kB / 433.4 MB, free: 7.027 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.343, allocations: 326 kB / 433.7 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004682/0.3435, allocations: 205 kB / 433.9 MB, free: 6.504 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005887/0.3441, allocations: 402 kB / 434.3 MB, free: 6.039 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000942/0.345, allocations: 0.5168 MB / 434.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.345, allocations: 0 / 434.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001528/0.3466, allocations: 0.7728 MB / 435.6 MB, free: 4.688 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.3466, allocations: 16.08 kB / 435.6 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.3466, allocations: 4 kB / 435.6 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002904/0.3469, allocations: 60.83 kB / 435.7 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000498/0.3474, allocations: 115.8 kB / 435.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00174/0.3492, allocations: 1.794 MB / 437.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006839/0.3499, allocations: 75.41 kB / 437.7 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.811e-05/0.3499, allocations: 19.98 kB / 437.7 MB, free: 2.469 MB / 350.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.000978/0.3509, allocations: 0.6577 MB / 438.4 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003586/0.3513, allocations: 189.6 kB / 438.5 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004298/0.3517, allocations: 218.6 kB / 438.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.3517, allocations: 4 kB / 438.8 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3518, allocations: 4 kB / 438.8 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.3518, allocations: 0 / 438.8 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004186/0.356, allocations: 2.155 MB / 440.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.356, allocations: 0 / 440.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003993/0.3564, allocations: 91.89 kB / 441 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002224/0.3566, allocations: 56.81 kB / 441.1 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.766e-05/0.3567, allocations: 11.98 kB / 441.1 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/0.3585, allocations: 1.743 MB / 442.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3585, allocations: 4.094 kB / 442.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001999/0.3605, allocations: 0.9718 MB / 443.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009161/0.3614, allocations: 442.6 kB / 444.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003005/0.3617, allocations: 12.25 kB / 444.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006938/0.3624, allocations: 55.95 kB / 444.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.3626, allocations: 43.88 kB / 444.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.454e-05/0.3626, allocations: 12 kB / 444.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003668/0.3663, allocations: 2.243 MB / 446.6 MB, free: 9.273 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.3663, allocations: 0 / 446.6 MB, free: 9.273 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001207/0.3675, allocations: 259.5 kB / 446.9 MB, free: 9.02 MB / 366.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.003655/0.3712, allocations: 1.907 MB / 448.8 MB, free: 7.266 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001508/0.3727, allocations: 0.5963 MB / 449.4 MB, free: 6.656 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.3727, allocations: 0 / 449.4 MB, free: 6.656 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006539/0.3734, allocations: 367 kB / 449.7 MB, free: 6.285 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001621/0.375, allocations: 293.2 kB / 450 MB, free: 6 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03041/0.4054, allocations: 19.68 MB / 469.7 MB, free: 2.012 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00139/0.4069, allocations: 1.493 MB / 471.2 MB, free: 500 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007308/0.4076, allocations: 307.1 kB / 471.5 MB, free: 188 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000873/0.4085, allocations: 0.6361 MB / 472.1 MB, free: 15.54 MB / 398.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4085, allocations: 0 / 472.1 MB, free: 15.54 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07085/0.4794, allocations: 36.3 MB / 0.4965 GB, free: 11.55 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.6/15.08, allocations: 7.891 kB / 0.4965 GB, free: 11.54 MB / 430.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)