Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000858/0.000858, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0011/0.0011, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.919/0.919, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.107e-05/2.245e-05, allocations: 6.281 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.007554/0.007577, allocations: 8.769 MB / 333.3 MB, free: 7.082 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004796/0.01237, allocations: 3.352 MB / 336.6 MB, free: 3.719 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006114/0.01298, allocations: 35.75 kB / 336.7 MB, free: 3.684 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001888/0.01487, allocations: 1.155 MB / 337.8 MB, free: 2.523 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001132/0.016, allocations: 0.7032 MB / 338.5 MB, free: 1.816 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007657/0.01677, allocations: 493.9 kB / 339 MB, free: 1.336 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005204/0.02197, allocations: 7.49 MB / 346.5 MB, free: 9.824 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002545/0.02452, allocations: 2.139 MB / 348.6 MB, free: 7.605 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004048/0.02857, allocations: 4.192 MB / 352.8 MB, free: 3.406 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002626/0.03119, allocations: 2.983 MB / 355.8 MB, free: 428 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009703/0.03216, allocations: 0.6797 MB / 356.5 MB, free: 15.73 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007899/0.03295, allocations: 0.7226 MB / 357.2 MB, free: 15.01 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002528/0.03548, allocations: 5.92 MB / 363.1 MB, free: 9.082 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003493/0.03897, allocations: 4.188 MB / 367.3 MB, free: 4.883 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01467/0.05364, allocations: 24.44 MB / 391.8 MB, free: 12.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.05365, allocations: 0 / 391.8 MB, free: 12.38 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.05365, allocations: 0 / 391.8 MB, free: 12.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006273/0.05428, allocations: 4 kB / 391.8 MB, free: 12.38 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.03097/0.08525, allocations: 19.16 MB / 410.9 MB, free: 9.074 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.0853, allocations: 11.98 kB / 410.9 MB, free: 9.062 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006485/0.08595, allocations: 499.6 kB / 411.4 MB, free: 8.562 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00189/0.08784, allocations: 1.642 MB / 413.1 MB, free: 6.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02265/0.1105, allocations: 18.12 MB / 431.2 MB, free: 4.723 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002874/0.1108, allocations: 361.9 kB / 431.5 MB, free: 4.355 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003849/0.1112, allocations: 324 kB / 431.8 MB, free: 4.039 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007568/0.1187, allocations: 8.009 MB / 439.9 MB, free: 11.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.072e-05/0.1188, allocations: 3.938 kB / 439.9 MB, free: 11.43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002615/0.119, allocations: 148 kB / 440 MB, free: 11.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-05/0.1191, allocations: 80 kB / 440.1 MB, free: 11.21 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005623/0.1247, allocations: 5.115 MB / 445.2 MB, free: 6.082 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3324/0.457, allocations: 30.73 MB / 475.9 MB, free: 79.32 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004049/0.4611, allocations: 4.169 MB / 480.1 MB, free: 75.24 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002148/0.4632, allocations: 2.483 MB / 482.6 MB, free: 72.77 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 6.984e-05/0.4633, allocations: 24.31 kB / 482.6 MB, free: 72.75 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.4634, allocations: 63.88 kB / 482.7 MB, free: 72.68 MB / 410.8 MB Notification: Performance of pre-optimization done (n=156): time 3.556e-06/0.4634, allocations: 0 / 482.7 MB, free: 72.68 MB / 410.8 MB Notification: Performance of matching and sorting (n=156): time 0.01015/0.4735, allocations: 7.512 MB / 490.2 MB, free: 65.88 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.797e-05/0.4736, allocations: 0.9824 MB / 491.2 MB, free: 64.66 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04093/0.5145, allocations: 35.91 MB / 0.5147 GB, free: 28.86 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005783/0.5151, allocations: 61.7 kB / 0.5148 GB, free: 28.79 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005929/0.521, allocations: 7.538 MB / 0.5221 GB, free: 21.41 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005709/0.5216, allocations: 0.5648 MB / 0.5227 GB, free: 20.92 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004955/0.5221, allocations: 427.4 kB / 0.5231 GB, free: 20.5 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 2.924e-05/0.5221, allocations: 301.1 kB / 0.5234 GB, free: 20.2 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002138/0.5243, allocations: 1.971 MB / 0.5253 GB, free: 18.23 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002285/0.5266, allocations: 3.757 MB / 0.529 GB, free: 13.92 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003703/0.5303, allocations: 4.211 MB / 0.5331 GB, free: 9.492 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.5303, allocations: 4 kB / 0.5331 GB, free: 9.488 MB / 410.8 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.0101/0.5404, allocations: 6.103 MB / 0.539 GB, free: 3.363 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.5404, allocations: 8 kB / 0.5391 GB, free: 3.355 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.5404, allocations: 16 kB / 0.5391 GB, free: 3.34 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006235/0.541, allocations: 359.3 kB / 0.5394 GB, free: 2.988 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/0.5422, allocations: 0.698 MB / 0.5401 GB, free: 2.289 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00369/0.5459, allocations: 4.436 MB / 0.5444 GB, free: 13.77 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005132/0.551, allocations: 0.6603 MB / 0.5451 GB, free: 13.17 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/0.5512, allocations: 83.98 kB / 0.5452 GB, free: 13.09 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.009656/0.5608, allocations: 8.138 MB / 0.5531 GB, free: 4.949 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003995/0.5648, allocations: 1.471 MB / 0.5545 GB, free: 3.465 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01027/0.5751, allocations: 6.026 MB / 0.5604 GB, free: 13.43 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.5751, allocations: 16 kB / 0.5604 GB, free: 13.41 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.5751, allocations: 3.984 kB / 0.5604 GB, free: 13.41 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.5751, allocations: 3.984 kB / 0.5604 GB, free: 13.4 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02867/0.6038, allocations: 16.73 MB / 0.5768 GB, free: 12.66 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.6038, allocations: 4 kB / 0.5768 GB, free: 12.65 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.6049, allocations: 0.5694 MB / 0.5773 GB, free: 12.08 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005551/0.6054, allocations: 292.6 kB / 0.5776 GB, free: 11.79 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.6056, allocations: 43.98 kB / 0.5777 GB, free: 11.75 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003372/0.6089, allocations: 3.867 MB / 0.5814 GB, free: 7.785 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.6089, allocations: 7.75 kB / 0.5814 GB, free: 7.781 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01175/0.6207, allocations: 7.704 MB / 0.589 GB, free: 40 kB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008792/0.6295, allocations: 4.391 MB / 0.5933 GB, free: 11.66 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002318/0.6318, allocations: 51.98 kB / 0.5933 GB, free: 11.61 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002426/0.6342, allocations: 0.6513 MB / 0.5939 GB, free: 10.96 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000602/0.6348, allocations: 444.6 kB / 0.5944 GB, free: 10.52 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.775e-05/0.6349, allocations: 36 kB / 0.5944 GB, free: 10.49 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.03531/0.6702, allocations: 25.67 MB / 0.6195 GB, free: 0.8906 MB / 490.8 MB Notification: Performance of sort global known variables: time 5e-08/0.6702, allocations: 4 kB / 0.6195 GB, free: 0.8867 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.1929/0.8631, allocations: 1.84 MB / 0.6213 GB, free: 166.4 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.01251/0.8756, allocations: 8.651 MB / 0.6297 GB, free: 165.2 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.004277/0.8799, allocations: 4.41 MB / 0.634 GB, free: 164.1 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.8799, allocations: 4.406 kB / 0.634 GB, free: 164.1 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001928/0.8818, allocations: 2.213 MB / 0.6362 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.008349/0.8901, allocations: 2.108 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.751/2.641, allocations: 229 MB / 0.8619 GB, free: 130.1 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01125/2.653, allocations: 9.811 MB / 0.8715 GB, free: 120.3 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01032/2.663, allocations: 7.691 MB / 0.879 GB, free: 112.7 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008061/2.671, allocations: 6.097 MB / 0.885 GB, free: 106.6 MB / 0.4949 GB Notification: Performance of SimCode: time 1.983e-06/2.671, allocations: 4 kB / 0.885 GB, free: 106.6 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6025/3.274, allocations: 340.3 MB / 1.217 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 35.47/38.75, allocations: 6.688 kB / 1.217 GB, free: 124.2 MB / 0.5105 GB " [Timeout remaining time 621] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 40.94454242102802] 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'] 38.995763945393264 39.004458822 38.949362032 Calling exit ...