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_Stack.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_Stack,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001271/0.001271, allocations: 122.2 kB / 17.78 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001315/0.001315, allocations: 197.2 kB / 18.72 MB, free: 4.418 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.425/1.425, allocations: 227.7 MB / 247.2 MB, free: 10.29 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.001891/0.001891, allocations: 63.91 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2736, allocations: 50.55 MB / 409.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01173/0.2853, allocations: 10.09 MB / 419.1 MB, free: 7.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006095/0.2915, allocations: 3.63 MB / 422.8 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001164/0.2927, allocations: 27.88 kB / 422.8 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002989/0.2957, allocations: 1.187 MB / 424 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001804/0.2976, allocations: 0.6607 MB / 424.6 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001366/0.299, allocations: 492.6 kB / 425.1 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008057/0.307, allocations: 7.352 MB / 432.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005145/0.3122, allocations: 4.485 MB / 437 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004077/0.3163, allocations: 2.839 MB / 439.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00444/0.3208, allocations: 2.927 MB / 442.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001603/0.3224, allocations: 0.6875 MB / 443.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001926/0.3244, allocations: 0.7226 MB / 444.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005392/0.3298, allocations: 5.822 MB / 450 MB, free: 8.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0122/0.342, allocations: 7.191 MB / 457.2 MB, free: 1.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02612/0.3682, allocations: 25.01 MB / 482.2 MB, free: 7.934 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.3682, allocations: 0 / 482.2 MB, free: 7.934 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3682, allocations: 0 / 482.2 MB, free: 7.934 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007504/0.369, allocations: 0 / 482.2 MB, free: 7.934 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 837 * Number of variables: 837 Notification: Performance of Generate backend data structure: time 0.05053/0.4195, allocations: 19.23 MB / 0.4896 GB, free: 4.543 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.126e-05/0.4196, allocations: 8.031 kB / 0.4896 GB, free: 4.535 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001919/0.4215, allocations: 0.4918 MB / 0.4901 GB, free: 4.031 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006299/0.4278, allocations: 1.635 MB / 0.4917 GB, free: 2.387 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04072/0.4686, allocations: 17.92 MB / 0.5092 GB, free: 400 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004207/0.4691, allocations: 332.2 kB / 0.5095 GB, free: 60 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009142/0.47, allocations: 324 kB / 0.5099 GB, free: 15.74 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0135/0.4835, allocations: 6.499 MB / 0.5162 GB, free: 9.016 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.145e-05/0.4836, allocations: 7.938 kB / 0.5162 GB, free: 9.008 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006704/0.4843, allocations: 144 kB / 0.5163 GB, free: 8.867 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.249e-05/0.4844, allocations: 80 kB / 0.5164 GB, free: 8.789 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01109/0.4955, allocations: 5.13 MB / 0.5214 GB, free: 3.648 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.481/0.9766, allocations: 33.44 MB / 0.5541 GB, free: 99.27 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0069/0.9835, allocations: 4.31 MB / 0.5583 GB, free: 97.32 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00377/0.9873, allocations: 2.583 MB / 0.5608 GB, free: 96.19 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001105/0.9875, allocations: 19.06 kB / 0.5608 GB, free: 96.19 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.888e-05/0.9875, allocations: 65.28 kB / 0.5609 GB, free: 96.14 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.647e-06/0.9876, allocations: 0 / 0.5609 GB, free: 96.14 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.0168/1.004, allocations: 7.617 MB / 0.5683 GB, free: 89.38 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002071/1.005, allocations: 0.9824 MB / 0.5693 GB, free: 88.16 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06311/1.068, allocations: 35.88 MB / 0.6043 GB, free: 52.39 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004969/1.068, allocations: 61.7 kB / 0.6044 GB, free: 52.32 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01174/1.08, allocations: 7.531 MB / 0.6118 GB, free: 45.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007066/1.081, allocations: 0.5775 MB / 0.6123 GB, free: 44.59 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007276/1.082, allocations: 427.4 kB / 0.6127 GB, free: 44.17 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.372e-05/1.082, allocations: 301.1 kB / 0.613 GB, free: 43.87 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003045/1.085, allocations: 1.975 MB / 0.6149 GB, free: 41.89 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003506/1.088, allocations: 2.852 MB / 0.6177 GB, free: 38.73 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005889/1.094, allocations: 4.204 MB / 0.6218 GB, free: 34.33 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.57e-05/1.094, allocations: 4 kB / 0.6218 GB, free: 34.33 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.0147/1.109, allocations: 6.107 MB / 0.6278 GB, free: 28.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/1.109, allocations: 15.72 kB / 0.6278 GB, free: 28.19 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.35e-05/1.109, allocations: 15.94 kB / 0.6278 GB, free: 28.17 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009056/1.11, allocations: 371.5 kB / 0.6282 GB, free: 27.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002192/1.112, allocations: 0.698 MB / 0.6289 GB, free: 27.11 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00418/1.116, allocations: 4.614 MB / 0.6334 GB, free: 22.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007651/1.124, allocations: 0.6558 MB / 0.634 GB, free: 21.79 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004257/1.124, allocations: 84 kB / 0.6341 GB, free: 21.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 14 (cccvCharger.CV,energy.local_reset,stack.cell[3,2].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,1].cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (222): * Single equations (assignments): 221 * 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 {(3,24)} Notification: Performance of prepare postOptimizeDAE: time 0.009503/1.134, allocations: 8.141 MB / 0.642 GB, free: 13.56 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00486/1.139, allocations: 1.478 MB / 0.6435 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01197/1.151, allocations: 6.04 MB / 0.6494 GB, free: 6.023 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/1.151, allocations: 12 kB / 0.6494 GB, free: 6.012 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/1.151, allocations: 4 kB / 0.6494 GB, free: 6.008 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/1.151, allocations: 7.969 kB / 0.6494 GB, free: 6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04456/1.195, allocations: 18.59 MB / 0.6676 GB, free: 3.391 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/1.195, allocations: 0 / 0.6676 GB, free: 3.391 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002017/1.197, allocations: 0.5538 MB / 0.6681 GB, free: 2.836 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008865/1.198, allocations: 296 kB / 0.6684 GB, free: 2.547 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001617/1.199, allocations: 42.17 kB / 0.6684 GB, free: 2.508 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00513/1.204, allocations: 4.037 MB / 0.6724 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/1.204, allocations: 0 / 0.6724 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0177/1.221, allocations: 7.704 MB / 0.6799 GB, free: 6.602 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01237/1.234, allocations: 4.272 MB / 0.6841 GB, free: 2.32 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006006/1.24, allocations: 43.98 kB / 0.6841 GB, free: 2.277 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007889/1.248, allocations: 0.659 MB / 0.6847 GB, free: 1.617 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001184/1.249, allocations: 440.6 kB / 0.6852 GB, free: 1.188 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001817/1.249, allocations: 44 kB / 0.6852 GB, free: 1.145 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.05339/1.303, allocations: 25.68 MB / 0.7103 GB, free: 7.559 MB / 0.5138 GB Notification: Performance of sort global known variables: time 7.22e-07/1.303, allocations: 0 / 0.7103 GB, free: 7.559 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01029/1.313, allocations: 1.837 MB / 0.7121 GB, free: 5.789 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].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 (136): * Single equations (assignments): 135 * 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 {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02135/1.334, allocations: 8.656 MB / 0.7205 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009111/1.344, allocations: 4.486 MB / 0.7249 GB, free: 8.758 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-05/1.344, allocations: 5.219 kB / 0.7249 GB, free: 8.754 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004461/1.348, allocations: 2.277 MB / 0.7271 GB, free: 6.469 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02259/1.371, allocations: 2.097 MB / 0.7292 GB, free: 4.391 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6969/2.068, allocations: 226.3 MB / 0.9502 GB, free: 2.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02603/2.094, allocations: 10.19 MB / 0.9602 GB, free: 8.273 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.2471/2.341, allocations: 7.69 MB / 0.9677 GB, free: 190.3 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01437/2.355, allocations: 6.102 MB / 0.9737 GB, free: 186.8 MB / 0.5607 GB Notification: Performance of SimCode: time 1.213e-06/2.355, allocations: 0.7812 kB / 0.9737 GB, free: 186.8 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.654/3.009, allocations: 330.2 MB / 1.296 GB, free: 76.52 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 201.4/204.4, allocations: 6.188 kB / 1.296 GB, free: 76.52 MB / 0.5607 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack_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_Stack.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1)