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_Cell.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.001261/0.001261, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.00142/0.00142, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.421/1.421, allocations: 230.6 MB / 258.3 MB, free: 8.059 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_Cell,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Cell",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.001933/0.001933, allocations: 64.77 kB / 378.5 MB, free: 3.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2752, allocations: 53.36 MB / 431.9 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.00733/0.2825, allocations: 5.597 MB / 437.5 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003315/0.2858, allocations: 1.913 MB / 439.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003795/0.2862, allocations: 15.88 kB / 439.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.2874, allocations: 0.5252 MB / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008612/0.2882, allocations: 390 kB / 440.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009441/0.2892, allocations: 374.3 kB / 440.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001111/0.2903, allocations: 0.8965 MB / 441.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004218/0.2907, allocations: 233.3 kB / 441.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004405/0.2911, allocations: 374.8 kB / 442.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005658/0.2917, allocations: 462.3 kB / 442.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.2918, allocations: 80 kB / 442.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000238/0.292, allocations: 128 kB / 442.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000486/0.2925, allocations: 0.5882 MB / 443.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007017/0.2932, allocations: 0.7454 MB / 444.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002161/0.2954, allocations: 2.128 MB / 446.3 MB, free: 8.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2954, allocations: 4 kB / 446.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2954, allocations: 4 kB / 446.3 MB, free: 8.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.253e-05/0.2954, allocations: 0 / 446.3 MB, free: 8.473 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003344/0.2988, allocations: 2.08 MB / 448.4 MB, free: 6.355 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.2988, allocations: 8.031 kB / 448.4 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001059/0.2989, allocations: 90.7 kB / 448.5 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002658/0.2992, allocations: 195.7 kB / 448.7 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00231/0.3015, allocations: 1.459 MB / 450.1 MB, free: 4.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.3016, allocations: 92.39 kB / 450.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.945e-05/0.3017, allocations: 48 kB / 450.3 MB, free: 4.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.3027, allocations: 0.5854 MB / 450.9 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.3028, allocations: 3.938 kB / 450.9 MB, free: 3.785 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.191e-05/0.3028, allocations: 24 kB / 450.9 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/0.3028, allocations: 12 kB / 450.9 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000719/0.3035, allocations: 335.8 kB / 451.2 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004614/0.3081, allocations: 3.207 MB / 454.4 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.3092, allocations: 357.2 kB / 454.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004545/0.3097, allocations: 168.8 kB / 454.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.928e-05/0.3097, allocations: 8 kB / 455 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.3098, allocations: 38.5 kB / 455 MB, free: 15.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 2.154e-06/0.3098, allocations: 0 / 455 MB, free: 15.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001876/0.3116, allocations: 0.6321 MB / 455.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.3118, allocations: 209.6 kB / 455.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003961/0.3157, allocations: 2.904 MB / 458.7 MB, free: 11.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.2e-05/0.3158, allocations: 33.7 kB / 458.8 MB, free: 11.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007573/0.3165, allocations: 0.786 MB / 459.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.423e-05/0.3166, allocations: 79.3 kB / 459.6 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.3167, allocations: 69.97 kB / 459.7 MB, free: 10.69 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.3169, allocations: 318 kB / 460 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003384/0.3172, allocations: 124.6 kB / 460.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004641/0.3177, allocations: 292.7 kB / 460.4 MB, free: 9.898 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007078/0.3184, allocations: 351.1 kB / 460.8 MB, free: 9.504 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.3184, allocations: 8 kB / 460.8 MB, free: 9.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001324/0.3197, allocations: 0.567 MB / 461.3 MB, free: 8.922 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.3197, allocations: 4 kB / 461.3 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.3197, allocations: 4 kB / 461.3 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002843/0.32, allocations: 65.03 kB / 461.4 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003106/0.3203, allocations: 71.91 kB / 461.5 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0017/0.322, allocations: 1.625 MB / 463.1 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004997/0.3225, allocations: 71.58 kB / 463.2 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.3226, allocations: 8 kB / 463.2 MB, free: 6.961 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0008076/0.3234, allocations: 0.5873 MB / 463.8 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002362/0.3236, allocations: 170.8 kB / 463.9 MB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001194/0.3248, allocations: 0.5065 MB / 464.4 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.3248, allocations: 4 kB / 464.4 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.3248, allocations: 0 / 464.4 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.3248, allocations: 0 / 464.4 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002753/0.3276, allocations: 1.669 MB / 466.1 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.3276, allocations: 0 / 466.1 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002242/0.3278, allocations: 39.97 kB / 466.2 MB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001657/0.328, allocations: 52.86 kB / 466.2 MB, free: 3.848 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.328, allocations: 4 kB / 466.2 MB, free: 3.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001518/0.3295, allocations: 1.578 MB / 467.8 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.3295, allocations: 3.938 kB / 467.8 MB, free: 2.148 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001465/0.331, allocations: 0.7225 MB / 468.5 MB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006497/0.3316, allocations: 318.8 kB / 468.8 MB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.3317, allocations: 0 / 468.8 MB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004364/0.3322, allocations: 43.95 kB / 468.9 MB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.3323, allocations: 39.88 kB / 468.9 MB, free: 1.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.3323, allocations: 4 kB / 468.9 MB, free: 1.004 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002887/0.3352, allocations: 2.083 MB / 471 MB, free: 14.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3352, allocations: 0 / 471 MB, free: 14.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007959/0.336, allocations: 203.7 kB / 471.2 MB, free: 14.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003018/0.339, allocations: 1.511 MB / 472.7 MB, free: 13.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.3402, allocations: 418.6 kB / 473.1 MB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.3402, allocations: 4.688 kB / 473.1 MB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005475/0.3407, allocations: 269.1 kB / 473.4 MB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.3419, allocations: 231.2 kB / 473.6 MB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02586/0.3677, allocations: 17.54 MB / 491.1 MB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001137/0.3688, allocations: 1.358 MB / 492.5 MB, free: 9.105 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005689/0.3694, allocations: 238.9 kB / 492.7 MB, free: 8.867 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007411/0.3702, allocations: 0.5851 MB / 493.3 MB, free: 8.281 MB / 398.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3702, allocations: 0 / 493.3 MB, free: 8.281 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0795/0.4497, allocations: 33.14 MB / 0.5141 GB, free: 7.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.17/15.62, allocations: 6.234 kB / 0.5141 GB, free: 7.32 MB / 430.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.27761831600219] Failed to read output from testmodel.py, exit status != 0: ['time', 'cell.cell.limIntegrator.y', 'cell.limIntegrator.y', 'energy.y'] 15.802374124992639 15.823577833 15.523011458 Calling exit ...