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.001186/0.001186, allocations: 107.9 kB / 16.92 MB, free: 5.684 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.001209/0.001209, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.599/1.599, allocations: 222.9 MB / 241.6 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 43.73 kB / 300.7 MB, free: 5.719 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.105, allocations: 49.44 MB / 350.2 MB, free: 4.27 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006684/0.1117, allocations: 5.487 MB / 355.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002722/0.1145, allocations: 1.715 MB / 357.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004613/0.115, allocations: 15.94 kB / 357.4 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001041/0.116, allocations: 0.5174 MB / 357.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007261/0.1168, allocations: 346.2 kB / 358.2 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007844/0.1176, allocations: 370.3 kB / 358.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009989/0.1186, allocations: 0.8964 MB / 359.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000496/0.1191, allocations: 340.8 kB / 359.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004969/0.1196, allocations: 354.8 kB / 360.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005586/0.1202, allocations: 446.4 kB / 360.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001388/0.1203, allocations: 76 kB / 360.7 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002434/0.1206, allocations: 116 kB / 360.8 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004096/0.121, allocations: 0.5844 MB / 361.4 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007257/0.1217, allocations: 0.7415 MB / 362.1 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001894/0.1236, allocations: 2.087 MB / 364.2 MB, free: 6.152 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.1237, allocations: 3.984 kB / 364.2 MB, free: 6.148 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1237, allocations: 4 kB / 364.2 MB, free: 6.145 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.16e-05/0.1237, allocations: 0 / 364.2 MB, free: 6.145 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.003505/0.1272, allocations: 2.079 MB / 366.3 MB, free: 4.004 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1273, allocations: 8.031 kB / 366.3 MB, free: 3.996 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001118/0.1274, allocations: 90.7 kB / 366.4 MB, free: 3.898 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003176/0.1277, allocations: 186.6 kB / 366.6 MB, free: 3.715 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002021/0.1298, allocations: 1.482 MB / 368.1 MB, free: 2.188 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002058/0.13, allocations: 94.66 kB / 368.1 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.418e-05/0.1301, allocations: 48 kB / 368.2 MB, free: 2.043 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009627/0.131, allocations: 0.5854 MB / 368.8 MB, free: 1.414 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.1311, allocations: 0 / 368.8 MB, free: 1.414 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.844e-05/0.1311, allocations: 20 kB / 368.8 MB, free: 1.395 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.1311, allocations: 16 kB / 368.8 MB, free: 1.379 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000696/0.1318, allocations: 343.8 kB / 369.2 MB, free: 1.043 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1719/0.3037, allocations: 3.243 MB / 372.4 MB, free: 23.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.305, allocations: 388 kB / 372.8 MB, free: 23.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004807/0.3055, allocations: 185.1 kB / 373 MB, free: 23.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.652e-05/0.3055, allocations: 7.672 kB / 373 MB, free: 23.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.3056, allocations: 40.91 kB / 373 MB, free: 23.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.695e-06/0.3056, allocations: 0 / 373 MB, free: 23.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002125/0.3077, allocations: 0.6874 MB / 373.7 MB, free: 23.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.408e-05/0.3078, allocations: 217.2 kB / 373.9 MB, free: 22.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004862/0.3127, allocations: 2.89 MB / 376.8 MB, free: 21.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.757e-05/0.3128, allocations: 34.42 kB / 376.8 MB, free: 21.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006324/0.3134, allocations: 0.7852 MB / 377.6 MB, free: 21.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.11e-05/0.3135, allocations: 72.27 kB / 377.7 MB, free: 21.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/0.3136, allocations: 70 kB / 377.7 MB, free: 21.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.69e-05/0.3137, allocations: 317.4 kB / 378.1 MB, free: 20.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003875/0.3141, allocations: 124.4 kB / 378.2 MB, free: 20.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004413/0.3146, allocations: 296.1 kB / 378.5 MB, free: 20.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006499/0.3152, allocations: 364 kB / 378.8 MB, free: 20.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.3152, allocations: 1.312 kB / 378.8 MB, free: 20.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001368/0.3166, allocations: 0.5563 MB / 379.4 MB, free: 20.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.3166, allocations: 6.219 kB / 379.4 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.3167, allocations: 7.062 kB / 379.4 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003126/0.317, allocations: 58 kB / 379.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000308/0.3173, allocations: 78.69 kB / 379.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.3187, allocations: 1.725 MB / 381.3 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008728/0.3196, allocations: 67.11 kB / 381.3 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.02e-05/0.3196, allocations: 12.44 kB / 381.3 MB, free: 18.52 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.001041/0.3207, allocations: 0.58 MB / 381.9 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000288/0.321, allocations: 166 kB / 382.1 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001206/0.3222, allocations: 0.5131 MB / 382.6 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.3222, allocations: 3.25 kB / 382.6 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.3222, allocations: 0.75 kB / 382.6 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.3222, allocations: 5.344 kB / 382.6 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002765/0.325, allocations: 1.688 MB / 384.3 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.325, allocations: 1.656 kB / 384.3 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002314/0.3253, allocations: 42.05 kB / 384.3 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001639/0.3255, allocations: 57.62 kB / 384.4 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.966e-05/0.3255, allocations: 10.83 kB / 384.4 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001067/0.3266, allocations: 1.672 MB / 386.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3266, allocations: 4.75 kB / 386.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.328, allocations: 0.7023 MB / 386.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005089/0.3285, allocations: 383.6 kB / 387.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000132/0.3287, allocations: 9.656 kB / 387.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004255/0.3291, allocations: 43.08 kB / 387.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.097e-05/0.3292, allocations: 39.17 kB / 387.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.3292, allocations: 5.391 kB / 387.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002604/0.3318, allocations: 2.068 MB / 389.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3318, allocations: 0 / 389.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007854/0.3326, allocations: 202 kB / 389.5 MB, free: 14.18 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.00229/0.3349, allocations: 1.514 MB / 391 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.336, allocations: 451.3 kB / 391.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.336, allocations: 1.375 kB / 391.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004785/0.3365, allocations: 266.8 kB / 391.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.3377, allocations: 226.9 kB / 391.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02617/0.3639, allocations: 20.05 MB / 412 MB, free: 9.344 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001051/0.365, allocations: 1.355 MB / 413.4 MB, free: 7.961 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005906/0.3656, allocations: 237.7 kB / 413.6 MB, free: 7.727 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006797/0.3663, allocations: 0.5735 MB / 414.2 MB, free: 7.152 MB / 318.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3663, allocations: 0 / 414.2 MB, free: 7.152 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1088/0.4751, allocations: 32.07 MB / 446.2 MB, free: 7.328 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.49, allocations: 19.7 kB / 446.2 MB, free: 7.312 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1)