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.001167/0.001167, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001125/0.001125, allocations: 196 kB / 18 MB, free: 5.105 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.276/1.276, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 55.91 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3234, allocations: 49.43 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007069/0.3305, allocations: 6.012 MB / 406.2 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00356/0.3341, allocations: 2.135 MB / 408.4 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005219/0.3347, allocations: 19.94 kB / 408.4 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001384/0.3361, allocations: 0.6302 MB / 409 MB, free: 0 / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008658/0.337, allocations: 397.9 kB / 409.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009205/0.3379, allocations: 421.5 kB / 409.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001459/0.3394, allocations: 1.302 MB / 411.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006323/0.34, allocations: 461.8 kB / 411.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006182/0.3407, allocations: 0.4906 MB / 412.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006549/0.3413, allocations: 0.5915 MB / 412.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001489/0.3415, allocations: 116 kB / 412.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003062/0.3418, allocations: 176 kB / 412.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004346/0.3422, allocations: 0.6506 MB / 413.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007235/0.343, allocations: 0.8855 MB / 414.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002262/0.3452, allocations: 2.624 MB / 417.1 MB, free: 7.871 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3453, allocations: 0 / 417.1 MB, free: 7.871 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.038e-06/0.3453, allocations: 4 kB / 417.1 MB, free: 7.867 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.174e-05/0.3453, allocations: 0 / 417.1 MB, free: 7.867 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.004011/0.3493, allocations: 2.36 MB / 419.5 MB, free: 5.445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.3494, allocations: 12.02 kB / 419.5 MB, free: 5.434 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001322/0.3495, allocations: 110.7 kB / 419.6 MB, free: 5.316 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003018/0.3498, allocations: 210.3 kB / 419.8 MB, free: 5.109 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002669/0.3525, allocations: 1.687 MB / 421.5 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.3527, allocations: 100.7 kB / 421.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.914e-05/0.3528, allocations: 60 kB / 421.6 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.3541, allocations: 0.8297 MB / 422.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.3542, allocations: 0 / 422.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.33e-05/0.3542, allocations: 28 kB / 422.5 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.3543, allocations: 16 kB / 422.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.3553, allocations: 0.5477 MB / 423 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006346/0.3616, allocations: 3.981 MB / 427 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/0.3629, allocations: 0.5324 MB / 427.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007771/0.3637, allocations: 368.9 kB / 427.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.655e-05/0.3638, allocations: 8.281 kB / 427.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.343e-05/0.3638, allocations: 38.84 kB / 428 MB, free: 12.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.815e-06/0.3638, allocations: 0 / 428 MB, free: 12.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.00226/0.3661, allocations: 0.9372 MB / 428.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/0.3662, allocations: 280.9 kB / 429.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003686/0.3699, allocations: 3.14 MB / 432.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.833e-05/0.37, allocations: 37.7 kB / 432.4 MB, free: 8.129 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007074/0.3707, allocations: 0.8528 MB / 433.2 MB, free: 7.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.3708, allocations: 126.3 kB / 433.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001553/0.371, allocations: 94.16 kB / 433.4 MB, free: 7.047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.3711, allocations: 326 kB / 433.7 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004506/0.3716, allocations: 205 kB / 433.9 MB, free: 6.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005578/0.3722, allocations: 406 kB / 434.3 MB, free: 6.055 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009162/0.3731, allocations: 0.5129 MB / 434.9 MB, free: 5.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.3731, allocations: 7.922 kB / 434.9 MB, free: 5.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00154/0.3746, allocations: 0.7647 MB / 435.6 MB, free: 4.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.3747, allocations: 8.438 kB / 435.6 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3747, allocations: 8 kB / 435.6 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002974/0.375, allocations: 68.81 kB / 435.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004652/0.3755, allocations: 115.8 kB / 435.8 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001722/0.3772, allocations: 1.794 MB / 437.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006558/0.3779, allocations: 75.41 kB / 437.7 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.59e-05/0.3779, allocations: 16 kB / 437.7 MB, free: 2.488 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.0009149/0.3788, allocations: 0.6616 MB / 438.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002716/0.3791, allocations: 185.6 kB / 438.5 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002837/0.3794, allocations: 222.5 kB / 438.8 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3794, allocations: 0 / 438.8 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3794, allocations: 7.984 kB / 438.8 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.3795, allocations: 3.984 kB / 438.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003589/0.383, allocations: 2.151 MB / 440.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.3831, allocations: 0 / 440.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003903/0.3835, allocations: 87.75 kB / 441 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001931/0.3837, allocations: 60.89 kB / 441.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.491e-05/0.3837, allocations: 15.98 kB / 441.1 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001517/0.3853, allocations: 1.736 MB / 442.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.3853, allocations: 0 / 442.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001887/0.3872, allocations: 0.9758 MB / 443.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009391/0.3881, allocations: 446.6 kB / 444.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001589/0.3883, allocations: 12 kB / 444.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005241/0.3888, allocations: 55.94 kB / 444.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.3889, allocations: 39.89 kB / 444.3 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.548e-05/0.389, allocations: 8 kB / 444.3 MB, free: 11.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003003/0.392, allocations: 2.251 MB / 446.6 MB, free: 9.289 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.392, allocations: 0 / 446.6 MB, free: 9.289 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000896/0.3929, allocations: 259.5 kB / 446.9 MB, free: 9.035 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.003175/0.3961, allocations: 1.904 MB / 448.8 MB, free: 7.285 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.3975, allocations: 0.6003 MB / 449.4 MB, free: 6.672 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.3975, allocations: 4 kB / 449.4 MB, free: 6.668 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006724/0.3982, allocations: 363 kB / 449.7 MB, free: 6.301 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/0.3996, allocations: 283.3 kB / 450 MB, free: 6.023 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03096/0.4306, allocations: 19.7 MB / 469.7 MB, free: 2.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001296/0.4319, allocations: 1.493 MB / 471.2 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007034/0.4326, allocations: 299.1 kB / 471.5 MB, free: 204 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008055/0.4334, allocations: 0.64 MB / 472.1 MB, free: 15.55 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4334, allocations: 4 kB / 472.1 MB, free: 15.55 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8863/1.32, allocations: 36.89 MB / 0.4971 GB, free: 10.96 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.58/23.9, allocations: 15.12 kB / 0.4971 GB, free: 10.95 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 & /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)