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.001107/0.001107, allocations: 103.5 kB / 16.62 MB, free: 6.812 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.001096/0.001096, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.528/1.528, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001099, allocations: 43.61 kB / 300.2 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09806/0.09917, allocations: 49.45 MB / 349.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007988/0.1072, allocations: 5.475 MB / 355.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002936/0.1102, allocations: 1.684 MB / 356.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005649/0.1107, allocations: 11.94 kB / 356.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001143/0.1119, allocations: 0.4944 MB / 357.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007683/0.1127, allocations: 314.6 kB / 357.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007801/0.1135, allocations: 340.7 kB / 358 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008222/0.1144, allocations: 0.8964 MB / 358.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005429/0.1149, allocations: 336.8 kB / 359.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004566/0.1154, allocations: 362.8 kB / 359.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005688/0.116, allocations: 450.4 kB / 360 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001048/0.1161, allocations: 76 kB / 360.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002451/0.1163, allocations: 116 kB / 360.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004667/0.1168, allocations: 0.5882 MB / 360.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006334/0.1174, allocations: 0.7415 MB / 361.5 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001743/0.1192, allocations: 2.087 MB / 363.6 MB, free: 6.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1192, allocations: 0 / 363.6 MB, free: 6.676 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1192, allocations: 4 kB / 363.6 MB, free: 6.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.11e-05/0.1193, allocations: 0 / 363.6 MB, free: 6.672 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.002812/0.1221, allocations: 2.079 MB / 365.7 MB, free: 4.531 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.1221, allocations: 8.031 kB / 365.7 MB, free: 4.523 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001024/0.1222, allocations: 94.7 kB / 365.8 MB, free: 4.422 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002287/0.1225, allocations: 186.6 kB / 366 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001867/0.1243, allocations: 1.478 MB / 367.5 MB, free: 2.715 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/0.1246, allocations: 94.67 kB / 367.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.126e-05/0.1246, allocations: 48 kB / 367.6 MB, free: 2.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.1257, allocations: 0.5815 MB / 368.2 MB, free: 1.941 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.1257, allocations: 0 / 368.2 MB, free: 1.941 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.744e-05/0.1257, allocations: 24 kB / 368.2 MB, free: 1.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.1258, allocations: 19.94 kB / 368.2 MB, free: 1.898 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006731/0.1264, allocations: 343.8 kB / 368.6 MB, free: 1.562 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1945/0.3209, allocations: 3.256 MB / 371.8 MB, free: 23.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001154/0.3221, allocations: 384.1 kB / 372.2 MB, free: 23.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004684/0.3226, allocations: 182.2 kB / 372.4 MB, free: 23.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.3227, allocations: 3.094 kB / 372.4 MB, free: 23.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.3227, allocations: 37.52 kB / 372.4 MB, free: 23.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.154e-06/0.3227, allocations: 0 / 372.4 MB, free: 23.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002007/0.3247, allocations: 0.6937 MB / 373.1 MB, free: 23.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.699e-05/0.3248, allocations: 210.7 kB / 373.3 MB, free: 23.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004178/0.329, allocations: 2.894 MB / 376.2 MB, free: 22.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.197e-05/0.329, allocations: 27.08 kB / 376.2 MB, free: 22.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006377/0.3297, allocations: 0.7855 MB / 377 MB, free: 21.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.778e-05/0.3298, allocations: 76.91 kB / 377.1 MB, free: 21.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.3299, allocations: 70.08 kB / 377.2 MB, free: 21.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.819e-05/0.33, allocations: 319.1 kB / 377.5 MB, free: 21.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003138/0.3303, allocations: 124.8 kB / 377.6 MB, free: 21.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003869/0.3307, allocations: 289.9 kB / 377.9 MB, free: 21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006563/0.3313, allocations: 358.9 kB / 378.2 MB, free: 20.78 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.3313, allocations: 1.312 kB / 378.2 MB, free: 20.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001254/0.3326, allocations: 0.5601 MB / 378.8 MB, free: 20.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3326, allocations: 10.62 kB / 378.8 MB, free: 20.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3327, allocations: 4.469 kB / 378.8 MB, free: 20.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002204/0.3329, allocations: 60.95 kB / 378.9 MB, free: 20.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002647/0.3332, allocations: 77.44 kB / 378.9 MB, free: 20.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.3344, allocations: 1.723 MB / 380.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005362/0.335, allocations: 63.3 kB / 380.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.039e-05/0.335, allocations: 16.88 kB / 380.7 MB, free: 18.83 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.0008482/0.3359, allocations: 0.5804 MB / 381.3 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002519/0.3361, allocations: 166 kB / 381.5 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001278/0.3374, allocations: 0.5138 MB / 382 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/0.3374, allocations: 7.047 kB / 382 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.3375, allocations: 0 / 382 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.3375, allocations: 1.219 kB / 382 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00303/0.3405, allocations: 1.687 MB / 383.7 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.3405, allocations: 0 / 383.7 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002351/0.3408, allocations: 51.67 kB / 383.7 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000159/0.3409, allocations: 45.78 kB / 383.8 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.341, allocations: 5.719 kB / 383.8 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001163/0.3421, allocations: 1.681 MB / 385.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.3421, allocations: 1.969 kB / 385.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001589/0.3437, allocations: 0.7098 MB / 386.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005736/0.3443, allocations: 382 kB / 386.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001311/0.3445, allocations: 7.156 kB / 386.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004271/0.3449, allocations: 44.03 kB / 386.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.596e-05/0.345, allocations: 30.67 kB / 386.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.345, allocations: 6.188 kB / 386.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003186/0.3482, allocations: 2.065 MB / 388.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3482, allocations: 0 / 388.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009017/0.3491, allocations: 210.5 kB / 388.9 MB, free: 14.49 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.002184/0.3513, allocations: 1.519 MB / 390.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.3524, allocations: 440.4 kB / 390.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3524, allocations: 1.25 kB / 390.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000495/0.3529, allocations: 275.6 kB / 391.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.354, allocations: 230.9 kB / 391.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03007/0.3841, allocations: 20.33 MB / 411.7 MB, free: 9.668 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001007/0.3851, allocations: 1.355 MB / 413 MB, free: 8.285 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005558/0.3857, allocations: 237.7 kB / 413.3 MB, free: 8.051 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006743/0.3864, allocations: 0.5696 MB / 413.9 MB, free: 7.48 MB / 318.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3864, allocations: 5.969 kB / 413.9 MB, free: 7.477 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06423/0.4506, allocations: 31.68 MB / 445.5 MB, free: 8.082 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002338/0.4509, allocations: 277.8 kB / 445.8 MB, free: 7.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.509/2.96, allocations: 0 / 445.8 MB, free: 7.719 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)