Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.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_Stack,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001235/0.001236, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.001322/0.001322, allocations: 191 kB / 18 MB, free: 4.977 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.328/1.328, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009841/0.0009841, allocations: 47.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2632, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01105/0.2742, allocations: 10.05 MB / 410.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00503/0.2793, allocations: 3.466 MB / 413.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008589/0.2802, allocations: 23.88 kB / 413.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002469/0.2827, allocations: 1.175 MB / 414.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001392/0.2841, allocations: 0.6412 MB / 415.6 MB, free: 9.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001172/0.2853, allocations: 494.6 kB / 416.1 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007818/0.2931, allocations: 7.339 MB / 423.4 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005217/0.2984, allocations: 4.458 MB / 427.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003713/0.3021, allocations: 2.839 MB / 430.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004098/0.3062, allocations: 2.927 MB / 433.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002054/0.3083, allocations: 0.6758 MB / 434.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002657/0.311, allocations: 0.7226 MB / 435 MB, free: 5.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005534/0.3165, allocations: 5.806 MB / 440.8 MB, free: 40 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01021/0.3268, allocations: 7.188 MB / 448 MB, free: 8.809 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02667/0.3535, allocations: 24.88 MB / 472.9 MB, free: 15.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.739e-06/0.3535, allocations: 3.984 kB / 472.9 MB, free: 15.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3535, allocations: 0 / 472.9 MB, free: 15.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0009741/0.3545, allocations: 0 / 472.9 MB, free: 15.86 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.05433/0.4089, allocations: 18.65 MB / 491.6 MB, free: 13.05 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.4089, allocations: 12.03 kB / 491.6 MB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00179/0.4107, allocations: 499.6 kB / 492.1 MB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005271/0.416, allocations: 1.547 MB / 493.6 MB, free: 10.98 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04518/0.4612, allocations: 17.75 MB / 0.4994 GB, free: 9.141 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006409/0.4619, allocations: 328.2 kB / 0.4997 GB, free: 8.812 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0017/0.4636, allocations: 327.9 kB / 0.5 GB, free: 8.492 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01492/0.4786, allocations: 6.495 MB / 0.5063 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.364e-05/0.4787, allocations: 0 / 0.5063 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008114/0.4795, allocations: 144 kB / 0.5065 GB, free: 1.633 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.382e-05/0.4796, allocations: 80 kB / 0.5065 GB, free: 1.555 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009723/0.4893, allocations: 5.134 MB / 0.5116 GB, free: 12.41 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2994/0.7887, allocations: 33.39 MB / 0.5442 GB, free: 107.9 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006844/0.7956, allocations: 4.316 MB / 0.5484 GB, free: 107 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004071/0.7997, allocations: 2.583 MB / 0.5509 GB, free: 106.4 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001029/0.7998, allocations: 25.53 kB / 0.5509 GB, free: 106.4 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.572e-05/0.7999, allocations: 70.03 kB / 0.551 GB, free: 106.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.847e-06/0.7999, allocations: 0 / 0.551 GB, free: 106.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01793/0.8178, allocations: 7.527 MB / 0.5583 GB, free: 103.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002403/0.8181, allocations: 0.9856 MB / 0.5593 GB, free: 102.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06248/0.8806, allocations: 35.76 MB / 0.5942 GB, free: 71.02 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004703/0.8811, allocations: 61.7 kB / 0.5943 GB, free: 70.95 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.009817/0.891, allocations: 7.469 MB / 0.6016 GB, free: 63.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006727/0.8916, allocations: 0.5462 MB / 0.6021 GB, free: 63.16 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006809/0.8923, allocations: 427.1 kB / 0.6025 GB, free: 62.73 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.85e-05/0.8924, allocations: 305.1 kB / 0.6028 GB, free: 62.43 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00285/0.8952, allocations: 1.97 MB / 0.6047 GB, free: 60.46 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00314/0.8984, allocations: 2.865 MB / 0.6075 GB, free: 57.28 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005387/0.9038, allocations: 4.202 MB / 0.6116 GB, free: 52.87 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-05/0.9038, allocations: 4 kB / 0.6116 GB, free: 52.87 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01516/0.919, allocations: 6.025 MB / 0.6175 GB, free: 46.81 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.441e-05/0.9191, allocations: 15.17 kB / 0.6175 GB, free: 46.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.28e-05/0.9191, allocations: 20.06 kB / 0.6176 GB, free: 46.78 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.9201, allocations: 363.9 kB / 0.6179 GB, free: 46.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00215/0.9223, allocations: 0.698 MB / 0.6186 GB, free: 45.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004381/0.9267, allocations: 4.602 MB / 0.6231 GB, free: 40.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00721/0.9339, allocations: 0.6529 MB / 0.6237 GB, free: 40.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003608/0.9343, allocations: 82.19 kB / 0.6238 GB, free: 40.25 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.009144/0.9435, allocations: 8.126 MB / 0.6317 GB, free: 32.11 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004514/0.948, allocations: 1.392 MB / 0.6331 GB, free: 30.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01184/0.9598, allocations: 6.031 MB / 0.639 GB, free: 24.65 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.9599, allocations: 23.88 kB / 0.639 GB, free: 24.63 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.9599, allocations: 0 / 0.639 GB, free: 24.63 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.9599, allocations: 7.969 kB / 0.639 GB, free: 24.62 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0486/1.009, allocations: 18.54 MB / 0.6571 GB, free: 6.043 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.334e-05/1.009, allocations: 0 / 0.6571 GB, free: 6.043 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001913/1.01, allocations: 0.5616 MB / 0.6577 GB, free: 5.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007912/1.011, allocations: 292.6 kB / 0.6579 GB, free: 5.191 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002068/1.012, allocations: 43.98 kB / 0.658 GB, free: 5.148 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004078/1.016, allocations: 4.027 MB / 0.6619 GB, free: 0.9961 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/1.016, allocations: 48 / 0.6619 GB, free: 0.9961 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01743/1.033, allocations: 7.629 MB / 0.6694 GB, free: 9.32 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01501/1.048, allocations: 4.189 MB / 0.6735 GB, free: 5.098 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00573/1.054, allocations: 48 kB / 0.6735 GB, free: 5.051 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008885/1.063, allocations: 0.659 MB / 0.6742 GB, free: 4.395 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00126/1.064, allocations: 432.7 kB / 0.6746 GB, free: 3.969 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003462/1.065, allocations: 43.98 kB / 0.6746 GB, free: 3.926 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.06572/1.13, allocations: 25.59 MB / 0.6996 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8.32e-07/1.13, allocations: 4 kB / 0.6996 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01351/1.144, allocations: 1.845 MB / 0.7014 GB, free: 8.559 MB / 0.4981 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.02173/1.166, allocations: 8.573 MB / 0.7098 GB, free: 92 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008857/1.174, allocations: 4.494 MB / 0.7142 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.48e-05/1.175, allocations: 5.906 kB / 0.7142 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004301/1.179, allocations: 2.264 MB / 0.7164 GB, free: 9.305 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02647/1.205, allocations: 2.109 MB / 0.7184 GB, free: 7.215 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9201/2.126, allocations: 225.8 MB / 0.939 GB, free: 2.59 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2469/2.372, allocations: 10.17 MB / 0.9489 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.01975/2.392, allocations: 8.146 MB / 0.9569 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01538/2.408, allocations: 6.077 MB / 0.9628 GB, free: 172 MB / 0.5294 GB Notification: Performance of SimCode: time 1.012e-06/2.408, allocations: 0 / 0.9628 GB, free: 172 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7409/3.149, allocations: 329.8 MB / 1.285 GB, free: 38.98 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 85.39/88.54, allocations: 8.75 kB / 1.285 GB, free: 38.98 MB / 0.5294 GB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1)