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.001066/0.001066, allocations: 108.2 kB / 16.62 MB, free: 6.961 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.001014/0.001015, allocations: 189.8 kB / 17.55 MB, free: 6.066 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.358/1.358, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001112, allocations: 45.02 kB / 300.2 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09908/0.1002, allocations: 49.44 MB / 349.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007447/0.1077, allocations: 5.992 MB / 355.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003898/0.1116, allocations: 2.104 MB / 357.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006767/0.1123, allocations: 19.88 kB / 357.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001628/0.114, allocations: 0.5878 MB / 358.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00104/0.1151, allocations: 374.2 kB / 358.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.1161, allocations: 369.5 kB / 359.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001767/0.1179, allocations: 1.306 MB / 360.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001098/0.119, allocations: 473.7 kB / 360.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001037/0.12, allocations: 0.4905 MB / 361.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001008/0.121, allocations: 0.5838 MB / 362 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002947/0.1214, allocations: 116 kB / 362.1 MB, free: 7.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005405/0.1219, allocations: 184 kB / 362.3 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006112/0.1225, allocations: 0.6544 MB / 362.9 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.1237, allocations: 0.8894 MB / 363.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002496/0.1262, allocations: 2.589 MB / 366.4 MB, free: 3.652 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1262, allocations: 0 / 366.4 MB, free: 3.652 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1262, allocations: 0 / 366.4 MB, free: 3.652 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.845e-05/0.1263, allocations: 0 / 366.4 MB, free: 3.652 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.004848/0.1312, allocations: 2.36 MB / 368.7 MB, free: 1.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.1312, allocations: 8.031 kB / 368.8 MB, free: 1.223 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001328/0.1314, allocations: 110.7 kB / 368.9 MB, free: 1.105 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003579/0.1317, allocations: 210.3 kB / 369.1 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.192/0.3238, allocations: 1.651 MB / 370.7 MB, free: 23.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002892/0.3241, allocations: 132.7 kB / 370.8 MB, free: 23.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.3242, allocations: 63.53 kB / 370.9 MB, free: 23.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001887/0.3261, allocations: 0.8331 MB / 371.7 MB, free: 23.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.3262, allocations: 2.797 kB / 371.7 MB, free: 23.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.421e-05/0.3263, allocations: 27.41 kB / 371.8 MB, free: 23.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.955e-05/0.3263, allocations: 19.55 kB / 371.8 MB, free: 23.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.3275, allocations: 0.5552 MB / 372.3 MB, free: 23.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007243/0.3348, allocations: 3.999 MB / 376.3 MB, free: 21.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/0.3362, allocations: 0.5347 MB / 376.9 MB, free: 21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007925/0.337, allocations: 361.8 kB / 377.2 MB, free: 20.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.401e-05/0.3371, allocations: 3.688 kB / 377.2 MB, free: 20.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.1e-05/0.3371, allocations: 44.8 kB / 377.3 MB, free: 20.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.455e-06/0.3371, allocations: 0 / 377.3 MB, free: 20.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002578/0.3397, allocations: 0.9416 MB / 378.2 MB, free: 20.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.654e-05/0.3398, allocations: 267.8 kB / 378.5 MB, free: 20.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004682/0.3445, allocations: 3.143 MB / 381.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.293e-05/0.3446, allocations: 44.2 kB / 381.7 MB, free: 19.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007298/0.3453, allocations: 0.8559 MB / 382.5 MB, free: 18.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.3454, allocations: 119.3 kB / 382.6 MB, free: 18.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001761/0.3456, allocations: 96.78 kB / 382.7 MB, free: 18.24 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.378e-05/0.3457, allocations: 328.4 kB / 383.1 MB, free: 17.92 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004885/0.3462, allocations: 211.1 kB / 383.3 MB, free: 17.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005988/0.3468, allocations: 390.5 kB / 383.6 MB, free: 17.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009517/0.3477, allocations: 0.5173 MB / 384.2 MB, free: 17.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.3478, allocations: 1.156 kB / 384.2 MB, free: 17.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001687/0.3495, allocations: 0.77 MB / 384.9 MB, free: 16.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.3495, allocations: 6.344 kB / 384.9 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.3495, allocations: 4.609 kB / 384.9 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003261/0.3498, allocations: 71.05 kB / 385 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004792/0.3503, allocations: 113.3 kB / 385.1 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/0.3518, allocations: 1.8 MB / 386.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000781/0.3526, allocations: 78.38 kB / 387 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.089e-05/0.3527, allocations: 21.88 kB / 387 MB, free: 15.17 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.001184/0.3539, allocations: 0.6547 MB / 387.7 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002865/0.3542, allocations: 179.9 kB / 387.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003425/0.3545, allocations: 218.5 kB / 388.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.3545, allocations: 2.969 kB / 388.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.3545, allocations: 4 kB / 388.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.3545, allocations: 3.031 kB / 388.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003392/0.3579, allocations: 2.16 MB / 390.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.358, allocations: 7.688 kB / 390.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003611/0.3583, allocations: 79.28 kB / 390.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001802/0.3585, allocations: 59.73 kB / 390.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.992e-05/0.3586, allocations: 15.86 kB / 390.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001171/0.3597, allocations: 1.738 MB / 392.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3597, allocations: 0 / 392.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0019/0.3617, allocations: 0.9786 MB / 393.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007495/0.3624, allocations: 443.1 kB / 393.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001674/0.3626, allocations: 9.5 kB / 393.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005199/0.3631, allocations: 60.47 kB / 393.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.3632, allocations: 47.8 kB / 393.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.42e-05/0.3633, allocations: 6.875 kB / 393.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002812/0.3661, allocations: 2.248 MB / 395.9 MB, free: 9.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3661, allocations: 0 / 395.9 MB, free: 9.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008994/0.367, allocations: 252.6 kB / 396.2 MB, free: 9.48 MB / 302.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.002729/0.3697, allocations: 1.897 MB / 398.1 MB, free: 7.895 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001182/0.3709, allocations: 0.636 MB / 398.7 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.371, allocations: 0 / 398.7 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005306/0.3715, allocations: 357.7 kB / 399 MB, free: 6.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.3726, allocations: 291 kB / 399.3 MB, free: 6.605 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03906/0.4117, allocations: 23.2 MB / 422.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001138/0.4129, allocations: 1.5 MB / 424 MB, free: 12.48 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007199/0.4136, allocations: 299.2 kB / 424.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007924/0.4144, allocations: 0.6438 MB / 425 MB, free: 11.54 MB / 334.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4144, allocations: 0 / 425 MB, free: 11.54 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06805/0.4825, allocations: 37.29 MB / 462.3 MB, free: 6.586 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002224/0.4827, allocations: 275.8 kB / 462.5 MB, free: 6.223 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.633/3.116, allocations: 0 / 462.5 MB, free: 6.223 MB / 366.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)