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.001704/0.001704, 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.002192/0.002192, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2661, allocations: 50.54 MB / 408.7 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006933/0.2731, allocations: 6.057 MB / 414.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003696/0.2768, allocations: 2.302 MB / 417.1 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006894/0.2776, allocations: 15.94 kB / 417.1 MB, free: 9.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001877/0.2795, allocations: 0.6341 MB / 417.8 MB, free: 8.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001291/0.2808, allocations: 437.7 kB / 418.2 MB, free: 8.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009875/0.2818, allocations: 414.9 kB / 418.6 MB, free: 7.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001527/0.2833, allocations: 1.31 MB / 419.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006613/0.284, allocations: 469.9 kB / 420.4 MB, free: 5.988 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006512/0.2847, allocations: 0.4984 MB / 420.9 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006386/0.2853, allocations: 0.5838 MB / 421.4 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001286/0.2855, allocations: 116 kB / 421.5 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002626/0.2857, allocations: 179.9 kB / 421.7 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004139/0.2862, allocations: 0.6545 MB / 422.4 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006377/0.2868, allocations: 0.8855 MB / 423.3 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001924/0.2887, allocations: 2.636 MB / 425.9 MB, free: 432 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2887, allocations: 0 / 425.9 MB, free: 432 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2888, allocations: 0 / 425.9 MB, free: 432 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.154e-05/0.2888, allocations: 0 / 425.9 MB, free: 432 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.003595/0.2924, allocations: 2.372 MB / 428.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.2924, allocations: 8.031 kB / 428.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001262/0.2926, allocations: 110.7 kB / 428.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002832/0.2929, allocations: 210.3 kB / 428.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002463/0.2953, allocations: 1.675 MB / 430.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.2955, allocations: 116.6 kB / 430.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.462e-05/0.2955, allocations: 60 kB / 430.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.2969, allocations: 0.8181 MB / 431.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.2969, allocations: 0 / 431.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.024e-05/0.297, allocations: 28 kB / 431.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.297, allocations: 23.92 kB / 431.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/0.2981, allocations: 0.5516 MB / 431.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005416/0.3035, allocations: 3.989 MB / 435.9 MB, free: 6.141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/0.3048, allocations: 0.5419 MB / 436.4 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007317/0.3056, allocations: 361.2 kB / 436.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/0.3056, allocations: 8.281 kB / 436.8 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.3056, allocations: 42.78 kB / 436.8 MB, free: 5.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.224e-06/0.3057, allocations: 0 / 436.8 MB, free: 5.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002296/0.308, allocations: 0.9417 MB / 437.7 MB, free: 4.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001441/0.3081, allocations: 265 kB / 438 MB, free: 3.891 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003759/0.3119, allocations: 3.16 MB / 441.2 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.3119, allocations: 33.7 kB / 441.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007233/0.3127, allocations: 0.8646 MB / 442.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.3128, allocations: 114.4 kB / 442.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001469/0.3129, allocations: 90.17 kB / 442.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3131, allocations: 326 kB / 442.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004497/0.3135, allocations: 209 kB / 442.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005504/0.3141, allocations: 397.9 kB / 443.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000895/0.315, allocations: 0.5244 MB / 443.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.315, allocations: 0 / 443.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0015/0.3165, allocations: 0.7846 MB / 444.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.3165, allocations: 4 kB / 444.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.3165, allocations: 4 kB / 444.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002905/0.3168, allocations: 60.83 kB / 444.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004484/0.3173, allocations: 123.9 kB / 444.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001679/0.319, allocations: 1.79 MB / 446.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006413/0.3196, allocations: 75.48 kB / 446.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.918e-05/0.3197, allocations: 20 kB / 446.5 MB, free: 11 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.0008737/0.3206, allocations: 0.6693 MB / 447.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/0.3208, allocations: 185.6 kB / 447.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002539/0.3211, allocations: 214.6 kB / 447.6 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.3211, allocations: 4 kB / 447.6 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3211, allocations: 0 / 447.6 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.3211, allocations: 3.984 kB / 447.6 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003369/0.3245, allocations: 2.159 MB / 449.8 MB, free: 7.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3245, allocations: 0 / 449.8 MB, free: 7.688 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003983/0.3249, allocations: 91.88 kB / 449.9 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001885/0.3251, allocations: 56.81 kB / 449.9 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.134e-05/0.3252, allocations: 12 kB / 449.9 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001501/0.3267, allocations: 1.736 MB / 451.7 MB, free: 5.652 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3267, allocations: 0 / 451.7 MB, free: 5.652 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/0.3285, allocations: 0.9832 MB / 452.6 MB, free: 4.641 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008454/0.3293, allocations: 442.6 kB / 453.1 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.3295, allocations: 12 kB / 453.1 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005059/0.33, allocations: 59.88 kB / 453.1 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.3301, allocations: 39.89 kB / 453.2 MB, free: 4.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.172e-05/0.3301, allocations: 8 kB / 453.2 MB, free: 4.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003103/0.3332, allocations: 2.259 MB / 455.5 MB, free: 1.793 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3332, allocations: 0 / 455.5 MB, free: 1.793 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008008/0.334, allocations: 263.4 kB / 455.7 MB, free: 1.535 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.003022/0.3371, allocations: 1.88 MB / 457.6 MB, free: 15.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.3384, allocations: 0.6082 MB / 458.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.3384, allocations: 0 / 458.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006394/0.339, allocations: 363 kB / 458.6 MB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.3403, allocations: 289.9 kB / 458.8 MB, free: 14.51 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0298/0.3701, allocations: 19.69 MB / 478.5 MB, free: 10.51 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001347/0.3715, allocations: 1.504 MB / 480 MB, free: 8.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007878/0.3723, allocations: 303.1 kB / 480.3 MB, free: 8.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008991/0.3732, allocations: 0.6399 MB / 481 MB, free: 8.039 MB / 398.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3733, allocations: 3.938 kB / 481 MB, free: 8.035 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07262/0.4459, allocations: 36.94 MB / 0.5058 GB, free: 3.355 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.41/14.86, allocations: 7.812 kB / 0.5058 GB, free: 3.352 MB / 430.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1)