Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009016/0.0009016, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9265/0.9265, allocations: 177.1 MB / 204.3 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_1_0_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_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.265e-06/2.265e-06, allocations: 0 / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.988e-05/3.214e-05, allocations: 10.28 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01068/0.01071, allocations: 8.776 MB / 333.3 MB, free: 7.141 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006692/0.0174, allocations: 3.36 MB / 336.7 MB, free: 3.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00136/0.01876, allocations: 27.81 kB / 336.7 MB, free: 3.742 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002852/0.02161, allocations: 1.151 MB / 337.9 MB, free: 2.586 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00208/0.02369, allocations: 0.707 MB / 338.6 MB, free: 1.875 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001217/0.02491, allocations: 497.6 kB / 339.1 MB, free: 1.395 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005762/0.03067, allocations: 7.496 MB / 346.6 MB, free: 9.867 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002495/0.03317, allocations: 2.139 MB / 348.7 MB, free: 7.648 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005571/0.03874, allocations: 4.196 MB / 352.9 MB, free: 3.445 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004275/0.04301, allocations: 2.979 MB / 355.9 MB, free: 472 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001333/0.04435, allocations: 0.6797 MB / 356.6 MB, free: 15.78 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001426/0.04577, allocations: 0.7225 MB / 357.3 MB, free: 15.06 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003294/0.04907, allocations: 5.92 MB / 363.2 MB, free: 9.125 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007056/0.05612, allocations: 4.192 MB / 367.4 MB, free: 4.922 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01695/0.07308, allocations: 24.43 MB / 391.8 MB, free: 12.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.413e-06/0.07308, allocations: 4 kB / 391.8 MB, free: 12.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.07308, allocations: 0 / 391.8 MB, free: 12.42 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007413/0.07382, allocations: 0 / 391.8 MB, free: 12.42 MB / 362.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.04578/0.1196, allocations: 19.16 MB / 411 MB, free: 9.121 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.1197, allocations: 8.031 kB / 411 MB, free: 9.113 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001095/0.1208, allocations: 0.4957 MB / 411.5 MB, free: 8.605 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005144/0.1259, allocations: 1.635 MB / 413.1 MB, free: 6.961 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03618/0.1621, allocations: 18.12 MB / 431.2 MB, free: 4.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003341/0.1624, allocations: 361.9 kB / 431.6 MB, free: 4.402 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007568/0.1632, allocations: 328 kB / 431.9 MB, free: 4.082 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01032/0.1735, allocations: 8.005 MB / 439.9 MB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.288e-05/0.1735, allocations: 7.938 kB / 439.9 MB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003424/0.1739, allocations: 144 kB / 440.1 MB, free: 11.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.435e-05/0.1739, allocations: 80 kB / 440.1 MB, free: 11.26 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007235/0.1812, allocations: 5.123 MB / 445.3 MB, free: 6.125 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3665/0.5477, allocations: 30.72 MB / 476 MB, free: 79.38 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00414/0.5518, allocations: 4.171 MB / 480.2 MB, free: 75.3 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002129/0.5539, allocations: 2.484 MB / 482.6 MB, free: 72.84 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 7.142e-05/0.554, allocations: 23.97 kB / 482.7 MB, free: 72.82 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.797e-05/0.5541, allocations: 59.88 kB / 482.7 MB, free: 72.75 MB / 410.8 MB Notification: Performance of pre-optimization done (n=156): time 4.118e-06/0.5541, allocations: 0 / 482.7 MB, free: 72.75 MB / 410.8 MB Notification: Performance of matching and sorting (n=156): time 0.01216/0.5662, allocations: 7.524 MB / 490.2 MB, free: 65.94 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.5663, allocations: 0.9863 MB / 491.2 MB, free: 64.72 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05542/0.6218, allocations: 35.89 MB / 0.5148 GB, free: 28.93 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005292/0.6223, allocations: 61.7 kB / 0.5148 GB, free: 28.86 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.01165/0.6339, allocations: 7.545 MB / 0.5222 GB, free: 21.47 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000715/0.6346, allocations: 0.5655 MB / 0.5228 GB, free: 20.98 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005392/0.6352, allocations: 419.4 kB / 0.5232 GB, free: 20.57 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 2.913e-05/0.6352, allocations: 305.1 kB / 0.5234 GB, free: 20.27 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001982/0.6372, allocations: 1.967 MB / 0.5254 GB, free: 18.3 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002303/0.6395, allocations: 3.761 MB / 0.529 GB, free: 13.99 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003912/0.6434, allocations: 4.208 MB / 0.5331 GB, free: 9.566 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/0.6434, allocations: 4 kB / 0.5332 GB, free: 9.562 MB / 410.8 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.0124/0.6558, allocations: 6.095 MB / 0.5391 GB, free: 3.445 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/0.6559, allocations: 12.97 kB / 0.5391 GB, free: 3.434 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/0.6559, allocations: 16 kB / 0.5391 GB, free: 3.418 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008248/0.6567, allocations: 372 kB / 0.5395 GB, free: 3.055 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/0.658, allocations: 0.6981 MB / 0.5402 GB, free: 2.355 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003746/0.6618, allocations: 4.429 MB / 0.5445 GB, free: 13.84 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006352/0.6681, allocations: 0.6562 MB / 0.5451 GB, free: 13.24 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005051/0.6686, allocations: 76 kB / 0.5452 GB, free: 13.17 MB / 426.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.01107/0.6797, allocations: 8.157 MB / 0.5532 GB, free: 5.012 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004418/0.6841, allocations: 1.474 MB / 0.5546 GB, free: 3.523 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01027/0.6944, allocations: 6.029 MB / 0.5605 GB, free: 13.47 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.398e-05/0.6944, allocations: 16 kB / 0.5605 GB, free: 13.46 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.6944, allocations: 0 / 0.5605 GB, free: 13.46 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.6944, allocations: 12.05 kB / 0.5605 GB, free: 13.45 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0357/0.7301, allocations: 16.72 MB / 0.5769 GB, free: 12.7 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.7301, allocations: 0 / 0.5769 GB, free: 12.7 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.7311, allocations: 0.5694 MB / 0.5774 GB, free: 12.13 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006042/0.7317, allocations: 291.7 kB / 0.5777 GB, free: 11.85 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-05/0.7318, allocations: 43.98 kB / 0.5777 GB, free: 11.8 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003165/0.735, allocations: 3.871 MB / 0.5815 GB, free: 7.836 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.735, allocations: 2.625 kB / 0.5815 GB, free: 7.836 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01201/0.747, allocations: 7.698 MB / 0.589 GB, free: 104 kB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01035/0.7574, allocations: 4.391 MB / 0.5933 GB, free: 11.72 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004884/0.7622, allocations: 47.94 kB / 0.5934 GB, free: 11.68 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005838/0.7681, allocations: 0.6668 MB / 0.594 GB, free: 11.01 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00083/0.7689, allocations: 440.6 kB / 0.5944 GB, free: 10.58 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/0.769, allocations: 39.98 kB / 0.5945 GB, free: 10.54 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.0438/0.8128, allocations: 25.66 MB / 0.6195 GB, free: 0.9492 MB / 490.8 MB Notification: Performance of sort global known variables: time 6e-08/0.8128, allocations: 0 / 0.6195 GB, free: 0.9492 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.1781/0.991, allocations: 1.84 MB / 0.6213 GB, free: 166.5 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.01369/1.005, allocations: 8.67 MB / 0.6298 GB, free: 165.2 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.004439/1.009, allocations: 4.405 MB / 0.6341 GB, free: 164.1 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/1.009, allocations: 4.844 kB / 0.6341 GB, free: 164.1 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002047/1.011, allocations: 2.21 MB / 0.6363 GB, free: 163.5 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01176/1.023, allocations: 2.099 MB / 0.6383 GB, free: 162.3 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.85/2.873, allocations: 229.1 MB / 0.862 GB, free: 129.9 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01341/2.886, allocations: 9.804 MB / 0.8716 GB, free: 120.1 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01162/2.898, allocations: 7.695 MB / 0.8791 GB, free: 112.5 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01107/2.909, allocations: 6.104 MB / 0.885 GB, free: 106.4 MB / 0.4949 GB Notification: Performance of SimCode: time 1.744e-06/2.909, allocations: 0 / 0.885 GB, free: 106.4 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6564/3.565, allocations: 340.4 MB / 1.217 GB, free: 124 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.73/35.3, allocations: 9.188 kB / 1.217 GB, free: 124 MB / 0.5105 GB " [Timeout remaining time 624] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 37.51953390426934] 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'] 35.56023772805929 35.572409106 35.496603333 Calling exit ...