Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_1_0-beta_om_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 trunk/package.mo): time 0.001368/0.001368, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 202 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.396/1.396, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 63.91 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2969, allocations: 50.54 MB / 409.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007875/0.3048, allocations: 6.058 MB / 415.1 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003854/0.3087, allocations: 2.313 MB / 417.4 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004506/0.3092, allocations: 15.94 kB / 417.4 MB, free: 8.926 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001438/0.3107, allocations: 0.6262 MB / 418.1 MB, free: 8.297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009454/0.3116, allocations: 449.6 kB / 418.5 MB, free: 7.855 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009192/0.3126, allocations: 408.1 kB / 418.9 MB, free: 7.461 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001743/0.3143, allocations: 1.313 MB / 420.2 MB, free: 6.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007348/0.3151, allocations: 473.8 kB / 420.7 MB, free: 5.656 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006731/0.3157, allocations: 0.4906 MB / 421.2 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007003/0.3164, allocations: 0.5799 MB / 421.8 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000156/0.3166, allocations: 116 kB / 421.9 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003343/0.317, allocations: 176 kB / 422 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000537/0.3175, allocations: 0.6622 MB / 422.7 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000861/0.3184, allocations: 0.8816 MB / 423.6 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00267/0.3211, allocations: 2.65 MB / 426.2 MB, free: 88 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3211, allocations: 0 / 426.2 MB, free: 88 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3211, allocations: 0 / 426.2 MB, free: 88 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.588e-05/0.3211, allocations: 0 / 426.2 MB, free: 88 kB / 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.003914/0.325, allocations: 2.43 MB / 428.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.3251, allocations: 12.03 kB / 428.7 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001433/0.3252, allocations: 110.6 kB / 428.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003214/0.3256, allocations: 227.5 kB / 429 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002424/0.328, allocations: 1.693 MB / 430.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001342/0.3282, allocations: 104.7 kB / 430.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.086e-05/0.3283, allocations: 71.83 kB / 430.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.3297, allocations: 0.8297 MB / 431.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.3297, allocations: 0 / 431.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.731e-05/0.3298, allocations: 28 kB / 431.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/0.3298, allocations: 19.98 kB / 431.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.3309, allocations: 0.5516 MB / 432.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005686/0.3366, allocations: 3.99 MB / 436.3 MB, free: 5.703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.3379, allocations: 0.528 MB / 436.8 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007852/0.3387, allocations: 373.2 kB / 437.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.3388, allocations: 4.281 kB / 437.2 MB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.259e-05/0.3388, allocations: 46.78 kB / 437.2 MB, free: 4.738 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 4.408e-06/0.3388, allocations: 0 / 437.2 MB, free: 4.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002409/0.3412, allocations: 0.9538 MB / 438.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001755/0.3414, allocations: 269 kB / 438.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004267/0.3457, allocations: 3.16 MB / 441.6 MB, free: 244 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.475e-05/0.3458, allocations: 33.7 kB / 441.6 MB, free: 204 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008507/0.3467, allocations: 0.8655 MB / 442.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.3468, allocations: 118.9 kB / 442.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001774/0.347, allocations: 94.2 kB / 442.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.3472, allocations: 326 kB / 443 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004984/0.3477, allocations: 213 kB / 443.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006342/0.3483, allocations: 397.8 kB / 443.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009754/0.3493, allocations: 0.5244 MB / 444.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.3493, allocations: 0 / 444.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00182/0.3511, allocations: 0.7895 MB / 444.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.3512, allocations: 4 kB / 444.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.3512, allocations: 7.984 kB / 445 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003158/0.3515, allocations: 65.02 kB / 445 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004686/0.352, allocations: 115.9 kB / 445.1 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/0.354, allocations: 1.79 MB / 446.9 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007625/0.3547, allocations: 75.59 kB / 447 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.906e-05/0.3548, allocations: 23.98 kB / 447 MB, free: 10.53 MB / 366.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.0009581/0.3558, allocations: 0.6498 MB / 447.7 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003024/0.3561, allocations: 202.8 kB / 447.9 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003058/0.3564, allocations: 214.6 kB / 448.1 MB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.3564, allocations: 12.06 kB / 448.1 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.3564, allocations: 0 / 448.1 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3564, allocations: 0 / 448.1 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003499/0.3599, allocations: 2.163 MB / 450.2 MB, free: 7.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.3599, allocations: 0 / 450.2 MB, free: 7.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004001/0.3603, allocations: 87.81 kB / 450.3 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002175/0.3606, allocations: 60.89 kB / 450.4 MB, free: 7.059 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.392e-05/0.3606, allocations: 11.98 kB / 450.4 MB, free: 7.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001788/0.3624, allocations: 1.736 MB / 452.1 MB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3624, allocations: 3.938 kB / 452.1 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002183/0.3646, allocations: 0.9919 MB / 453.1 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007838/0.3654, allocations: 447.7 kB / 453.6 MB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000163/0.3656, allocations: 12.25 kB / 453.6 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005274/0.3661, allocations: 55.94 kB / 453.6 MB, free: 3.625 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.3663, allocations: 39.95 kB / 453.7 MB, free: 3.586 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-05/0.3663, allocations: 12 kB / 453.7 MB, free: 3.574 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003492/0.3698, allocations: 2.255 MB / 455.9 MB, free: 1.301 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3698, allocations: 0 / 455.9 MB, free: 1.301 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009772/0.3708, allocations: 267.5 kB / 456.2 MB, free: 1.039 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.003927/0.3747, allocations: 1.885 MB / 458.1 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.3761, allocations: 0.6128 MB / 458.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.3762, allocations: 0 / 458.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006702/0.3768, allocations: 363.1 kB / 459.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.3784, allocations: 291.1 kB / 459.3 MB, free: 14.03 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03114/0.4095, allocations: 19.77 MB / 479.1 MB, free: 9.949 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00129/0.4109, allocations: 1.489 MB / 480.6 MB, free: 8.434 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007072/0.4116, allocations: 299.1 kB / 480.9 MB, free: 8.137 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009045/0.4125, allocations: 0.6477 MB / 481.5 MB, free: 7.488 MB / 398.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4125, allocations: 0 / 481.5 MB, free: 7.488 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08104/0.4936, allocations: 36.38 MB / 0.5058 GB, free: 3.457 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.66/15.16, allocations: 3.75 kB / 0.5058 GB, free: 3.453 MB / 430.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1)