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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008359/0.0008359, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008083/0.0008083, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9313/0.9313, allocations: 173.4 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.374e-06/2.374e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.015e-05/2.252e-05, allocations: 2.281 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.007665/0.007687, allocations: 8.716 MB / 327.1 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004332/0.01202, allocations: 3.197 MB / 330.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001025/0.01304, allocations: 35.81 kB / 330.4 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002394/0.01544, allocations: 1.143 MB / 331.5 MB, free: 9.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001265/0.0167, allocations: 0.672 MB / 332.2 MB, free: 8.555 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008786/0.01758, allocations: 0.4903 MB / 332.7 MB, free: 8.066 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005922/0.0235, allocations: 7.498 MB / 340.2 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003333/0.02684, allocations: 2.143 MB / 342.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004979/0.03182, allocations: 4.184 MB / 346.5 MB, free: 10.12 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003888/0.0357, allocations: 2.979 MB / 349.5 MB, free: 7.141 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001372/0.03708, allocations: 0.6758 MB / 350.2 MB, free: 6.465 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001138/0.03821, allocations: 0.7226 MB / 350.9 MB, free: 5.742 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00323/0.04144, allocations: 5.908 MB / 356.8 MB, free: 15.82 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005661/0.0471, allocations: 4.2 MB / 361 MB, free: 11.61 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01756/0.06466, allocations: 24.39 MB / 385.4 MB, free: 3.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/0.06467, allocations: 0 / 385.4 MB, free: 3.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.06467, allocations: 0 / 385.4 MB, free: 3.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0009558/0.06563, allocations: 3.938 kB / 385.4 MB, free: 3.156 MB / 346.7 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.04258/0.1082, allocations: 19.12 MB / 404.5 MB, free: 15.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.878e-05/0.1083, allocations: 12.92 kB / 404.5 MB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001202/0.1095, allocations: 495.6 kB / 405 MB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005894/0.1154, allocations: 1.627 MB / 406.6 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03595/0.1513, allocations: 18.08 MB / 424.7 MB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004253/0.1517, allocations: 357.9 kB / 425.1 MB, free: 11.22 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009413/0.1527, allocations: 328 kB / 425.4 MB, free: 10.9 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01369/0.1664, allocations: 8.009 MB / 433.4 MB, free: 2.301 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.562e-05/0.1664, allocations: 7.938 kB / 433.4 MB, free: 2.293 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006926/0.1671, allocations: 144 kB / 433.5 MB, free: 2.152 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.255e-05/0.1672, allocations: 80 kB / 433.6 MB, free: 2.074 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01377/0.181, allocations: 5.123 MB / 438.7 MB, free: 12.94 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.356/0.537, allocations: 30.71 MB / 469.4 MB, free: 88.93 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004114/0.5411, allocations: 4.17 MB / 473.6 MB, free: 87.04 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002221/0.5433, allocations: 2.474 MB / 476.1 MB, free: 84.88 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 7.224e-05/0.5434, allocations: 17.31 kB / 476.1 MB, free: 84.87 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.297e-05/0.5434, allocations: 67.34 kB / 476.2 MB, free: 84.79 MB / 410.8 MB Notification: Performance of pre-optimization done (n=156): time 3.878e-06/0.5435, allocations: 3.469 kB / 476.2 MB, free: 84.79 MB / 410.8 MB Notification: Performance of matching and sorting (n=156): time 0.01126/0.5547, allocations: 7.509 MB / 483.7 MB, free: 78.12 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.5548, allocations: 0.9824 MB / 484.7 MB, free: 76.9 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05088/0.6057, allocations: 35.78 MB / 0.5082 GB, free: 41.25 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004696/0.6062, allocations: 69.69 kB / 0.5083 GB, free: 41.18 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.01007/0.6163, allocations: 7.51 MB / 0.5156 GB, free: 33.91 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000766/0.617, allocations: 0.5648 MB / 0.5162 GB, free: 33.42 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004566/0.6175, allocations: 427.4 kB / 0.5166 GB, free: 33 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 2.842e-05/0.6175, allocations: 301.1 kB / 0.5169 GB, free: 32.7 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002049/0.6196, allocations: 1.971 MB / 0.5188 GB, free: 30.73 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002228/0.6218, allocations: 3.765 MB / 0.5225 GB, free: 26.41 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003602/0.6254, allocations: 4.202 MB / 0.5266 GB, free: 22 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.12e-05/0.6254, allocations: 11.62 kB / 0.5266 GB, free: 22 MB / 410.8 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.0115/0.6369, allocations: 6.095 MB / 0.5326 GB, free: 15.88 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.376e-05/0.6369, allocations: 12 kB / 0.5326 GB, free: 15.87 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.059e-05/0.6369, allocations: 16 kB / 0.5326 GB, free: 15.85 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006935/0.6376, allocations: 367.6 kB / 0.5329 GB, free: 15.49 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/0.6389, allocations: 0.6902 MB / 0.5336 GB, free: 14.8 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002893/0.6418, allocations: 4.429 MB / 0.5379 GB, free: 10.29 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006126/0.6479, allocations: 0.6684 MB / 0.5386 GB, free: 9.676 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004219/0.6483, allocations: 77.31 kB / 0.5387 GB, free: 9.602 MB / 410.8 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.01083/0.6591, allocations: 8.128 MB / 0.5466 GB, free: 1.473 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004293/0.6634, allocations: 1.471 MB / 0.548 GB, free: 15.99 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009785/0.6732, allocations: 6.018 MB / 0.5539 GB, free: 9.961 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.438e-05/0.6732, allocations: 16 kB / 0.5539 GB, free: 9.945 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.6732, allocations: 0 / 0.5539 GB, free: 9.945 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.6733, allocations: 7.969 kB / 0.5539 GB, free: 9.938 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03818/0.7114, allocations: 16.69 MB / 0.5702 GB, free: 9.23 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.7114, allocations: 0 / 0.5702 GB, free: 9.23 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.7125, allocations: 0.5655 MB / 0.5708 GB, free: 8.664 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006625/0.7131, allocations: 295.8 kB / 0.5711 GB, free: 8.375 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001172/0.7133, allocations: 40 kB / 0.5711 GB, free: 8.336 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003393/0.7167, allocations: 3.879 MB / 0.5749 GB, free: 4.359 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.7167, allocations: 3.938 kB / 0.5749 GB, free: 4.355 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01186/0.7285, allocations: 7.696 MB / 0.5824 GB, free: 12.62 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01018/0.7387, allocations: 4.39 MB / 0.5867 GB, free: 8.25 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004581/0.7433, allocations: 44 kB / 0.5867 GB, free: 8.207 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006585/0.7499, allocations: 0.6587 MB / 0.5874 GB, free: 7.551 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001013/0.7509, allocations: 444.6 kB / 0.5878 GB, free: 7.117 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/0.751, allocations: 47.98 kB / 0.5879 GB, free: 7.07 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.04867/0.7997, allocations: 25.57 MB / 0.6128 GB, free: 13.57 MB / 490.8 MB Notification: Performance of sort global known variables: time 3.81e-07/0.7997, allocations: 0 / 0.6128 GB, free: 13.57 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.009143/0.8088, allocations: 1.85 MB / 0.6146 GB, free: 11.79 MB / 490.8 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.01495/0.8238, allocations: 8.662 MB / 0.6231 GB, free: 3.262 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.1638/0.9876, allocations: 4.391 MB / 0.6274 GB, free: 176.5 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-05/0.9876, allocations: 8.344 kB / 0.6274 GB, free: 176.5 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002957/0.9905, allocations: 2.211 MB / 0.6295 GB, free: 176.3 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01544/1.006, allocations: 2.126 MB / 0.6316 GB, free: 175.5 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.783/2.789, allocations: 229.1 MB / 0.8553 GB, free: 123.6 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01229/2.801, allocations: 9.789 MB / 0.8649 GB, free: 113.8 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.01036/2.811, allocations: 7.712 MB / 0.8724 GB, free: 106.2 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008738/2.82, allocations: 6.085 MB / 0.8784 GB, free: 100.1 MB / 490.8 MB Notification: Performance of SimCode: time 1.844e-06/2.82, allocations: 0 / 0.8784 GB, free: 100.1 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6072/3.427, allocations: 340 MB / 1.21 GB, free: 131.2 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.19/33.61, allocations: 8.094 kB / 1.21 GB, free: 131.2 MB / 0.4949 GB " [Timeout remaining time 626] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 35.7943154014647] Failed to read output from testmodel.py, exit status != 0: ['time', 'energy.y', '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'] 33.864075114019215 33.871174222 33.804812213 Calling exit ...