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.001342/0.001342, allocations: 113 kB / 18.49 MB, free: 4.539 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.001526/0.001526, allocations: 217.4 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+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.51/1.51, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.001466/0.001466, allocations: 47.94 kB / 373.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1104, allocations: 53.32 MB / 427 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.2163/0.3266, allocations: 10.14 MB / 437.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004615/0.3313, allocations: 3.636 MB / 440.8 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006442/0.3319, allocations: 31.78 kB / 440.8 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002605/0.3345, allocations: 1.183 MB / 442 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00162/0.3361, allocations: 0.6944 MB / 442.7 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001136/0.3373, allocations: 487.2 kB / 443.2 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007431/0.3447, allocations: 7.333 MB / 450.5 MB, free: 100 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004289/0.349, allocations: 3.329 MB / 453.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004992/0.354, allocations: 2.915 MB / 456.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005952/0.3599, allocations: 2.988 MB / 459.7 MB, free: 12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001992/0.3619, allocations: 0.6816 MB / 460.4 MB, free: 12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002193/0.3641, allocations: 0.7228 MB / 461.1 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005048/0.3692, allocations: 5.832 MB / 467 MB, free: 8.898 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01207/0.3812, allocations: 7.191 MB / 474.2 MB, free: 2.027 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02801/0.4092, allocations: 25.01 MB / 499.2 MB, free: 8.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4092, allocations: 0 / 499.2 MB, free: 8.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4092, allocations: 0 / 499.2 MB, free: 8.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000684/0.4099, allocations: 0 / 499.2 MB, free: 8.93 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.04999/0.4599, allocations: 19.23 MB / 0.5062 GB, free: 5.543 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.46, allocations: 12.03 kB / 0.5063 GB, free: 5.531 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001134/0.4601, allocations: 86.75 kB / 0.5063 GB, free: 5.445 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001474/0.4616, allocations: 0.4957 MB / 0.5068 GB, free: 4.938 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005569/0.4671, allocations: 1.638 MB / 0.5084 GB, free: 3.289 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04554/0.5127, allocations: 17.91 MB / 0.5259 GB, free: 1.305 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006515/0.5133, allocations: 340.2 kB / 0.5262 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001561/0.5149, allocations: 331.9 kB / 0.5266 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01615/0.531, allocations: 6.491 MB / 0.5329 GB, free: 9.922 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001108/0.5311, allocations: 7.938 kB / 0.5329 GB, free: 9.914 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001055/0.5322, allocations: 151.9 kB / 0.533 GB, free: 9.766 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.528e-05/0.5323, allocations: 80 kB / 0.5331 GB, free: 9.688 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01098/0.5433, allocations: 5.126 MB / 0.5381 GB, free: 4.551 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07588/0.6191, allocations: 33.45 MB / 0.5708 GB, free: 2.773 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008765/0.6279, allocations: 4.176 MB / 0.5749 GB, free: 14.67 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00502/0.6329, allocations: 2.478 MB / 0.5773 GB, free: 12.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001718/0.6331, allocations: 17.31 kB / 0.5773 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.489e-05/0.6332, allocations: 59.88 kB / 0.5774 GB, free: 12.11 MB / 494.1 MB Notification: Performance of pre-optimization done (n=156): time 6.142e-06/0.6332, allocations: 4 kB / 0.5774 GB, free: 12.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.02113/0.6543, allocations: 7.599 MB / 0.5848 GB, free: 4.465 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000558/0.6549, allocations: 0.9824 MB / 0.5858 GB, free: 3.25 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5419/1.197, allocations: 35.88 MB / 0.6208 GB, free: 127.5 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006101/1.197, allocations: 63.67 kB / 0.6209 GB, free: 127.4 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.01399/1.211, allocations: 7.527 MB / 0.6282 GB, free: 123.3 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007867/1.212, allocations: 0.5799 MB / 0.6288 GB, free: 123.2 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000843/1.213, allocations: 425.6 kB / 0.6292 GB, free: 123.1 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.759e-05/1.213, allocations: 310.8 kB / 0.6295 GB, free: 122.8 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003753/1.217, allocations: 1.973 MB / 0.6314 GB, free: 122.4 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00451/1.221, allocations: 2.845 MB / 0.6342 GB, free: 121 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00758/1.229, allocations: 4.211 MB / 0.6383 GB, free: 119.5 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.651e-05/1.229, allocations: 4.281 kB / 0.6383 GB, free: 119.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01882/1.248, allocations: 6.096 MB / 0.6442 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.664e-05/1.248, allocations: 11.38 kB / 0.6443 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.864e-05/1.248, allocations: 14.66 kB / 0.6443 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001466/1.249, allocations: 371.5 kB / 0.6446 GB, free: 117.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002663/1.252, allocations: 0.7008 MB / 0.6453 GB, free: 117.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005931/1.258, allocations: 4.599 MB / 0.6498 GB, free: 114.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008025/1.266, allocations: 0.6693 MB / 0.6505 GB, free: 114.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004894/1.266, allocations: 77.22 kB / 0.6505 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.011/1.277, allocations: 8.144 MB / 0.6585 GB, free: 112.7 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00496/1.282, allocations: 1.476 MB / 0.6599 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01492/1.297, allocations: 6.018 MB / 0.6658 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/1.297, allocations: 19.25 kB / 0.6658 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/1.297, allocations: 0 / 0.6658 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-05/1.297, allocations: 7.969 kB / 0.6658 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04952/1.347, allocations: 18.57 MB / 0.684 GB, free: 99.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.025e-05/1.347, allocations: 0.75 kB / 0.684 GB, free: 99.5 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001944/1.349, allocations: 0.5717 MB / 0.6845 GB, free: 99.29 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008852/1.35, allocations: 291.5 kB / 0.6848 GB, free: 99.18 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000259/1.35, allocations: 39.67 kB / 0.6848 GB, free: 99.15 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004007/1.354, allocations: 4.043 MB / 0.6888 GB, free: 96.19 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.354, allocations: 0 / 0.6888 GB, free: 96.19 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01457/1.369, allocations: 7.705 MB / 0.6963 GB, free: 92.39 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.011/1.38, allocations: 4.27 MB / 0.7005 GB, free: 90.42 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005571/1.385, allocations: 43.75 kB / 0.7005 GB, free: 90.39 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008235/1.393, allocations: 0.6657 MB / 0.7012 GB, free: 90.08 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001173/1.395, allocations: 431.5 kB / 0.7016 GB, free: 89.87 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003983/1.395, allocations: 51.17 kB / 0.7016 GB, free: 89.85 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.05923/1.454, allocations: 25.67 MB / 0.7267 GB, free: 64.77 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.21e-07/1.454, allocations: 0 / 0.7267 GB, free: 64.77 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.0106/1.465, allocations: 1.838 MB / 0.7285 GB, free: 63 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.01883/1.484, allocations: 8.647 MB / 0.7369 GB, free: 54.49 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.007517/1.491, allocations: 4.401 MB / 0.7412 GB, free: 50.09 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/1.491, allocations: 5.219 kB / 0.7412 GB, free: 50.09 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003447/1.495, allocations: 2.209 MB / 0.7434 GB, free: 47.87 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02361/1.518, allocations: 2.105 MB / 0.7455 GB, free: 45.81 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7589/2.277, allocations: 226.3 MB / 0.9665 GB, free: 81.51 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01939/2.296, allocations: 10.19 MB / 0.9764 GB, free: 71.31 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01794/2.314, allocations: 7.688 MB / 0.984 GB, free: 63.65 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01499/2.329, allocations: 6.103 MB / 0.9899 GB, free: 57.55 MB / 0.5607 GB Notification: Performance of SimCode: time 1.954e-06/2.329, allocations: 4 kB / 0.9899 GB, free: 57.54 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9657/3.295, allocations: 331.1 MB / 1.313 GB, free: 131.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 83.7/86.99, allocations: 5.469 kB / 1.313 GB, free: 131.2 MB / 0.5763 GB " [Timeout remaining time 573] (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: 95.23335553199286] 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'] 87.35083043895429 87.364928733 86.952174955 Calling exit ...