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_CellRC.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.001734/0.001734, 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.002135/0.002135, allocations: 213.2 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.4/1.4, allocations: 230.6 MB / 258.3 MB, free: 8.035 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_CellRC,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",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.001893/0.001893, allocations: 68.55 kB / 378.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.255, allocations: 53.36 MB / 431.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007994/0.263, allocations: 6.127 MB / 438 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003933/0.267, allocations: 2.337 MB / 440.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004846/0.2674, allocations: 23.81 kB / 440.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001466/0.2689, allocations: 0.6185 MB / 441 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008961/0.2698, allocations: 461.6 kB / 441.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008808/0.2707, allocations: 418 kB / 441.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001527/0.2722, allocations: 1.309 MB / 443.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005356/0.2727, allocations: 310.4 kB / 443.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005869/0.2733, allocations: 0.5023 MB / 444 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006994/0.274, allocations: 0.6033 MB / 444.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001451/0.2742, allocations: 116 kB / 444.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003013/0.2745, allocations: 176 kB / 444.9 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005112/0.275, allocations: 0.6622 MB / 445.5 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000778/0.2758, allocations: 0.8894 MB / 446.4 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00257/0.2783, allocations: 2.65 MB / 449.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2783, allocations: 0 / 449.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2783, allocations: 0 / 449.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.408e-05/0.2784, allocations: 0 / 449.1 MB, free: 5.66 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003938/0.2823, allocations: 2.362 MB / 451.4 MB, free: 3.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.2824, allocations: 8.031 kB / 451.4 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001428/0.2825, allocations: 114.6 kB / 451.5 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003345/0.2828, allocations: 227.5 kB / 451.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002512/0.2853, allocations: 1.635 MB / 453.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001692/0.2855, allocations: 185.8 kB / 453.6 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.568e-05/0.2856, allocations: 63.95 kB / 453.6 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.2871, allocations: 0.8297 MB / 454.5 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.2871, allocations: 0 / 454.5 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.751e-05/0.2871, allocations: 28 kB / 454.5 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.57e-05/0.2872, allocations: 16 kB / 454.5 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001068/0.2882, allocations: 0.5516 MB / 455.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005717/0.2939, allocations: 3.938 MB / 459 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/0.2952, allocations: 0.4989 MB / 459.5 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007525/0.296, allocations: 346.1 kB / 459.8 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.296, allocations: 288 / 459.8 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.783e-05/0.296, allocations: 42.84 kB / 459.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/0.296, allocations: 3.938 kB / 459.9 MB, free: 10.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002371/0.2984, allocations: 0.873 MB / 460.8 MB, free: 9.621 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001583/0.2986, allocations: 265 kB / 461 MB, free: 9.301 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0042/0.3028, allocations: 3.168 MB / 464.2 MB, free: 6.098 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.701e-05/0.3028, allocations: 29.7 kB / 464.2 MB, free: 6.062 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008273/0.3037, allocations: 0.8692 MB / 465.1 MB, free: 5.188 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.3038, allocations: 119 kB / 465.2 MB, free: 5.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.3039, allocations: 94.14 kB / 465.3 MB, free: 4.973 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.3041, allocations: 322 kB / 465.6 MB, free: 4.652 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004711/0.3045, allocations: 212.9 kB / 465.8 MB, free: 4.441 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006019/0.3051, allocations: 401.2 kB / 466.2 MB, free: 3.977 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009642/0.3061, allocations: 0.5204 MB / 466.7 MB, free: 3.406 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.3061, allocations: 0 / 466.7 MB, free: 3.406 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001586/0.3077, allocations: 0.7856 MB / 467.5 MB, free: 2.609 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.3077, allocations: 8 kB / 467.5 MB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.3077, allocations: 4 kB / 467.5 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002943/0.308, allocations: 69 kB / 467.6 MB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004536/0.3085, allocations: 111.9 kB / 467.7 MB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001802/0.3103, allocations: 1.699 MB / 469.4 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005705/0.3108, allocations: 75.59 kB / 469.5 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.307e-05/0.3109, allocations: 16 kB / 469.5 MB, free: 0.5156 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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 {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0008892/0.3118, allocations: 0.6537 MB / 470.2 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002706/0.312, allocations: 206.5 kB / 470.4 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002926/0.3123, allocations: 218.6 kB / 470.6 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.3123, allocations: 8.062 kB / 470.6 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.3123, allocations: 0 / 470.6 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.3123, allocations: 7.969 kB / 470.6 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003367/0.3157, allocations: 2.123 MB / 472.7 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.3157, allocations: 4 kB / 472.7 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003778/0.3161, allocations: 83.81 kB / 472.8 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001834/0.3163, allocations: 60.89 kB / 472.9 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.919e-05/0.3163, allocations: 11.98 kB / 472.9 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001546/0.3179, allocations: 1.636 MB / 474.5 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.3179, allocations: 4.031 kB / 474.5 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.3197, allocations: 0.9884 MB / 475.5 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007395/0.3204, allocations: 374.5 kB / 475.9 MB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000149/0.3205, allocations: 12 kB / 475.9 MB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004954/0.321, allocations: 51.94 kB / 475.9 MB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.896e-05/0.3211, allocations: 39.94 kB / 476 MB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.679e-05/0.3212, allocations: 15.98 kB / 476 MB, free: 9.816 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002872/0.324, allocations: 2.252 MB / 478.2 MB, free: 7.547 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.324, allocations: 0 / 478.2 MB, free: 7.547 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007501/0.3248, allocations: 267.5 kB / 478.5 MB, free: 7.285 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.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 (29): * Single equations (assignments): 28 * 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 {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003495/0.3283, allocations: 1.895 MB / 480.4 MB, free: 5.535 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001196/0.3295, allocations: 0.5965 MB / 481 MB, free: 4.926 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.3295, allocations: 4 kB / 481 MB, free: 4.922 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006178/0.3301, allocations: 347.2 kB / 481.3 MB, free: 4.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.3311, allocations: 293.1 kB / 481.6 MB, free: 4.285 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02658/0.3577, allocations: 19.76 MB / 0.4896 GB, free: 224 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00118/0.3589, allocations: 1.492 MB / 0.4911 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006427/0.3596, allocations: 303.2 kB / 0.4914 GB, free: 14.4 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008066/0.3604, allocations: 0.6438 MB / 0.492 GB, free: 13.75 MB / 414.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3604, allocations: 0 / 0.492 GB, free: 13.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2062/0.5666, allocations: 36.85 MB / 0.528 GB, free: 9.137 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.01/16.58, allocations: 4.062 kB / 0.528 GB, free: 9.133 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.463059842120856] Failed to read output from testmodel.py, exit status != 0: ['time', 'cell.cell.capacitor[1].v', 'cell.cell.capacitor[2].v', 'cell.cell.limIntegrator.y', 'cell.limIntegrator.y', 'energy.y'] 16.767214220017195 16.96304211 16.682289882 Calling exit ...