Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 195.9 kB / 24.5 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 225.7 MB / 253.3 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 51.92 kB / 371.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2607, allocations: 52.18 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.012/0.2727, allocations: 10.14 MB / 433.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00621/0.2789, allocations: 3.493 MB / 437 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008774/0.2798, allocations: 35.75 kB / 437.1 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002564/0.2824, allocations: 1.19 MB / 438.3 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001443/0.2838, allocations: 0.6491 MB / 438.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001187/0.285, allocations: 0.4936 MB / 439.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008939/0.294, allocations: 7.333 MB / 446.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003511/0.2975, allocations: 2.084 MB / 448.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004769/0.3022, allocations: 2.921 MB / 451.7 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005218/0.3075, allocations: 2.978 MB / 454.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002266/0.3097, allocations: 0.6758 MB / 455.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002281/0.312, allocations: 0.7265 MB / 456.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006077/0.3181, allocations: 5.826 MB / 461.9 MB, free: 7.902 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01055/0.3286, allocations: 7.183 MB / 469.1 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02637/0.355, allocations: 24.97 MB / 494.1 MB, free: 7.629 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.698e-06/0.355, allocations: 0 / 494.1 MB, free: 7.629 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.355, allocations: 0 / 494.1 MB, free: 7.629 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0008389/0.3558, allocations: 0 / 494.1 MB, free: 7.629 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.05328/0.4091, allocations: 19.29 MB / 0.5013 GB, free: 4.199 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.4092, allocations: 8.031 kB / 0.5014 GB, free: 4.191 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001176/0.4093, allocations: 86.75 kB / 0.5014 GB, free: 4.105 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001373/0.4107, allocations: 0.4956 MB / 0.5019 GB, free: 3.598 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005183/0.4159, allocations: 1.634 MB / 0.5035 GB, free: 1.953 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04386/0.4597, allocations: 18.07 MB / 0.5212 GB, free: 15.81 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005154/0.4602, allocations: 357.9 kB / 0.5215 GB, free: 15.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001041/0.4613, allocations: 331.9 kB / 0.5218 GB, free: 15.12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01264/0.4739, allocations: 6.491 MB / 0.5282 GB, free: 8.406 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.778e-05/0.474, allocations: 7.938 kB / 0.5282 GB, free: 8.398 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004247/0.4744, allocations: 148 kB / 0.5283 GB, free: 8.254 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.43e-05/0.4745, allocations: 80 kB / 0.5284 GB, free: 8.176 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009396/0.4838, allocations: 5.126 MB / 0.5334 GB, free: 3.039 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.459/0.9429, allocations: 33.54 MB / 0.5661 GB, free: 69.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006179/0.949, allocations: 4.168 MB / 0.5702 GB, free: 65.46 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003215/0.9522, allocations: 2.468 MB / 0.5726 GB, free: 63 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.849e-05/0.9523, allocations: 20.98 kB / 0.5726 GB, free: 62.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.509e-05/0.9524, allocations: 74.38 kB / 0.5727 GB, free: 62.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 3.616e-06/0.9524, allocations: 0 / 0.5727 GB, free: 62.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01583/0.9682, allocations: 7.506 MB / 0.58 GB, free: 55.97 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001661/0.9684, allocations: 0.9863 MB / 0.581 GB, free: 54.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06356/1.032, allocations: 35.76 MB / 0.6159 GB, free: 19.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005036/1.032, allocations: 61.7 kB / 0.616 GB, free: 19 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01064/1.043, allocations: 7.499 MB / 0.6233 GB, free: 11.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007935/1.044, allocations: 0.5782 MB / 0.6239 GB, free: 11.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006792/1.045, allocations: 423.4 kB / 0.6243 GB, free: 10.74 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.721e-05/1.045, allocations: 313.1 kB / 0.6246 GB, free: 10.43 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002841/1.047, allocations: 1.971 MB / 0.6265 GB, free: 8.457 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003116/1.051, allocations: 2.857 MB / 0.6293 GB, free: 5.281 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005325/1.056, allocations: 4.205 MB / 0.6334 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/1.056, allocations: 8 kB / 0.6334 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.0157/1.072, allocations: 6.091 MB / 0.6394 GB, free: 10.74 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.845e-05/1.072, allocations: 12.84 kB / 0.6394 GB, free: 10.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.075e-05/1.072, allocations: 12.88 kB / 0.6394 GB, free: 10.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/1.073, allocations: 360.4 kB / 0.6397 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002504/1.075, allocations: 0.698 MB / 0.6404 GB, free: 9.664 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006314/1.082, allocations: 4.507 MB / 0.6448 GB, free: 5.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009149/1.091, allocations: 0.6643 MB / 0.6455 GB, free: 4.465 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004353/1.091, allocations: 80.09 kB / 0.6455 GB, free: 4.387 MB / 462.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.01358/1.105, allocations: 8.125 MB / 0.6535 GB, free: 12.26 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005632/1.11, allocations: 1.471 MB / 0.6549 GB, free: 10.78 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01449/1.125, allocations: 6.012 MB / 0.6608 GB, free: 4.758 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.338e-05/1.125, allocations: 20 kB / 0.6608 GB, free: 4.738 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/1.125, allocations: 0 / 0.6608 GB, free: 4.738 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.568e-05/1.125, allocations: 11.91 kB / 0.6608 GB, free: 4.727 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04784/1.173, allocations: 18.76 MB / 0.6791 GB, free: 1.914 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/1.173, allocations: 4 kB / 0.6791 GB, free: 1.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002019/1.175, allocations: 0.5577 MB / 0.6797 GB, free: 1.352 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001086/1.176, allocations: 299.7 kB / 0.68 GB, free: 1.059 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001825/1.176, allocations: 43.98 kB / 0.68 GB, free: 1.016 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005771/1.182, allocations: 3.926 MB / 0.6838 GB, free: 12.97 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/1.182, allocations: 0 / 0.6838 GB, free: 12.97 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01797/1.2, allocations: 7.692 MB / 0.6914 GB, free: 5.246 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01342/1.213, allocations: 4.405 MB / 0.6957 GB, free: 0.8516 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005953/1.219, allocations: 44 kB / 0.6957 GB, free: 0.8086 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008679/1.228, allocations: 0.663 MB / 0.6963 GB, free: 148 kB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001261/1.229, allocations: 440.6 kB / 0.6968 GB, free: 15.71 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003525/1.229, allocations: 36 kB / 0.6968 GB, free: 15.68 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.0614/1.291, allocations: 25.59 MB / 0.7218 GB, free: 6.152 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.41e-07/1.291, allocations: 0 / 0.7218 GB, free: 6.152 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01127/1.302, allocations: 1.85 MB / 0.7236 GB, free: 4.371 MB / 0.5294 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.022/1.324, allocations: 8.638 MB / 0.732 GB, free: 11.83 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009551/1.334, allocations: 4.399 MB / 0.7363 GB, free: 7.426 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.546e-05/1.334, allocations: 5.156 kB / 0.7363 GB, free: 7.422 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004275/1.338, allocations: 2.221 MB / 0.7385 GB, free: 5.184 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0179/1.356, allocations: 2.109 MB / 0.7406 GB, free: 3.098 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9402/2.296, allocations: 226.5 MB / 0.9617 GB, free: 158 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02218/2.318, allocations: 10.17 MB / 0.9717 GB, free: 157 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01885/2.337, allocations: 7.724 MB / 0.9792 GB, free: 156.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01625/2.353, allocations: 6.081 MB / 0.9851 GB, free: 153.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.312e-06/2.353, allocations: 0 / 0.9851 GB, free: 153.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6392/2.993, allocations: 332.4 MB / 1.31 GB, free: 53.29 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 90.98/93.98, allocations: 11.62 kB / 1.31 GB, free: 53.28 MB / 0.5607 GB " [Timeout remaining time 566] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 102.05593904695706] 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'] 94.3539245009888 94.363091209 94.005572878 Calling exit ...