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.001305/0.001305, allocations: 110.5 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.001482/0.001482, allocations: 212.6 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.455/1.455, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.001906/0.001906, allocations: 56.92 kB / 378.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2889, allocations: 53.37 MB / 431.9 MB, free: 7.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01272/0.3016, allocations: 10.18 MB / 442.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005968/0.3076, allocations: 3.661 MB / 445.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008655/0.3085, allocations: 31.81 kB / 445.8 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002591/0.3111, allocations: 1.194 MB / 447 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001557/0.3126, allocations: 0.6841 MB / 447.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00112/0.3137, allocations: 0.4906 MB / 448.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008171/0.3219, allocations: 7.332 MB / 455.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003001/0.3249, allocations: 2.096 MB / 457.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003931/0.3288, allocations: 2.921 MB / 460.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004703/0.3335, allocations: 2.993 MB / 463.5 MB, free: 7.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001328/0.3349, allocations: 0.6797 MB / 464.2 MB, free: 6.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001515/0.3364, allocations: 0.7187 MB / 464.9 MB, free: 5.871 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005077/0.3415, allocations: 5.833 MB / 470.7 MB, free: 24 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01128/0.3527, allocations: 7.191 MB / 477.9 MB, free: 8.789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02825/0.381, allocations: 25.01 MB / 0.4911 GB, free: 15.7 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/0.381, allocations: 0 / 0.4911 GB, free: 15.7 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.381, allocations: 4 kB / 0.4911 GB, free: 15.7 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0009477/0.382, allocations: 0 / 0.4911 GB, free: 15.7 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.05276/0.4347, allocations: 19.32 MB / 0.51 GB, free: 12.23 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.4348, allocations: 8.031 kB / 0.51 GB, free: 12.22 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001387/0.4361, allocations: 0.4918 MB / 0.5105 GB, free: 11.71 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005358/0.4415, allocations: 1.635 MB / 0.5121 GB, free: 10.07 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04259/0.4841, allocations: 18.12 MB / 0.5298 GB, free: 7.879 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004772/0.4846, allocations: 353.9 kB / 0.5301 GB, free: 7.52 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009279/0.4855, allocations: 328 kB / 0.5304 GB, free: 7.199 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01212/0.4976, allocations: 6.495 MB / 0.5368 GB, free: 492 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.708e-05/0.4977, allocations: 3.938 kB / 0.5368 GB, free: 488 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004263/0.4981, allocations: 152 kB / 0.5369 GB, free: 336 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.427e-05/0.4982, allocations: 80 kB / 0.537 GB, free: 256 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4278/0.9259, allocations: 5.129 MB / 0.542 GB, free: 80.35 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05764/0.9836, allocations: 33.54 MB / 0.5748 GB, free: 55.22 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006035/0.9896, allocations: 4.176 MB / 0.5788 GB, free: 51.13 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003314/0.9929, allocations: 2.471 MB / 0.5813 GB, free: 48.67 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001202/0.993, allocations: 17.31 kB / 0.5813 GB, free: 48.66 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.501e-05/0.9931, allocations: 67.88 kB / 0.5813 GB, free: 48.58 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 3.416e-06/0.9931, allocations: 0 / 0.5813 GB, free: 48.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01559/1.009, allocations: 7.52 MB / 0.5887 GB, free: 41.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001687/1.009, allocations: 0.9825 MB / 0.5896 GB, free: 40.29 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.08101/1.09, allocations: 35.89 MB / 0.6247 GB, free: 4.484 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005094/1.09, allocations: 61.7 kB / 0.6248 GB, free: 4.418 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01902/1.109, allocations: 7.538 MB / 0.6321 GB, free: 13.05 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001533/1.111, allocations: 0.5736 MB / 0.6327 GB, free: 12.54 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001411/1.112, allocations: 423.4 kB / 0.6331 GB, free: 12.12 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001985/1.113, allocations: 313.1 kB / 0.6334 GB, free: 11.81 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006038/1.119, allocations: 1.967 MB / 0.6353 GB, free: 9.84 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007392/1.126, allocations: 2.854 MB / 0.6381 GB, free: 6.664 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01227/1.138, allocations: 4.209 MB / 0.6422 GB, free: 2.246 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-05/1.138, allocations: 8 kB / 0.6422 GB, free: 2.238 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.02402/1.162, allocations: 6.092 MB / 0.6482 GB, free: 12.12 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.515e-05/1.162, allocations: 15.72 kB / 0.6482 GB, free: 12.11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.648e-05/1.162, allocations: 16 kB / 0.6482 GB, free: 12.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00153/1.164, allocations: 371.5 kB / 0.6485 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003992/1.168, allocations: 0.698 MB / 0.6492 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008759/1.177, allocations: 4.498 MB / 0.6536 GB, free: 6.441 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01006/1.187, allocations: 0.6615 MB / 0.6543 GB, free: 5.84 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005778/1.187, allocations: 80 kB / 0.6543 GB, free: 5.762 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.01866/1.206, allocations: 8.143 MB / 0.6623 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006004/1.212, allocations: 1.471 MB / 0.6637 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01612/1.228, allocations: 6.031 MB / 0.6696 GB, free: 6.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.741e-05/1.228, allocations: 16 kB / 0.6696 GB, free: 6.074 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/1.228, allocations: 3.938 kB / 0.6696 GB, free: 6.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/1.228, allocations: 7.969 kB / 0.6696 GB, free: 6.062 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04931/1.277, allocations: 18.8 MB / 0.688 GB, free: 3.203 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.385e-06/1.277, allocations: 2.344 kB / 0.688 GB, free: 3.203 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002016/1.279, allocations: 0.5655 MB / 0.6886 GB, free: 2.637 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008513/1.28, allocations: 296.6 kB / 0.6888 GB, free: 2.344 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001616/1.28, allocations: 42.83 kB / 0.6889 GB, free: 2.305 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005216/1.286, allocations: 3.931 MB / 0.6927 GB, free: 14.27 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/1.286, allocations: 0 / 0.6927 GB, free: 14.27 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01756/1.303, allocations: 7.704 MB / 0.7002 GB, free: 6.527 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01225/1.315, allocations: 4.403 MB / 0.7045 GB, free: 2.137 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004768/1.32, allocations: 48 kB / 0.7046 GB, free: 2.09 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007431/1.328, allocations: 0.6552 MB / 0.7052 GB, free: 1.434 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001245/1.329, allocations: 444.6 kB / 0.7056 GB, free: 1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002033/1.329, allocations: 47.98 kB / 0.7057 GB, free: 0.9531 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.06291/1.392, allocations: 25.67 MB / 0.7308 GB, free: 7.352 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.81e-07/1.392, allocations: 0 / 0.7308 GB, free: 7.352 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01006/1.402, allocations: 1.84 MB / 0.7326 GB, free: 5.578 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.02067/1.423, allocations: 8.645 MB / 0.741 GB, free: 13.04 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.009086/1.432, allocations: 4.404 MB / 0.7453 GB, free: 8.621 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.591e-05/1.432, allocations: 5.156 kB / 0.7453 GB, free: 8.617 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004325/1.436, allocations: 2.214 MB / 0.7475 GB, free: 6.387 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01942/1.456, allocations: 2.103 MB / 0.7495 GB, free: 4.305 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8671/2.323, allocations: 226.4 MB / 0.9706 GB, free: 183.7 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02121/2.344, allocations: 10.19 MB / 0.9806 GB, free: 182.7 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01773/2.362, allocations: 7.692 MB / 0.9881 GB, free: 180.6 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01349/2.375, allocations: 6.104 MB / 0.994 GB, free: 175.8 MB / 0.5607 GB Notification: Performance of SimCode: time 1.753e-06/2.375, allocations: 0 / 0.994 GB, free: 175.8 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.657/3.032, allocations: 332.7 MB / 1.319 GB, free: 68.85 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 197.1/200.1, allocations: 7.781 kB / 1.319 GB, free: 68.85 MB / 0.5763 GB " [Timeout remaining time 460] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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-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: 203.01644665375352] 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'] 200.43913659919053 200.454203634 200.06927453 Calling exit ...