Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_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.001641/0.001641, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00136/0.001359, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 63.77 kB / 307 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1062, allocations: 50.54 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007334/0.1136, allocations: 6.037 MB / 363.6 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003691/0.1173, allocations: 2.314 MB / 365.9 MB, free: 5.637 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005939/0.118, allocations: 19.94 kB / 366 MB, free: 5.617 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001591/0.1196, allocations: 0.6224 MB / 366.6 MB, free: 4.992 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001071/0.1207, allocations: 441.6 kB / 367 MB, free: 4.559 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009531/0.1217, allocations: 410.7 kB / 367.4 MB, free: 4.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001578/0.1233, allocations: 1.309 MB / 368.7 MB, free: 2.852 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007281/0.124, allocations: 477.7 kB / 369.2 MB, free: 2.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007173/0.1247, allocations: 498.3 kB / 369.7 MB, free: 1.879 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000838/0.1256, allocations: 0.5838 MB / 370.3 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002531/0.1258, allocations: 116 kB / 370.4 MB, free: 1.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004262/0.1263, allocations: 172 kB / 370.5 MB, free: 1.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005668/0.1269, allocations: 0.6622 MB / 371.2 MB, free: 356 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1897/0.3165, allocations: 0.8891 MB / 372.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005034/0.3216, allocations: 2.597 MB / 374.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.133e-05/0.3217, allocations: 1 kB / 374.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.3217, allocations: 0 / 374.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001745/0.3219, allocations: 0 / 374.7 MB, free: 12.07 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.008221/0.3301, allocations: 2.373 MB / 377.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.3301, allocations: 9.625 kB / 377.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003083/0.3305, allocations: 110.2 kB / 377.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000832/0.3313, allocations: 211.6 kB / 377.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004929/0.3362, allocations: 1.66 MB / 379 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00034/0.3366, allocations: 137 kB / 379.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002374/0.3369, allocations: 61.69 kB / 379.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001925/0.3388, allocations: 0.8262 MB / 380.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.3388, allocations: 0 / 380.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.271e-05/0.3389, allocations: 28.62 kB / 380.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.339, allocations: 18.44 kB / 380.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001342/0.3403, allocations: 0.5478 MB / 380.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009208/0.3495, allocations: 4.014 MB / 384.7 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/0.351, allocations: 0.5364 MB / 385.2 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000917/0.3519, allocations: 360.1 kB / 385.6 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.618e-05/0.352, allocations: 2.906 kB / 385.6 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.488e-05/0.352, allocations: 42.34 kB / 385.6 MB, free: 7.352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 3.487e-06/0.3521, allocations: 2.625 kB / 385.6 MB, free: 7.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.003078/0.3551, allocations: 0.9443 MB / 386.6 MB, free: 6.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.667e-05/0.3553, allocations: 270 kB / 386.8 MB, free: 6.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007602/0.3629, allocations: 3.16 MB / 390 MB, free: 5.594 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001164/0.363, allocations: 36.48 kB / 390 MB, free: 5.555 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008258/0.3639, allocations: 0.8577 MB / 390.9 MB, free: 4.891 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.3641, allocations: 117.5 kB / 391 MB, free: 4.805 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/0.3643, allocations: 92.91 kB / 391.1 MB, free: 4.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.917e-05/0.3644, allocations: 323.2 kB / 391.4 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006203/0.365, allocations: 213.4 kB / 391.6 MB, free: 4.367 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006579/0.3657, allocations: 396.5 kB / 392 MB, free: 4.039 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009756/0.3667, allocations: 0.5217 MB / 392.5 MB, free: 3.695 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.3667, allocations: 5.062 kB / 392.5 MB, free: 3.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002201/0.3689, allocations: 0.7762 MB / 393.3 MB, free: 3.297 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.3689, allocations: 10.72 kB / 393.3 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.369, allocations: 4.344 kB / 393.3 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003644/0.3693, allocations: 68.19 kB / 393.4 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004705/0.3698, allocations: 118.8 kB / 393.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00151/0.3713, allocations: 1.799 MB / 395.3 MB, free: 1.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/0.3724, allocations: 70.5 kB / 395.4 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.886e-05/0.3725, allocations: 17.44 kB / 395.4 MB, free: 1.453 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.001344/0.3738, allocations: 0.6616 MB / 396 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004739/0.3743, allocations: 188.2 kB / 396.2 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003848/0.3747, allocations: 219.8 kB / 396.4 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.3747, allocations: 7.719 kB / 396.4 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.3747, allocations: 0 / 396.4 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3748, allocations: 5.484 kB / 396.4 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003451/0.3782, allocations: 2.157 MB / 398.6 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3782, allocations: 2.844 kB / 398.6 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003833/0.3786, allocations: 83.59 kB / 398.7 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001929/0.3788, allocations: 60.78 kB / 398.7 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.404e-05/0.3789, allocations: 13.67 kB / 398.8 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001511/0.3804, allocations: 1.732 MB / 400.5 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3804, allocations: 7.469 kB / 400.5 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002017/0.3824, allocations: 0.9838 MB / 401.5 MB, free: 13.08 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007046/0.3831, allocations: 444.5 kB / 401.9 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/0.3833, allocations: 11.7 kB / 401.9 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005601/0.3839, allocations: 53.78 kB / 402 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.384, allocations: 42.97 kB / 402 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.3841, allocations: 10.03 kB / 402 MB, free: 12.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003658/0.3877, allocations: 2.254 MB / 404.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3877, allocations: 0 / 404.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001278/0.389, allocations: 255.5 kB / 404.5 MB, free: 10.85 MB / 318.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.00326/0.3923, allocations: 1.896 MB / 406.4 MB, free: 9.098 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001489/0.3938, allocations: 0.6328 MB / 407.1 MB, free: 8.473 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.3938, allocations: 0 / 407.1 MB, free: 8.473 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00067/0.3945, allocations: 361.1 kB / 407.4 MB, free: 8.113 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001481/0.396, allocations: 301.3 kB / 407.7 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03749/0.4335, allocations: 22.87 MB / 430.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002003/0.4356, allocations: 1.497 MB / 432.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001307/0.4369, allocations: 303.1 kB / 432.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001275/0.4382, allocations: 0.6399 MB / 433 MB, free: 13.18 MB / 350.1 MB Notification: Performance of SimCode: time 1.453e-06/0.4382, allocations: 0 / 433 MB, free: 13.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08269/0.5209, allocations: 37.75 MB / 470.8 MB, free: 7.695 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.5, allocations: 11.17 kB / 470.8 MB, free: 7.688 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1)