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.001271/0.001271, allocations: 116.4 kB / 18.5 MB, free: 4.535 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.001966/0.001966, allocations: 212.9 kB / 21.46 MB, free: 1.586 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.428/1.428, allocations: 230.4 MB / 254.7 MB, free: 14.83 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.001934/0.001934, allocations: 67.89 kB / 373.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1071, allocations: 53.32 MB / 426.9 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.225/0.3322, allocations: 10.13 MB / 437 MB, free: 6.168 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005083/0.3373, allocations: 3.642 MB / 440.7 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000921/0.3382, allocations: 26.03 kB / 440.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003129/0.3413, allocations: 1.19 MB / 441.9 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002115/0.3434, allocations: 0.6863 MB / 442.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001301/0.3447, allocations: 484.7 kB / 443 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009195/0.3539, allocations: 7.328 MB / 450.4 MB, free: 108 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005066/0.359, allocations: 3.326 MB / 453.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006295/0.3653, allocations: 2.864 MB / 456.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006285/0.3716, allocations: 2.992 MB / 459.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00267/0.3742, allocations: 0.6807 MB / 460.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003839/0.3781, allocations: 0.7189 MB / 460.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007418/0.3855, allocations: 5.83 MB / 466.8 MB, free: 8.895 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01653/0.402, allocations: 7.192 MB / 474 MB, free: 2.102 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03511/0.4371, allocations: 25.01 MB / 499 MB, free: 9.004 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.257e-06/0.4371, allocations: 0 / 499 MB, free: 9.004 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4371, allocations: 4 kB / 499 MB, free: 9 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.00086/0.438, allocations: 0 / 499 MB, free: 9 MB / 398.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.06675/0.5048, allocations: 19.23 MB / 0.5061 GB, free: 5.613 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.474e-05/0.5048, allocations: 8.031 kB / 0.5061 GB, free: 5.605 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002369/0.5072, allocations: 0.4918 MB / 0.5065 GB, free: 5.102 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006975/0.5142, allocations: 1.642 MB / 0.5082 GB, free: 3.449 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05004/0.5642, allocations: 17.92 MB / 0.5257 GB, free: 1.457 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006616/0.5649, allocations: 332.2 kB / 0.526 GB, free: 1.125 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001533/0.5664, allocations: 324 kB / 0.5263 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01696/0.5834, allocations: 6.499 MB / 0.5326 GB, free: 10.08 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001499/0.5835, allocations: 7.938 kB / 0.5326 GB, free: 10.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00109/0.5846, allocations: 144 kB / 0.5328 GB, free: 9.934 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.217e-05/0.5847, allocations: 84 kB / 0.5328 GB, free: 9.852 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01291/0.5976, allocations: 5.126 MB / 0.5379 GB, free: 4.715 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08039/0.678, allocations: 33.45 MB / 0.5705 GB, free: 2.953 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008116/0.6861, allocations: 4.18 MB / 0.5746 GB, free: 14.85 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004614/0.6907, allocations: 2.474 MB / 0.577 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001264/0.6908, allocations: 17.31 kB / 0.577 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.272e-05/0.6909, allocations: 67.88 kB / 0.5771 GB, free: 12.28 MB / 494.1 MB Notification: Performance of pre-optimization done (n=156): time 3.847e-06/0.6909, allocations: 0 / 0.5771 GB, free: 12.28 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.01925/0.7102, allocations: 7.591 MB / 0.5845 GB, free: 4.645 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005462/0.7107, allocations: 0.9863 MB / 0.5855 GB, free: 3.426 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5049/1.216, allocations: 35.88 MB / 0.6205 GB, free: 127.4 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0004608/1.216, allocations: 64.77 kB / 0.6206 GB, free: 127.4 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.01359/1.23, allocations: 7.53 MB / 0.6279 GB, free: 123.3 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007857/1.231, allocations: 0.5721 MB / 0.6285 GB, free: 123.3 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008527/1.231, allocations: 425.8 kB / 0.6289 GB, free: 123.1 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.025e-05/1.231, allocations: 301.8 kB / 0.6292 GB, free: 122.8 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003717/1.235, allocations: 1.975 MB / 0.6311 GB, free: 122.4 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004588/1.24, allocations: 2.854 MB / 0.6339 GB, free: 121 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007248/1.247, allocations: 4.207 MB / 0.638 GB, free: 119.5 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.12e-05/1.247, allocations: 4.281 kB / 0.638 GB, free: 119.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01517/1.262, allocations: 6.094 MB / 0.644 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/1.262, allocations: 12.77 kB / 0.644 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.67e-05/1.262, allocations: 19.78 kB / 0.644 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001046/1.263, allocations: 368.6 kB / 0.6443 GB, free: 117.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002314/1.266, allocations: 0.6963 MB / 0.645 GB, free: 117.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004862/1.27, allocations: 4.613 MB / 0.6495 GB, free: 114.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007795/1.278, allocations: 0.6633 MB / 0.6502 GB, free: 114.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000505/1.279, allocations: 78.09 kB / 0.6502 GB, free: 114.8 MB / 0.5138 GB 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.01146/1.29, allocations: 8.148 MB / 0.6582 GB, free: 112.7 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005156/1.295, allocations: 1.477 MB / 0.6596 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01259/1.308, allocations: 6.021 MB / 0.6655 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/1.308, allocations: 17.58 kB / 0.6655 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/1.308, allocations: 0.875 kB / 0.6655 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/1.308, allocations: 7.969 kB / 0.6656 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04361/1.352, allocations: 18.57 MB / 0.6837 GB, free: 99.55 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.368e-06/1.352, allocations: 3.969 kB / 0.6837 GB, free: 99.55 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001758/1.353, allocations: 0.5637 MB / 0.6842 GB, free: 99.35 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000831/1.354, allocations: 293.4 kB / 0.6845 GB, free: 99.23 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001958/1.354, allocations: 41.92 kB / 0.6846 GB, free: 99.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003935/1.358, allocations: 4.037 MB / 0.6885 GB, free: 96.24 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/1.358, allocations: 0 / 0.6885 GB, free: 96.24 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01503/1.373, allocations: 7.708 MB / 0.696 GB, free: 92.44 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01464/1.388, allocations: 4.262 MB / 0.7002 GB, free: 90.47 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005559/1.394, allocations: 51.61 kB / 0.7002 GB, free: 90.44 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006713/1.4, allocations: 0.6592 MB / 0.7009 GB, free: 90.14 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000889/1.401, allocations: 438.4 kB / 0.7013 GB, free: 89.92 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001991/1.401, allocations: 39.56 kB / 0.7013 GB, free: 89.91 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.04362/1.445, allocations: 25.67 MB / 0.7264 GB, free: 65.03 MB / 0.5138 GB Notification: Performance of sort global known variables: time 8.1e-08/1.445, allocations: 0 / 0.7264 GB, free: 65.03 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008956/1.454, allocations: 1.842 MB / 0.7282 GB, free: 63.25 MB / 0.5138 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.01611/1.47, allocations: 8.647 MB / 0.7367 GB, free: 54.75 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.007518/1.478, allocations: 4.399 MB / 0.741 GB, free: 50.36 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.698e-05/1.478, allocations: 10 kB / 0.741 GB, free: 50.35 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003623/1.481, allocations: 2.209 MB / 0.7431 GB, free: 48.13 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02102/1.502, allocations: 2.108 MB / 0.7452 GB, free: 46.07 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7563/2.259, allocations: 226.3 MB / 0.9662 GB, free: 82.02 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01834/2.277, allocations: 10.19 MB / 0.9762 GB, free: 71.84 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01735/2.294, allocations: 7.687 MB / 0.9837 GB, free: 64.18 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01391/2.308, allocations: 6.103 MB / 0.9896 GB, free: 58.07 MB / 0.5607 GB Notification: Performance of SimCode: time 2.324e-06/2.308, allocations: 0 / 0.9896 GB, free: 58.07 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9708/3.279, allocations: 331.1 MB / 1.313 GB, free: 130.5 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 164.4/167.7, allocations: 5.203 kB / 1.313 GB, free: 130.5 MB / 0.5763 GB " [Timeout remaining time 492] (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: 171.41838731383905] 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'] 168.05109807103872 168.067643917 167.626846827 Calling exit ...