Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_1_0-beta_om_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 trunk/package.mo): time 0.001294/0.001294, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.385/1.385, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 63.89 kB / 358.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2864, allocations: 50.54 MB / 409.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007371/0.2938, allocations: 5.554 MB / 414.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003191/0.297, allocations: 1.869 MB / 416.5 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003766/0.2974, allocations: 15.94 kB / 416.5 MB, free: 9.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001165/0.2987, allocations: 0.5213 MB / 417 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000931/0.2996, allocations: 393.8 kB / 417.4 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009297/0.3005, allocations: 370 kB / 417.8 MB, free: 8.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001028/0.3016, allocations: 0.9003 MB / 418.7 MB, free: 7.707 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000523/0.3021, allocations: 324.9 kB / 419 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004772/0.3026, allocations: 370.7 kB / 419.3 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005895/0.3032, allocations: 434.4 kB / 419.8 MB, free: 6.586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001223/0.3033, allocations: 80 kB / 419.8 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002636/0.3036, allocations: 123.9 kB / 420 MB, free: 6.387 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006003/0.3042, allocations: 0.5961 MB / 420.6 MB, free: 5.789 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006935/0.3049, allocations: 0.7376 MB / 421.3 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002106/0.307, allocations: 2.132 MB / 423.4 MB, free: 2.906 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.307, allocations: 0 / 423.4 MB, free: 2.906 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.307, allocations: 0 / 423.4 MB, free: 2.906 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.071e-05/0.3071, allocations: 4 kB / 423.4 MB, free: 2.902 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003168/0.3102, allocations: 2.153 MB / 425.6 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.3103, allocations: 8.031 kB / 425.6 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.3104, allocations: 90.7 kB / 425.7 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000285/0.3107, allocations: 199.7 kB / 425.9 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002288/0.313, allocations: 1.511 MB / 427.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.791e-05/0.3131, allocations: 66.69 kB / 427.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.515e-05/0.3132, allocations: 55.98 kB / 427.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.3143, allocations: 0.5815 MB / 428.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.3143, allocations: 3.938 kB / 428.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.865e-05/0.3144, allocations: 20 kB / 428.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.766e-05/0.3144, allocations: 12 kB / 428.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007811/0.3152, allocations: 343.8 kB / 428.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004791/0.32, allocations: 3.247 MB / 431.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.3212, allocations: 388.3 kB / 432.1 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005004/0.3217, allocations: 184.8 kB / 432.3 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.841e-05/0.3218, allocations: 4 kB / 432.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.847e-05/0.3219, allocations: 38.56 kB / 432.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.956e-06/0.3219, allocations: 0 / 432.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002087/0.324, allocations: 0.706 MB / 433 MB, free: 9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001505/0.3241, allocations: 213.6 kB / 433.2 MB, free: 8.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004228/0.3284, allocations: 2.908 MB / 436.1 MB, free: 5.789 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.14e-05/0.3285, allocations: 29.7 kB / 436.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009813/0.3294, allocations: 0.7861 MB / 436.9 MB, free: 4.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.3296, allocations: 79.31 kB / 437 MB, free: 4.879 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001741/0.3297, allocations: 73.98 kB / 437.1 MB, free: 4.801 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000211/0.33, allocations: 322 kB / 437.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003656/0.3303, allocations: 120.6 kB / 437.5 MB, free: 4.363 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004853/0.3308, allocations: 292.8 kB / 437.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007591/0.3316, allocations: 355.1 kB / 438.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.3316, allocations: 0 / 438.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001355/0.333, allocations: 0.5749 MB / 438.7 MB, free: 3.027 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.333, allocations: 8 kB / 438.7 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.487e-06/0.333, allocations: 4 kB / 438.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002991/0.3333, allocations: 56.83 kB / 438.8 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002952/0.3336, allocations: 75.83 kB / 438.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001906/0.3356, allocations: 1.72 MB / 440.6 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005981/0.3362, allocations: 59.7 kB / 440.7 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.875e-05/0.3362, allocations: 16 kB / 440.7 MB, free: 0.9531 MB / 350.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.0009955/0.3372, allocations: 0.5835 MB / 441.3 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002319/0.3374, allocations: 174.8 kB / 441.4 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001239/0.3387, allocations: 0.5143 MB / 441.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.3387, allocations: 4 kB / 441.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.3387, allocations: 0 / 441.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.3387, allocations: 4 kB / 441.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002726/0.3415, allocations: 1.694 MB / 443.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.3415, allocations: 0 / 443.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002382/0.3417, allocations: 48 kB / 443.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001796/0.3419, allocations: 48.75 kB / 443.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.207e-05/0.3419, allocations: 8 kB / 443.7 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001618/0.3436, allocations: 1.666 MB / 445.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3436, allocations: 0 / 445.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/0.3452, allocations: 0.7158 MB / 446.1 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005743/0.3458, allocations: 395.9 kB / 446.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/0.3459, allocations: 4 kB / 446.5 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004283/0.3463, allocations: 47.95 kB / 446.6 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.615e-05/0.3465, allocations: 27.95 kB / 446.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.258e-05/0.3465, allocations: 12 kB / 446.6 MB, free: 10.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002915/0.3494, allocations: 2.079 MB / 448.7 MB, free: 8.637 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3494, allocations: 0 / 448.7 MB, free: 8.637 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007781/0.3502, allocations: 199.7 kB / 448.9 MB, free: 8.441 MB / 366.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.003073/0.3533, allocations: 1.525 MB / 450.4 MB, free: 7.016 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.3544, allocations: 442.6 kB / 450.8 MB, free: 6.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/0.3544, allocations: 0 / 450.8 MB, free: 6.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005342/0.355, allocations: 273.8 kB / 451.1 MB, free: 6.293 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/0.3562, allocations: 221.9 kB / 451.3 MB, free: 6.074 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02691/0.3831, allocations: 17.54 MB / 468.9 MB, free: 4.199 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00124/0.3845, allocations: 1.355 MB / 470.2 MB, free: 2.812 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006668/0.3851, allocations: 241.6 kB / 470.4 MB, free: 2.574 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007847/0.3859, allocations: 0.5813 MB / 471 MB, free: 1.992 MB / 382.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3859, allocations: 4 kB / 471 MB, free: 1.988 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07659/0.4625, allocations: 32.79 MB / 0.492 GB, free: 1.484 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.22/14.68, allocations: 11.98 kB / 0.492 GB, free: 1.473 MB / 414.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1)