Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001338/0.001338, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 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.001593/0.001593, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.399/1.399, allocations: 230.6 MB / 258.3 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_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-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 64.78 kB / 378.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.256, allocations: 53.37 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01172/0.2677, allocations: 10.17 MB / 442.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0051/0.2728, allocations: 3.661 MB / 445.7 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005616/0.2734, allocations: 31.81 kB / 445.8 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002234/0.2756, allocations: 1.198 MB / 447 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001167/0.2768, allocations: 0.6802 MB / 447.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009982/0.2778, allocations: 0.5018 MB / 448.2 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007799/0.2856, allocations: 7.325 MB / 455.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002974/0.2886, allocations: 2.096 MB / 457.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00399/0.2926, allocations: 2.929 MB / 460.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004895/0.2975, allocations: 2.985 MB / 463.5 MB, free: 7.133 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001255/0.2987, allocations: 0.6797 MB / 464.2 MB, free: 6.453 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001518/0.3002, allocations: 0.7226 MB / 464.9 MB, free: 5.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004734/0.305, allocations: 5.833 MB / 470.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009336/0.3143, allocations: 7.195 MB / 477.9 MB, free: 8.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02708/0.3414, allocations: 25.01 MB / 0.4911 GB, free: 15.55 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.3414, allocations: 0 / 0.4911 GB, free: 15.55 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3414, allocations: 0 / 0.4911 GB, free: 15.55 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006209/0.342, allocations: 0 / 0.4911 GB, free: 15.55 MB / 414.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.05107/0.3931, allocations: 19.33 MB / 0.51 GB, free: 12.08 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.3931, allocations: 8.031 kB / 0.51 GB, free: 12.07 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001488/0.3946, allocations: 0.4918 MB / 0.5105 GB, free: 11.57 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005191/0.3998, allocations: 1.635 MB / 0.5121 GB, free: 9.926 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03937/0.4392, allocations: 18.11 MB / 0.5298 GB, free: 7.742 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004262/0.4396, allocations: 361.9 kB / 0.5301 GB, free: 7.375 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006769/0.4403, allocations: 324 kB / 0.5304 GB, free: 7.059 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01143/0.4517, allocations: 6.499 MB / 0.5368 GB, free: 344 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.176e-05/0.4518, allocations: 3.938 kB / 0.5368 GB, free: 340 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004054/0.4522, allocations: 148 kB / 0.5369 GB, free: 192 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.877e-05/0.4522, allocations: 80 kB / 0.537 GB, free: 112 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3613/0.8135, allocations: 5.124 MB / 0.542 GB, free: 80.36 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04938/0.8629, allocations: 33.54 MB / 0.5748 GB, free: 55.11 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00616/0.8691, allocations: 4.186 MB / 0.5789 GB, free: 51.01 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003336/0.8724, allocations: 2.471 MB / 0.5813 GB, free: 48.55 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001023/0.8725, allocations: 22.84 kB / 0.5813 GB, free: 48.53 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.358e-05/0.8726, allocations: 67.88 kB / 0.5814 GB, free: 48.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 4.007e-06/0.8726, allocations: 0 / 0.5814 GB, free: 48.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01518/0.8877, allocations: 7.51 MB / 0.5887 GB, free: 41.38 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001644/0.8879, allocations: 0.9824 MB / 0.5896 GB, free: 40.17 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06026/0.9482, allocations: 35.89 MB / 0.6247 GB, free: 4.367 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005121/0.9487, allocations: 61.7 kB / 0.6248 GB, free: 4.301 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01314/0.9618, allocations: 7.539 MB / 0.6321 GB, free: 12.94 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008733/0.9627, allocations: 0.5732 MB / 0.6327 GB, free: 12.43 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008502/0.9635, allocations: 427.4 kB / 0.6331 GB, free: 12 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.9637, allocations: 309.1 kB / 0.6334 GB, free: 11.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003825/0.9675, allocations: 1.971 MB / 0.6353 GB, free: 9.723 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004636/0.9721, allocations: 2.854 MB / 0.6381 GB, free: 6.547 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00768/0.9798, allocations: 4.204 MB / 0.6422 GB, free: 2.133 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.945e-05/0.9798, allocations: 10.52 kB / 0.6422 GB, free: 2.125 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01628/0.9961, allocations: 6.096 MB / 0.6482 GB, free: 12.01 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.714e-05/0.9962, allocations: 12 kB / 0.6482 GB, free: 12 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.853e-05/0.9962, allocations: 16 kB / 0.6482 GB, free: 11.98 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.9973, allocations: 370.1 kB / 0.6485 GB, free: 11.62 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002528/0.9998, allocations: 0.6941 MB / 0.6492 GB, free: 10.93 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006423/1.006, allocations: 4.505 MB / 0.6536 GB, free: 6.324 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007653/1.014, allocations: 0.6623 MB / 0.6543 GB, free: 5.723 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004587/1.014, allocations: 76 kB / 0.6543 GB, free: 5.648 MB / 478.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.01558/1.03, allocations: 8.143 MB / 0.6623 GB, free: 13.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006328/1.036, allocations: 1.475 MB / 0.6637 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01512/1.051, allocations: 6.03 MB / 0.6696 GB, free: 5.973 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.799e-05/1.051, allocations: 16 kB / 0.6696 GB, free: 5.957 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/1.051, allocations: 3.938 kB / 0.6696 GB, free: 5.953 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-05/1.051, allocations: 7.969 kB / 0.6696 GB, free: 5.945 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04567/1.097, allocations: 18.8 MB / 0.688 GB, free: 3.09 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/1.097, allocations: 4 kB / 0.688 GB, free: 3.086 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001966/1.099, allocations: 0.5616 MB / 0.6886 GB, free: 2.523 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008589/1.1, allocations: 302.6 kB / 0.6888 GB, free: 2.227 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001624/1.1, allocations: 39.98 kB / 0.6889 GB, free: 2.188 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005186/1.105, allocations: 3.921 MB / 0.6927 GB, free: 14.16 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/1.105, allocations: 0 / 0.6927 GB, free: 14.16 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01717/1.122, allocations: 7.708 MB / 0.7002 GB, free: 6.41 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01198/1.134, allocations: 4.396 MB / 0.7045 GB, free: 2.023 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005454/1.14, allocations: 48 kB / 0.7046 GB, free: 1.977 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007264/1.147, allocations: 0.6552 MB / 0.7052 GB, free: 1.32 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00113/1.148, allocations: 440.6 kB / 0.7056 GB, free: 0.8906 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002342/1.148, allocations: 44 kB / 0.7057 GB, free: 0.8477 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.05877/1.207, allocations: 25.67 MB / 0.7308 GB, free: 7.246 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.7e-07/1.207, allocations: 0 / 0.7308 GB, free: 7.246 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00994/1.217, allocations: 1.849 MB / 0.7326 GB, free: 5.465 MB / 0.545 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.02025/1.237, allocations: 8.651 MB / 0.741 GB, free: 12.92 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.008601/1.246, allocations: 4.405 MB / 0.7453 GB, free: 8.508 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.377e-05/1.246, allocations: 5.156 kB / 0.7453 GB, free: 8.504 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004071/1.25, allocations: 2.217 MB / 0.7475 GB, free: 6.27 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01482/1.265, allocations: 2.096 MB / 0.7495 GB, free: 4.191 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8465/2.111, allocations: 226.4 MB / 0.9706 GB, free: 183.3 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0171/2.129, allocations: 10.19 MB / 0.9806 GB, free: 182.3 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01582/2.144, allocations: 7.693 MB / 0.9881 GB, free: 180.2 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01411/2.159, allocations: 6.099 MB / 0.994 GB, free: 175.5 MB / 0.5607 GB Notification: Performance of SimCode: time 1.823e-06/2.159, allocations: 0 / 0.994 GB, free: 175.5 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7148/2.873, allocations: 332.7 MB / 1.319 GB, free: 68.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 173.8/176.7, allocations: 6.547 kB / 1.319 GB, free: 68.8 MB / 0.5763 GB " [Timeout remaining time 483] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 180.5338159869425] 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'] 177.01637688511983 177.033317312 176.687996142 Calling exit ...