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.001178/0.001179, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001378/0.001378, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.529/1.529, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 51.14 kB / 300.7 MB, free: 5.715 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.112, allocations: 49.45 MB / 350.2 MB, free: 4.25 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01378/0.1258, allocations: 10.05 MB / 360.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005961/0.1318, allocations: 3.462 MB / 363.7 MB, free: 6.668 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001086/0.133, allocations: 27.88 kB / 363.7 MB, free: 6.641 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003113/0.1361, allocations: 1.167 MB / 364.9 MB, free: 5.469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002139/0.1383, allocations: 0.6373 MB / 365.5 MB, free: 4.828 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001412/0.1398, allocations: 487.1 kB / 366 MB, free: 4.355 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2025/0.3422, allocations: 7.301 MB / 373.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007305/0.3496, allocations: 4.469 MB / 377.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004932/0.3545, allocations: 2.836 MB / 380.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005813/0.3604, allocations: 2.922 MB / 383.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002064/0.3625, allocations: 0.6805 MB / 384.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002099/0.3646, allocations: 0.7226 MB / 384.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005419/0.37, allocations: 5.817 MB / 390.7 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0116/0.3816, allocations: 7.177 MB / 397.9 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03818/0.4199, allocations: 24.66 MB / 422.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.4199, allocations: 0 / 422.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.42, allocations: 0 / 422.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0006686/0.4206, allocations: 0 / 422.6 MB, free: 12.37 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: 837 * Number of variables: 837 Notification: Performance of Generate backend data structure: time 0.08255/0.5032, allocations: 18.65 MB / 441.2 MB, free: 9.598 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.984e-05/0.5033, allocations: 8.031 kB / 441.2 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0036/0.5069, allocations: 0.4957 MB / 441.7 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0119/0.5188, allocations: 1.549 MB / 443.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06784/0.5867, allocations: 17.64 MB / 460.9 MB, free: 6.223 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002616/0.5894, allocations: 0.7533 MB / 461.7 MB, free: 5.461 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002118/0.5916, allocations: 327.9 kB / 462 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01834/0.6099, allocations: 6.488 MB / 468.5 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.952e-05/0.61, allocations: 3.656 kB / 468.5 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005907/0.6106, allocations: 144 kB / 468.6 MB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.911e-05/0.6107, allocations: 80 kB / 468.7 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01253/0.6232, allocations: 5.12 MB / 473.8 MB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07949/0.7028, allocations: 33.58 MB / 0.4955 GB, free: 7.492 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008368/0.7112, allocations: 4.312 MB / 0.4997 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004553/0.7158, allocations: 2.565 MB / 0.5022 GB, free: 0.707 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001039/0.7159, allocations: 21.31 kB / 0.5022 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.643e-05/0.716, allocations: 67.81 kB / 0.5023 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of pre-optimization done (n=156): time 3.887e-06/0.716, allocations: 0 / 0.5023 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.02033/0.7364, allocations: 7.514 MB / 0.5096 GB, free: 9.059 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005016/0.7369, allocations: 0.9863 MB / 0.5106 GB, free: 7.84 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5755/1.312, allocations: 35.76 MB / 0.5455 GB, free: 105.9 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000502/1.313, allocations: 67.55 kB / 0.5456 GB, free: 105.9 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01393/1.327, allocations: 7.46 MB / 0.5529 GB, free: 100.6 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007579/1.328, allocations: 0.5471 MB / 0.5534 GB, free: 100.4 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007738/1.329, allocations: 427.6 kB / 0.5538 GB, free: 100.2 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.33e-05/1.329, allocations: 301.1 kB / 0.5541 GB, free: 99.95 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003081/1.332, allocations: 1.963 MB / 0.556 GB, free: 98.14 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003536/1.335, allocations: 2.864 MB / 0.5588 GB, free: 95 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006451/1.342, allocations: 4.192 MB / 0.5629 GB, free: 90.62 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-05/1.342, allocations: 7.844 kB / 0.5629 GB, free: 90.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01794/1.36, allocations: 6.02 MB / 0.5688 GB, free: 84.89 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.317e-05/1.36, allocations: 8 kB / 0.5688 GB, free: 84.88 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.031e-05/1.36, allocations: 16 kB / 0.5688 GB, free: 84.87 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/1.361, allocations: 369.2 kB / 0.5692 GB, free: 84.51 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002736/1.364, allocations: 0.7019 MB / 0.5699 GB, free: 83.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004653/1.368, allocations: 4.615 MB / 0.5744 GB, free: 79.06 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00893/1.377, allocations: 0.6585 MB / 0.575 GB, free: 78.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005165/1.378, allocations: 76.69 kB / 0.5751 GB, free: 78.32 MB / 430.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.01279/1.391, allocations: 8.114 MB / 0.583 GB, free: 70.2 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006335/1.397, allocations: 1.4 MB / 0.5844 GB, free: 68.78 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01608/1.413, allocations: 6.014 MB / 0.5902 GB, free: 62.74 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/1.413, allocations: 16 kB / 0.5903 GB, free: 62.73 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/1.413, allocations: 3.984 kB / 0.5903 GB, free: 62.72 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.51e-05/1.413, allocations: 4.594 kB / 0.5903 GB, free: 62.72 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04514/1.458, allocations: 18.54 MB / 0.6084 GB, free: 44.13 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/1.458, allocations: 4 kB / 0.6084 GB, free: 44.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001759/1.46, allocations: 0.5616 MB / 0.6089 GB, free: 43.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007703/1.461, allocations: 288.7 kB / 0.6092 GB, free: 43.28 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000121/1.461, allocations: 41.08 kB / 0.6092 GB, free: 43.24 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003707/1.465, allocations: 4.037 MB / 0.6132 GB, free: 39.08 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.465, allocations: 3.938 kB / 0.6132 GB, free: 39.08 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01467/1.48, allocations: 7.609 MB / 0.6206 GB, free: 31.43 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01225/1.492, allocations: 4.189 MB / 0.6247 GB, free: 27.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006462/1.498, allocations: 47.98 kB / 0.6247 GB, free: 27.15 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008441/1.507, allocations: 0.6628 MB / 0.6254 GB, free: 26.49 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009419/1.508, allocations: 396.7 kB / 0.6258 GB, free: 26.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001625/1.508, allocations: 55.67 kB / 0.6258 GB, free: 26.05 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.04717/1.555, allocations: 25.59 MB / 0.6508 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.81e-07/1.555, allocations: 0.6562 kB / 0.6508 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.009889/1.565, allocations: 1.841 MB / 0.6526 GB, free: 14.69 MB / 446.1 MB 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.02234/1.587, allocations: 8.553 MB / 0.661 GB, free: 6.258 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01326/1.601, allocations: 6.96 MB / 0.6678 GB, free: 15.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/1.601, allocations: 5.219 kB / 0.6678 GB, free: 15.29 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004237/1.605, allocations: 2.261 MB / 0.67 GB, free: 13.02 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02343/1.628, allocations: 2.126 MB / 0.672 GB, free: 10.91 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.375/3.004, allocations: 465.6 MB / 1.127 GB, free: 139.5 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02368/3.027, allocations: 10.17 MB / 1.137 GB, free: 129.4 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.0189/3.046, allocations: 8.156 MB / 1.145 GB, free: 121.3 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01597/3.062, allocations: 6.078 MB / 1.151 GB, free: 115.2 MB / 0.4982 GB Notification: Performance of SimCode: time 9.32e-07/3.062, allocations: 0 / 1.151 GB, free: 115.2 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9337/3.996, allocations: 322.7 MB / 1.466 GB, free: 134.6 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.76/22.76, allocations: 4.75 kB / 1.466 GB, free: 134.6 MB / 0.4982 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)