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.001216/0.001216, allocations: 93.12 kB / 16.65 MB, free: 6.59 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.001294/0.001295, allocations: 181.3 kB / 17.56 MB, free: 6.203 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.418/1.418, allocations: 223.3 MB / 241.6 MB, free: 108 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002989/0.0002989, allocations: 4 kB / 301.5 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1283, allocations: 50.42 MB / 351.9 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007413/0.1358, allocations: 5.556 MB / 357.5 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004305/0.1401, allocations: 2.085 MB / 359.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009189/0.1411, allocations: 19.88 kB / 359.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001751/0.1429, allocations: 0.5955 MB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001336/0.1442, allocations: 354.3 kB / 360.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.1455, allocations: 374.2 kB / 360.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002113/0.1476, allocations: 1.216 MB / 362.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009535/0.1486, allocations: 417.5 kB / 362.5 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008038/0.1494, allocations: 398.3 kB / 362.9 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009699/0.1504, allocations: 0.5018 MB / 363.4 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002535/0.1506, allocations: 48 kB / 363.5 MB, free: 8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004853/0.1511, allocations: 99.97 kB / 363.6 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005994/0.1517, allocations: 0.5803 MB / 364.2 MB, free: 7.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001342/0.1531, allocations: 0.8168 MB / 365 MB, free: 6.492 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002722/0.1558, allocations: 2.472 MB / 367.4 MB, free: 4.012 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.1559, allocations: 3.938 kB / 367.4 MB, free: 4.008 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.1559, allocations: 0 / 367.4 MB, free: 4.008 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.14e-05/0.156, allocations: 0 / 367.4 MB, free: 4.008 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.004716/0.1607, allocations: 2.034 MB / 369.5 MB, free: 1.914 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/0.1607, allocations: 8.031 kB / 369.5 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003289/0.1611, allocations: 114.6 kB / 369.6 MB, free: 1.785 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007326/0.1618, allocations: 214.3 kB / 369.8 MB, free: 1.574 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2053/0.3672, allocations: 1.65 MB / 371.5 MB, free: 22.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003636/0.3676, allocations: 134.6 kB / 371.6 MB, free: 22.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.3677, allocations: 60.14 kB / 371.6 MB, free: 22.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001799/0.3695, allocations: 0.8394 MB / 372.5 MB, free: 22.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.3696, allocations: 3.344 kB / 372.5 MB, free: 22.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.833e-05/0.3696, allocations: 27.92 kB / 372.5 MB, free: 22.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/0.3697, allocations: 19.19 kB / 372.5 MB, free: 22.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/0.3709, allocations: 0.5587 MB / 373.1 MB, free: 22.58 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007716/0.3786, allocations: 4.052 MB / 377.1 MB, free: 20.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00149/0.3802, allocations: 0.5702 MB / 377.7 MB, free: 20.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008998/0.3811, allocations: 374.4 kB / 378.1 MB, free: 20.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.3811, allocations: 3.094 kB / 378.1 MB, free: 20.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.3812, allocations: 43.61 kB / 378.1 MB, free: 20.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.904e-06/0.3812, allocations: 0 / 378.1 MB, free: 20.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002681/0.3839, allocations: 1.004 MB / 379.1 MB, free: 19.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.66e-05/0.384, allocations: 267.7 kB / 379.4 MB, free: 19.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005412/0.3894, allocations: 3.143 MB / 382.5 MB, free: 18.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.3895, allocations: 33.05 kB / 382.6 MB, free: 18.56 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007284/0.3902, allocations: 0.8569 MB / 383.4 MB, free: 17.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.3904, allocations: 118.1 kB / 383.5 MB, free: 17.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.419e-05/0.3905, allocations: 45.75 kB / 383.6 MB, free: 17.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.292e-05/0.3905, allocations: 324.6 kB / 383.9 MB, free: 17.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005414/0.3911, allocations: 224.4 kB / 384.1 MB, free: 17.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005767/0.3917, allocations: 408.6 kB / 384.5 MB, free: 17.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009853/0.3927, allocations: 0.5355 MB / 385.1 MB, free: 16.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.3927, allocations: 5.031 kB / 385.1 MB, free: 16.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00178/0.3945, allocations: 0.7941 MB / 385.9 MB, free: 16.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.3945, allocations: 6.859 kB / 385.9 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.3945, allocations: 3.25 kB / 385.9 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003136/0.3948, allocations: 71.53 kB / 385.9 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004852/0.3953, allocations: 122 kB / 386.1 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.3968, allocations: 1.65 MB / 387.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007206/0.3976, allocations: 89.75 kB / 387.8 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-05/0.3976, allocations: 18.73 kB / 387.8 MB, free: 14.86 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.001015/0.3987, allocations: 0.655 MB / 388.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002413/0.3989, allocations: 184 kB / 388.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002926/0.3992, allocations: 220.9 kB / 388.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.3992, allocations: 5.078 kB / 388.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.3992, allocations: 4 kB / 388.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3992, allocations: 0 / 388.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003246/0.4025, allocations: 2.195 MB / 391.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.4025, allocations: 0 / 391.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003838/0.4029, allocations: 85.31 kB / 391.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000187/0.4031, allocations: 65.89 kB / 391.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/0.4031, allocations: 10.73 kB / 391.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.4043, allocations: 1.592 MB / 392.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.4043, allocations: 0 / 392.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.4062, allocations: 1.019 MB / 393.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000579/0.4068, allocations: 444.5 kB / 394.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001468/0.4069, allocations: 15.94 kB / 394.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005364/0.4075, allocations: 64.83 kB / 394.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.648e-05/0.4076, allocations: 45.97 kB / 394.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/0.4076, allocations: 7.281 kB / 394.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002566/0.4102, allocations: 2.251 MB / 396.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4102, allocations: 0 / 396.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007878/0.411, allocations: 257.3 kB / 396.9 MB, free: 9.188 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.002825/0.4138, allocations: 1.948 MB / 398.8 MB, free: 7.414 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.415, allocations: 0.6308 MB / 399.5 MB, free: 6.773 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4151, allocations: 0 / 399.5 MB, free: 6.773 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000568/0.4156, allocations: 379 kB / 399.8 MB, free: 6.391 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.4169, allocations: 279.1 kB / 400.1 MB, free: 6.113 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04388/0.4608, allocations: 23.35 MB / 423.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00132/0.4622, allocations: 1.489 MB / 425 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000821/0.463, allocations: 307.1 kB / 425.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008519/0.4639, allocations: 0.636 MB / 425.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of SimCode: time 1.724e-06/0.4639, allocations: 0 / 425.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06995/0.5339, allocations: 35.9 MB / 461.8 MB, free: 7.34 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000247/0.5342, allocations: 271.6 kB / 462.1 MB, free: 6.977 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.912/3.446, allocations: 3.094 kB / 462.1 MB, free: 6.977 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)