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.001771/0.001771, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 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.002293/0.002293, allocations: 215.8 kB / 24.52 MB, free: 3.91 MB / 14.72 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 1.405/1.405, allocations: 230.6 MB / 258.3 MB, free: 7.742 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+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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 47.94 kB / 378.5 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2648, allocations: 53.37 MB / 431.9 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01148/0.2762, allocations: 8.75 MB / 440.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005945/0.2822, allocations: 3.342 MB / 443.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009073/0.2831, allocations: 31.81 kB / 444 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002542/0.2856, allocations: 1.148 MB / 445.1 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001671/0.2873, allocations: 0.688 MB / 445.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001172/0.2885, allocations: 494.5 kB / 446.3 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008076/0.2966, allocations: 7.321 MB / 453.6 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002965/0.2995, allocations: 2.1 MB / 455.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00406/0.3036, allocations: 2.929 MB / 458.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004852/0.3084, allocations: 2.981 MB / 461.6 MB, free: 8.668 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001387/0.3098, allocations: 0.6797 MB / 462.3 MB, free: 7.988 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001647/0.3115, allocations: 0.7342 MB / 463 MB, free: 7.254 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005613/0.3171, allocations: 5.837 MB / 468.9 MB, free: 1.402 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01032/0.3274, allocations: 5.283 MB / 474.2 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02848/0.3559, allocations: 25.17 MB / 499.3 MB, free: 2.836 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.868e-06/0.3559, allocations: 4 kB / 499.3 MB, free: 2.832 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3559, allocations: 0 / 499.3 MB, free: 2.832 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007371/0.3566, allocations: 0 / 499.3 MB, free: 2.832 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.05082/0.4074, allocations: 19.33 MB / 0.5065 GB, free: 15.36 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.786e-05/0.4075, allocations: 12.03 kB / 0.5065 GB, free: 15.35 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001447/0.4077, allocations: 86.75 kB / 0.5066 GB, free: 15.26 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001608/0.4093, allocations: 499.5 kB / 0.5071 GB, free: 14.77 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006542/0.4158, allocations: 1.642 MB / 0.5087 GB, free: 13.11 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04719/0.463, allocations: 18.11 MB / 0.5264 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005044/0.4635, allocations: 365.9 kB / 0.5267 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001028/0.4645, allocations: 324 kB / 0.527 GB, free: 10.24 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01323/0.4778, allocations: 8.013 MB / 0.5348 GB, free: 1.637 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.796e-05/0.4778, allocations: 4 kB / 0.5349 GB, free: 1.633 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004443/0.4783, allocations: 144 kB / 0.535 GB, free: 1.492 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.038e-05/0.4783, allocations: 80 kB / 0.5351 GB, free: 1.414 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4005/0.8789, allocations: 5.127 MB / 0.5401 GB, free: 80.35 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05803/0.9369, allocations: 30.75 MB / 0.5701 GB, free: 58.76 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006006/0.9429, allocations: 4.166 MB / 0.5742 GB, free: 54.68 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003222/0.9461, allocations: 2.459 MB / 0.5766 GB, free: 52.23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.417e-05/0.9462, allocations: 25.3 kB / 0.5766 GB, free: 52.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.452e-05/0.9463, allocations: 63.88 kB / 0.5767 GB, free: 52.13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 4.379e-06/0.9463, allocations: 0 / 0.5767 GB, free: 52.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01624/0.9625, allocations: 7.522 MB / 0.584 GB, free: 45.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002042/0.9627, allocations: 0.9824 MB / 0.585 GB, free: 43.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06642/1.029, allocations: 35.88 MB / 0.62 GB, free: 8.043 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004908/1.03, allocations: 61.7 kB / 0.6201 GB, free: 7.977 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01367/1.043, allocations: 7.539 MB / 0.6274 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007471/1.044, allocations: 0.5729 MB / 0.628 GB, free: 104 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008785/1.045, allocations: 427.4 kB / 0.6284 GB, free: 15.67 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/1.045, allocations: 312.9 kB / 0.6287 GB, free: 15.37 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00374/1.049, allocations: 1.97 MB / 0.6306 GB, free: 13.39 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005006/1.054, allocations: 3.761 MB / 0.6343 GB, free: 9.09 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007739/1.062, allocations: 4.211 MB / 0.6384 GB, free: 4.672 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.808e-05/1.062, allocations: 4 kB / 0.6384 GB, free: 4.668 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.0178/1.079, allocations: 6.092 MB / 0.6443 GB, free: 14.55 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.831e-05/1.079, allocations: 12 kB / 0.6444 GB, free: 14.54 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.883e-05/1.079, allocations: 16 kB / 0.6444 GB, free: 14.53 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001151/1.081, allocations: 371.7 kB / 0.6447 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002557/1.083, allocations: 0.6934 MB / 0.6454 GB, free: 13.47 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005998/1.089, allocations: 4.438 MB / 0.6497 GB, free: 8.945 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008215/1.097, allocations: 0.6624 MB / 0.6504 GB, free: 8.344 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005478/1.098, allocations: 83.98 kB / 0.6505 GB, free: 8.262 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.01605/1.114, allocations: 8.138 MB / 0.6584 GB, free: 124 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006558/1.121, allocations: 1.475 MB / 0.6599 GB, free: 14.63 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01572/1.136, allocations: 6.026 MB / 0.6657 GB, free: 8.594 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.22e-05/1.136, allocations: 20 kB / 0.6658 GB, free: 8.574 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/1.136, allocations: 11.92 kB / 0.6658 GB, free: 8.562 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.79e-05/1.136, allocations: 3.984 kB / 0.6658 GB, free: 8.559 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04892/1.185, allocations: 16.74 MB / 0.6821 GB, free: 7.77 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.305e-06/1.185, allocations: 0 / 0.6821 GB, free: 7.77 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002002/1.187, allocations: 0.5577 MB / 0.6827 GB, free: 7.211 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009455/1.188, allocations: 292.6 kB / 0.6829 GB, free: 6.922 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001554/1.188, allocations: 43.98 kB / 0.683 GB, free: 6.879 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005194/1.194, allocations: 3.88 MB / 0.6868 GB, free: 2.895 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/1.194, allocations: 4 kB / 0.6868 GB, free: 2.891 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0185/1.212, allocations: 7.696 MB / 0.6943 GB, free: 11.16 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01364/1.226, allocations: 4.399 MB / 0.6986 GB, free: 6.766 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00562/1.231, allocations: 47.98 kB / 0.6986 GB, free: 6.719 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008228/1.24, allocations: 0.6591 MB / 0.6993 GB, free: 6.059 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001259/1.241, allocations: 444.6 kB / 0.6997 GB, free: 5.625 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002027/1.241, allocations: 40 kB / 0.6997 GB, free: 5.586 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.06313/1.304, allocations: 25.67 MB / 0.7248 GB, free: 11.99 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.81e-07/1.304, allocations: 0.6562 kB / 0.7248 GB, free: 11.99 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0122/1.316, allocations: 1.852 MB / 0.7266 GB, free: 10.2 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.02224/1.339, allocations: 8.667 MB / 0.7351 GB, free: 1.664 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009303/1.348, allocations: 4.401 MB / 0.7394 GB, free: 13.25 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.619e-05/1.348, allocations: 5.156 kB / 0.7394 GB, free: 13.25 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004344/1.352, allocations: 2.213 MB / 0.7415 GB, free: 11.02 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02333/1.376, allocations: 2.101 MB / 0.7436 GB, free: 8.938 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8921/2.268, allocations: 226.3 MB / 0.9646 GB, free: 194.7 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0217/2.289, allocations: 9.809 MB / 0.9742 GB, free: 192.6 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01524/2.305, allocations: 7.694 MB / 0.9817 GB, free: 190.1 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01376/2.318, allocations: 6.098 MB / 0.9877 GB, free: 184.7 MB / 0.5607 GB Notification: Performance of SimCode: time 1.353e-06/2.318, allocations: 0 / 0.9877 GB, free: 184.7 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6694/2.988, allocations: 338.4 MB / 1.318 GB, free: 68.68 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 93.47/96.46, allocations: 4.062 kB / 1.318 GB, free: 68.68 MB / 0.5763 GB " [Timeout remaining time 563] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 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: 104.62207075604238] 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'] 96.83918664697558 96.84720798 96.489005768 Calling exit ...