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.001394/0.001394, allocations: 111.7 kB / 17.06 MB, free: 5.988 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.001313/0.001313, allocations: 195.9 kB / 18 MB, free: 5.074 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.38/1.38, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 43.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2621, allocations: 49.43 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007783/0.27, allocations: 6.012 MB / 406.2 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003604/0.2736, allocations: 2.134 MB / 408.4 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004915/0.2741, allocations: 23.88 kB / 408.4 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001503/0.2756, allocations: 0.6263 MB / 409 MB, free: 8 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000899/0.2767, allocations: 405.8 kB / 409.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009374/0.2776, allocations: 409.4 kB / 409.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00147/0.2791, allocations: 1.313 MB / 411.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006861/0.2798, allocations: 469.8 kB / 411.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006518/0.2804, allocations: 498.3 kB / 412.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007435/0.2812, allocations: 0.5799 MB / 412.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001688/0.2814, allocations: 116 kB / 412.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003348/0.2817, allocations: 180 kB / 412.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005516/0.2823, allocations: 0.6505 MB / 413.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008289/0.2831, allocations: 0.8971 MB / 414.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002734/0.2859, allocations: 2.627 MB / 417.1 MB, free: 7.859 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.2859, allocations: 4 kB / 417.1 MB, free: 7.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2859, allocations: 0 / 417.1 MB, free: 7.855 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.163e-05/0.2859, allocations: 0 / 417.1 MB, free: 7.855 MB / 334.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.004087/0.29, allocations: 2.425 MB / 419.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.2901, allocations: 8.031 kB / 419.5 MB, free: 5.363 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001409/0.2902, allocations: 114.6 kB / 419.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003527/0.2906, allocations: 219.5 kB / 419.9 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002704/0.2933, allocations: 1.696 MB / 421.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001461/0.2935, allocations: 112.6 kB / 421.7 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.657e-05/0.2936, allocations: 60 kB / 421.7 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.295, allocations: 0.8297 MB / 422.6 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.2951, allocations: 0 / 422.6 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.787e-05/0.2951, allocations: 28 kB / 422.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.2952, allocations: 20 kB / 422.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.2962, allocations: 0.5477 MB / 423.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006027/0.3023, allocations: 3.993 MB / 427.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.3037, allocations: 0.5168 MB / 427.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008211/0.3045, allocations: 376.8 kB / 428 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.291e-05/0.3045, allocations: 8.281 kB / 428 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.092e-05/0.3046, allocations: 42.78 kB / 428.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/0.3046, allocations: 0 / 428.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002495/0.3071, allocations: 0.95 MB / 429 MB, free: 11.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001655/0.3073, allocations: 268.9 kB / 429.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004444/0.3117, allocations: 3.148 MB / 432.4 MB, free: 8.051 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.846e-05/0.3118, allocations: 33.7 kB / 432.5 MB, free: 8.012 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009071/0.3127, allocations: 0.8692 MB / 433.4 MB, free: 7.137 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.3129, allocations: 123 kB / 433.5 MB, free: 7.016 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000174/0.3131, allocations: 94.2 kB / 433.6 MB, free: 6.918 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.3132, allocations: 322 kB / 433.9 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004801/0.3137, allocations: 205 kB / 434.1 MB, free: 6.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006331/0.3143, allocations: 402 kB / 434.5 MB, free: 5.934 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.3154, allocations: 0.5168 MB / 435 MB, free: 5.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.3154, allocations: 0 / 435 MB, free: 5.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001783/0.3172, allocations: 0.801 MB / 435.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.3172, allocations: 4 kB / 435.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.3172, allocations: 4 kB / 435.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003122/0.3175, allocations: 64.81 kB / 435.9 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004707/0.318, allocations: 116 kB / 436 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001942/0.32, allocations: 1.798 MB / 437.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006233/0.3206, allocations: 75.59 kB / 437.8 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.342e-05/0.3206, allocations: 20.03 kB / 437.9 MB, free: 2.34 MB / 350.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.0009415/0.3216, allocations: 0.6615 MB / 438.5 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002738/0.3219, allocations: 198.7 kB / 438.7 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003093/0.3222, allocations: 214.5 kB / 438.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.3222, allocations: 4 kB / 438.9 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.3222, allocations: 0 / 438.9 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.3222, allocations: 3.984 kB / 438.9 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003616/0.3258, allocations: 2.151 MB / 441.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.3259, allocations: 4.125 kB / 441.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004156/0.3263, allocations: 95.88 kB / 441.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002031/0.3265, allocations: 52.83 kB / 441.2 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.193e-05/0.3266, allocations: 8 kB / 441.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001785/0.3284, allocations: 1.747 MB / 443 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.3284, allocations: 0 / 443 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002096/0.3305, allocations: 0.9846 MB / 444 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008078/0.3313, allocations: 451.7 kB / 444.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001718/0.3315, allocations: 8 kB / 444.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005246/0.332, allocations: 55.94 kB / 444.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.3321, allocations: 35.95 kB / 444.5 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.737e-05/0.3322, allocations: 12 kB / 444.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003247/0.3354, allocations: 2.243 MB / 446.8 MB, free: 9.133 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.3354, allocations: 0 / 446.8 MB, free: 9.133 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009921/0.3364, allocations: 263.5 kB / 447 MB, free: 8.875 MB / 366.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.004006/0.3405, allocations: 1.915 MB / 448.9 MB, free: 7.113 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001376/0.3419, allocations: 0.6002 MB / 449.5 MB, free: 6.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.3419, allocations: 0 / 449.5 MB, free: 6.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007126/0.3426, allocations: 367 kB / 449.9 MB, free: 6.129 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.3439, allocations: 290.1 kB / 450.2 MB, free: 5.844 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03099/0.3749, allocations: 19.76 MB / 469.9 MB, free: 1.777 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001558/0.3765, allocations: 1.493 MB / 471.4 MB, free: 260 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007975/0.3773, allocations: 311.1 kB / 471.7 MB, free: 15.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008867/0.3782, allocations: 0.636 MB / 472.4 MB, free: 15.31 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3782, allocations: 0 / 472.4 MB, free: 15.31 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08697/0.4652, allocations: 36.3 MB / 0.4968 GB, free: 11.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.05/15.51, allocations: 12.02 kB / 0.4968 GB, free: 11.3 MB / 430.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)