Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",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.001444/0.001444, allocations: 105.9 kB / 16.5 MB, free: 6.688 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.001525/0.001525, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.386/1.386, allocations: 222.9 MB / 241.1 MB, free: 13.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009852/0.0009853, allocations: 52.92 kB / 300.1 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09044/0.09144, allocations: 49.45 MB / 349.5 MB, free: 4.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006343/0.09782, allocations: 5.486 MB / 355 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002437/0.1003, allocations: 1.684 MB / 356.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000295/0.1006, allocations: 15.94 kB / 356.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009337/0.1016, allocations: 498.3 kB / 357.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005105/0.1021, allocations: 314.6 kB / 357.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007254/0.1028, allocations: 342.7 kB / 357.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008029/0.1036, allocations: 0.8378 MB / 358.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004928/0.1041, allocations: 299.6 kB / 359 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003596/0.1045, allocations: 310.8 kB / 359.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004972/0.105, allocations: 414.4 kB / 359.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.047e-05/0.1051, allocations: 40 kB / 359.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001912/0.1053, allocations: 87.92 kB / 359.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004106/0.1057, allocations: 0.5493 MB / 360.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000522/0.1062, allocations: 0.6908 MB / 361 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001539/0.1078, allocations: 2.032 MB / 363.1 MB, free: 6.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1078, allocations: 7.984 kB / 363.1 MB, free: 6.922 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.92e-07/0.1078, allocations: 0 / 363.1 MB, free: 6.922 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.1078, allocations: 0 / 363.1 MB, free: 6.922 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003008/0.1109, allocations: 2.075 MB / 365.1 MB, free: 4.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.1109, allocations: 12.03 kB / 365.2 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000111/0.111, allocations: 86.7 kB / 365.2 MB, free: 4.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002471/0.1113, allocations: 186.6 kB / 365.4 MB, free: 4.496 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001947/0.1132, allocations: 1.478 MB / 366.9 MB, free: 2.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002169/0.1135, allocations: 94.66 kB / 367 MB, free: 2.875 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.145e-05/0.1135, allocations: 48 kB / 367 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.1147, allocations: 0.5893 MB / 367.6 MB, free: 2.195 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.1147, allocations: 0 / 367.6 MB, free: 2.195 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.533e-05/0.1148, allocations: 28 kB / 367.7 MB, free: 2.168 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.401e-05/0.1148, allocations: 12 kB / 367.7 MB, free: 2.156 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007364/0.1155, allocations: 343.7 kB / 368 MB, free: 1.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2029/0.3185, allocations: 3.255 MB / 371.3 MB, free: 23.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.3199, allocations: 384.4 kB / 371.6 MB, free: 23.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005454/0.3204, allocations: 183.4 kB / 371.8 MB, free: 23.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.16e-05/0.3205, allocations: 6 kB / 371.8 MB, free: 23.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.3205, allocations: 35.83 kB / 371.9 MB, free: 23.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.304e-06/0.3205, allocations: 0 / 371.9 MB, free: 23.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002144/0.3227, allocations: 0.7018 MB / 372.6 MB, free: 23.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/0.3227, allocations: 210.3 kB / 372.8 MB, free: 23.44 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004454/0.3272, allocations: 2.888 MB / 375.6 MB, free: 22.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.318e-05/0.3273, allocations: 32.17 kB / 375.7 MB, free: 22.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006383/0.3279, allocations: 0.7826 MB / 376.5 MB, free: 21.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.868e-05/0.328, allocations: 81.33 kB / 376.5 MB, free: 21.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.3281, allocations: 69.98 kB / 376.6 MB, free: 21.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.765e-05/0.3282, allocations: 321.7 kB / 376.9 MB, free: 21.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003581/0.3286, allocations: 118.5 kB / 377 MB, free: 21.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004271/0.329, allocations: 288.8 kB / 377.3 MB, free: 21.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006604/0.3297, allocations: 366.4 kB / 377.7 MB, free: 21.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.3297, allocations: 5 kB / 377.7 MB, free: 21.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001273/0.331, allocations: 0.5531 MB / 378.2 MB, free: 20.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.614e-05/0.331, allocations: 8.516 kB / 378.2 MB, free: 20.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.331, allocations: 3.656 kB / 378.3 MB, free: 20.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003047/0.3313, allocations: 56.77 kB / 378.3 MB, free: 20.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003141/0.3317, allocations: 80.25 kB / 378.4 MB, free: 20.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.3331, allocations: 1.548 MB / 379.9 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005564/0.3336, allocations: 68.19 kB / 380 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.174e-05/0.3337, allocations: 17.09 kB / 380 MB, free: 19.3 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0007849/0.3345, allocations: 0.5763 MB / 380.6 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002118/0.3347, allocations: 160.9 kB / 380.7 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001259/0.336, allocations: 0.5179 MB / 381.3 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.336, allocations: 1.438 kB / 381.3 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.336, allocations: 2.062 kB / 381.3 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.336, allocations: 0.6094 kB / 381.3 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003062/0.3391, allocations: 1.694 MB / 383 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3391, allocations: 1.094 kB / 383 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002409/0.3393, allocations: 46.52 kB / 383 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001895/0.3395, allocations: 58.8 kB / 383.1 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.3396, allocations: 10.84 kB / 383.1 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001209/0.3408, allocations: 1.506 MB / 384.6 MB, free: 16.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3408, allocations: 1.344 kB / 384.6 MB, free: 16.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.3424, allocations: 0.7115 MB / 385.3 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005558/0.343, allocations: 374.5 kB / 385.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001345/0.3432, allocations: 7.484 kB / 385.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004334/0.3436, allocations: 55.44 kB / 385.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.3437, allocations: 28.06 kB / 385.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.986e-05/0.3438, allocations: 9.391 kB / 385.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003001/0.3468, allocations: 2.061 MB / 387.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3468, allocations: 0 / 387.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008268/0.3476, allocations: 203.2 kB / 388 MB, free: 15.13 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002467/0.3501, allocations: 1.515 MB / 389.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001025/0.3511, allocations: 435.7 kB / 390 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3511, allocations: 1.5 kB / 390 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004785/0.3516, allocations: 269.8 kB / 390.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.3527, allocations: 220.2 kB / 390.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03118/0.3839, allocations: 20.31 MB / 410.8 MB, free: 10.6 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001125/0.385, allocations: 1.359 MB / 412.1 MB, free: 9.215 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000614/0.3857, allocations: 245.8 kB / 412.4 MB, free: 8.973 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008599/0.3865, allocations: 0.5734 MB / 412.9 MB, free: 8.398 MB / 318.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3865, allocations: 0 / 412.9 MB, free: 8.398 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05426/0.4408, allocations: 31.06 MB / 444 MB, free: 9.602 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003239/0.4412, allocations: 276.5 kB / 444.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.504/2.945, allocations: 3.234 kB / 444.3 MB, free: 9.242 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1)