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.0009736/0.0009736, 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.0009959/0.0009959, 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.404/1.404, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002412/0.002412, allocations: 67.38 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1391, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008915/0.148, allocations: 6.048 MB / 363.6 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003749/0.1518, allocations: 2.314 MB / 365.9 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006419/0.1525, allocations: 15.94 kB / 366 MB, free: 5.609 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001565/0.1541, allocations: 0.6301 MB / 366.6 MB, free: 4.977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001007/0.1552, allocations: 441.6 kB / 367 MB, free: 4.543 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008892/0.1561, allocations: 410.7 kB / 367.4 MB, free: 4.145 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001415/0.1575, allocations: 1.305 MB / 368.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006068/0.1581, allocations: 477.7 kB / 369.2 MB, free: 2.355 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005169/0.1586, allocations: 494.3 kB / 369.7 MB, free: 1.871 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005609/0.1592, allocations: 0.5916 MB / 370.3 MB, free: 1.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001453/0.1594, allocations: 120 kB / 370.4 MB, free: 1.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002826/0.1597, allocations: 168 kB / 370.5 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004152/0.1601, allocations: 0.6544 MB / 371.2 MB, free: 348 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1592/0.3193, allocations: 0.8895 MB / 372.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002648/0.3219, allocations: 2.598 MB / 374.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.322, allocations: 2.562 kB / 374.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.322, allocations: 0 / 374.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.165e-05/0.322, allocations: 0 / 374.7 MB, free: 12.09 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.0045/0.3265, allocations: 2.371 MB / 377.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.3266, allocations: 11.05 kB / 377.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001432/0.3268, allocations: 106.4 kB / 377.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003676/0.3271, allocations: 213.8 kB / 377.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0028/0.3299, allocations: 1.665 MB / 379 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002742/0.3302, allocations: 134.9 kB / 379.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.3304, allocations: 59.47 kB / 379.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001722/0.3321, allocations: 0.824 MB / 380.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.419e-05/0.3321, allocations: 3.562 kB / 380.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-05/0.3322, allocations: 29.38 kB / 380.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.243e-05/0.3323, allocations: 16.38 kB / 380.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/0.3337, allocations: 0.5447 MB / 380.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008265/0.3419, allocations: 4.016 MB / 384.7 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001361/0.3434, allocations: 0.5448 MB / 385.2 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007171/0.3441, allocations: 356.6 kB / 385.6 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.3441, allocations: 8.656 kB / 385.6 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.3442, allocations: 38.25 kB / 385.6 MB, free: 7.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.745e-06/0.3442, allocations: 0 / 385.6 MB, free: 7.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002631/0.3468, allocations: 0.9451 MB / 386.6 MB, free: 6.918 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.696e-05/0.3469, allocations: 265.4 kB / 386.8 MB, free: 6.605 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00487/0.3518, allocations: 3.16 MB / 390 MB, free: 5.586 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.641e-05/0.3519, allocations: 40.92 kB / 390 MB, free: 5.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000633/0.3525, allocations: 0.8557 MB / 390.9 MB, free: 4.879 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.11e-05/0.3526, allocations: 115.6 kB / 391 MB, free: 4.793 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.3528, allocations: 90.45 kB / 391.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.347e-05/0.3529, allocations: 325.6 kB / 391.4 MB, free: 4.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004662/0.3533, allocations: 208.3 kB / 391.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004842/0.3538, allocations: 396.7 kB / 392 MB, free: 4.031 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008957/0.3547, allocations: 0.5309 MB / 392.5 MB, free: 3.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.3548, allocations: 1.031 kB / 392.5 MB, free: 3.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001684/0.3564, allocations: 0.7795 MB / 393.3 MB, free: 3.285 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.3565, allocations: 10.81 kB / 393.3 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.689e-06/0.3565, allocations: 2.75 kB / 393.3 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003117/0.3568, allocations: 60.77 kB / 393.4 MB, free: 3.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004533/0.3573, allocations: 119.6 kB / 393.5 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001408/0.3587, allocations: 1.798 MB / 395.3 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.3597, allocations: 77.25 kB / 395.4 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.057e-05/0.3598, allocations: 17.66 kB / 395.4 MB, free: 1.441 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.001098/0.3609, allocations: 0.6622 MB / 396 MB, free: 1.066 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004184/0.3613, allocations: 187.2 kB / 396.2 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003509/0.3617, allocations: 215.5 kB / 396.4 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.3617, allocations: 8.156 kB / 396.4 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.3617, allocations: 1.312 kB / 396.4 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.3617, allocations: 4.891 kB / 396.4 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003545/0.3653, allocations: 2.157 MB / 398.6 MB, free: 15.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.3653, allocations: 3.219 kB / 398.6 MB, free: 15.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003872/0.3657, allocations: 85.75 kB / 398.7 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001973/0.3659, allocations: 57.61 kB / 398.7 MB, free: 15.37 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.132e-05/0.3659, allocations: 10.91 kB / 398.8 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001446/0.3674, allocations: 1.739 MB / 400.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3674, allocations: 7.594 kB / 400.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00194/0.3694, allocations: 0.9822 MB / 401.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007829/0.3702, allocations: 440.6 kB / 401.9 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002056/0.3704, allocations: 16.64 kB / 401.9 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005608/0.3709, allocations: 58.52 kB / 402 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.3711, allocations: 39.25 kB / 402 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.351e-05/0.3711, allocations: 11.38 kB / 402 MB, free: 12.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003468/0.3746, allocations: 2.256 MB / 404.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3746, allocations: 0 / 404.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001067/0.3756, allocations: 251.5 kB / 404.5 MB, free: 10.84 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.003051/0.3787, allocations: 1.896 MB / 406.4 MB, free: 9.094 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.3801, allocations: 0.6261 MB / 407.1 MB, free: 8.473 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3801, allocations: 0 / 407.1 MB, free: 8.473 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006318/0.3807, allocations: 370.5 kB / 407.4 MB, free: 8.105 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001352/0.3821, allocations: 297.1 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.03486/0.4169, 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.001658/0.4187, allocations: 1.497 MB / 432.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001092/0.4198, 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.001253/0.421, allocations: 0.6399 MB / 433 MB, free: 13.18 MB / 350.1 MB Notification: Performance of SimCode: time 1.653e-06/0.4211, allocations: 0 / 433 MB, free: 13.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07608/0.4972, allocations: 37.76 MB / 470.8 MB, free: 7.688 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/12.97, allocations: 7.938 kB / 470.8 MB, free: 7.68 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 & /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)