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.001678/0.001678, allocations: 107.3 kB / 16.92 MB, free: 6.145 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.001858/0.001858, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.347/1.347, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001077/0.001077, allocations: 52.02 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08666/0.08776, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008158/0.09596, allocations: 6.013 MB / 356.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003984/0.09999, allocations: 2.151 MB / 358.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009283/0.101, allocations: 15.94 kB / 358.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001819/0.1028, allocations: 0.6224 MB / 359 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001028/0.1039, allocations: 401.7 kB / 359.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.1049, allocations: 409.2 kB / 359.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001867/0.1068, allocations: 1.298 MB / 361 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007464/0.1076, allocations: 485.7 kB / 361.5 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006639/0.1082, allocations: 494.3 kB / 362 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008424/0.1091, allocations: 0.5838 MB / 362.6 MB, free: 7.812 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002472/0.1094, allocations: 116 kB / 362.7 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004309/0.1098, allocations: 176 kB / 362.9 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000572/0.1104, allocations: 0.6545 MB / 363.5 MB, free: 6.871 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001153/0.1115, allocations: 0.8855 MB / 364.4 MB, free: 5.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002687/0.1142, allocations: 2.601 MB / 367 MB, free: 3.371 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.1143, allocations: 0 / 367 MB, free: 3.371 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1143, allocations: 0 / 367 MB, free: 3.371 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.665e-05/0.1144, allocations: 0 / 367 MB, free: 3.371 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.006089/0.1205, allocations: 2.356 MB / 369.4 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.238e-05/0.1205, allocations: 12.03 kB / 369.4 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001993/0.1208, allocations: 102.7 kB / 369.5 MB, free: 0.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004591/0.1212, allocations: 210.3 kB / 369.7 MB, free: 0.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1421/0.2634, allocations: 1.656 MB / 371.3 MB, free: 23.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002765/0.2637, allocations: 136 kB / 371.5 MB, free: 23.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.2638, allocations: 64.41 kB / 371.5 MB, free: 23.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/0.2653, allocations: 0.8242 MB / 372.4 MB, free: 23.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.2653, allocations: 0.7188 kB / 372.4 MB, free: 23.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.563e-05/0.2654, allocations: 32.67 kB / 372.4 MB, free: 23.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.16e-05/0.2654, allocations: 19.59 kB / 372.4 MB, free: 23.6 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001037/0.2665, allocations: 0.5482 MB / 373 MB, free: 23.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006042/0.2725, allocations: 4.004 MB / 377 MB, free: 21.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.2739, allocations: 0.5253 MB / 377.5 MB, free: 21.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007186/0.2747, allocations: 357.9 kB / 377.8 MB, free: 20.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-05/0.2747, allocations: 8.219 kB / 377.9 MB, free: 20.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.2747, allocations: 41.2 kB / 377.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.826e-06/0.2747, allocations: 3.578 kB / 377.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002372/0.2771, allocations: 0.9418 MB / 378.8 MB, free: 20.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.995e-05/0.2772, allocations: 267.3 kB / 379.1 MB, free: 20.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004034/0.2812, allocations: 3.143 MB / 382.2 MB, free: 19.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.768e-05/0.2813, allocations: 34.09 kB / 382.3 MB, free: 19.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000616/0.2819, allocations: 0.8597 MB / 383.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.622e-05/0.282, allocations: 122.5 kB / 383.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/0.2822, allocations: 92.72 kB / 383.3 MB, free: 18.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.266e-05/0.2823, allocations: 328.9 kB / 383.7 MB, free: 18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004633/0.2827, allocations: 212.3 kB / 383.9 MB, free: 17.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005181/0.2833, allocations: 393 kB / 384.3 MB, free: 17.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008731/0.2841, allocations: 0.5176 MB / 384.8 MB, free: 17.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.2842, allocations: 1.125 kB / 384.8 MB, free: 17.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001601/0.2858, allocations: 0.7776 MB / 385.6 MB, free: 16.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.2858, allocations: 8.984 kB / 385.6 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.2858, allocations: 3.656 kB / 385.6 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002917/0.2861, allocations: 63.58 kB / 385.6 MB, free: 16.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004755/0.2866, allocations: 121.2 kB / 385.7 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.288, allocations: 1.793 MB / 387.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007585/0.2888, allocations: 82.89 kB / 387.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.447e-05/0.2889, allocations: 18.22 kB / 387.6 MB, free: 15.24 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.0009028/0.2898, allocations: 0.6608 MB / 388.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002492/0.29, allocations: 179.3 kB / 388.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002477/0.2903, allocations: 213.9 kB / 388.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.2903, allocations: 6.438 kB / 388.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2903, allocations: 0 / 388.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.2903, allocations: 7.984 kB / 388.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003004/0.2933, allocations: 2.161 MB / 390.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.2933, allocations: 0 / 390.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003756/0.2937, allocations: 84.72 kB / 390.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001769/0.2939, allocations: 63.8 kB / 391 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.2939, allocations: 8 kB / 391 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001196/0.2951, allocations: 1.744 MB / 392.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2952, allocations: 0 / 392.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002065/0.2972, allocations: 0.975 MB / 393.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007795/0.298, allocations: 448.1 kB / 394.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001768/0.2982, allocations: 8.219 kB / 394.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005309/0.2988, allocations: 56.09 kB / 394.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.2989, allocations: 42.05 kB / 394.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-05/0.2989, allocations: 11.25 kB / 394.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002713/0.3016, allocations: 2.247 MB / 396.5 MB, free: 9.508 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3016, allocations: 0 / 396.5 MB, free: 9.508 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000922/0.3026, allocations: 254.2 kB / 396.8 MB, free: 9.32 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.00289/0.3055, allocations: 1.901 MB / 398.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001279/0.3068, allocations: 0.6321 MB / 399.3 MB, free: 6.957 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3068, allocations: 0 / 399.3 MB, free: 6.957 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005217/0.3073, allocations: 363.1 kB / 399.7 MB, free: 6.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001345/0.3087, allocations: 294.6 kB / 400 MB, free: 6.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02908/0.3377, allocations: 22.86 MB / 422.8 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/0.3391, allocations: 1.493 MB / 424.3 MB, free: 12.53 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008253/0.3399, allocations: 295.2 kB / 424.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009428/0.3409, allocations: 0.6476 MB / 425.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3409, allocations: 0 / 425.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.12/0.4609, allocations: 37.69 MB / 462.9 MB, free: 6.207 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/12, allocations: 15.95 kB / 462.9 MB, free: 6.191 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)