Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 109.8 kB / 17.06 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00128/0.001281, allocations: 191 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 47.92 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.3557, allocations: 49.43 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.009289/0.365, allocations: 6.012 MB / 406.7 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004534/0.3696, allocations: 2.147 MB / 408.9 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009918/0.3706, allocations: 15.94 kB / 408.9 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001853/0.3725, allocations: 0.6263 MB / 409.5 MB, free: 28 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001232/0.3738, allocations: 413.8 kB / 409.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001135/0.375, allocations: 419.3 kB / 410.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001669/0.3766, allocations: 1.305 MB / 411.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007315/0.3774, allocations: 469.8 kB / 412.1 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006933/0.3781, allocations: 0.4945 MB / 412.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008519/0.379, allocations: 0.5838 MB / 413.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002899/0.3793, allocations: 116 kB / 413.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004747/0.3797, allocations: 172 kB / 413.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006176/0.3804, allocations: 0.6467 MB / 414.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001193/0.3816, allocations: 0.8894 MB / 415 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002496/0.3841, allocations: 2.62 MB / 417.6 MB, free: 7.887 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.3841, allocations: 7.984 kB / 417.6 MB, free: 7.879 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.3841, allocations: 7.938 kB / 417.6 MB, free: 7.871 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.408e-05/0.3841, allocations: 0 / 417.6 MB, free: 7.871 MB / 334.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.003546/0.3877, allocations: 2.356 MB / 420 MB, free: 5.453 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.3878, allocations: 12.03 kB / 420 MB, free: 5.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003637/0.3881, allocations: 210.3 kB / 420.2 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002682/0.3908, allocations: 1.675 MB / 421.9 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.391, allocations: 100.7 kB / 422 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.3911, allocations: 64 kB / 422 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.3926, allocations: 0.822 MB / 422.8 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.515e-05/0.3926, allocations: 7.938 kB / 422.9 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.668e-05/0.3927, allocations: 31.94 kB / 422.9 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.3927, allocations: 16 kB / 422.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009997/0.3937, allocations: 0.5438 MB / 423.4 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006018/0.3997, allocations: 3.993 MB / 427.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.401, allocations: 0.5246 MB / 428 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007189/0.4017, allocations: 373.2 kB / 428.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.735e-05/0.4018, allocations: 4.281 kB / 428.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.4018, allocations: 38.84 kB / 428.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.974e-06/0.4018, allocations: 0 / 428.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002214/0.404, allocations: 0.945 MB / 429.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.4042, allocations: 265 kB / 429.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003789/0.408, allocations: 3.148 MB / 432.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.289e-05/0.408, allocations: 37.64 kB / 432.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007257/0.4088, allocations: 0.8645 MB / 433.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.363e-05/0.4089, allocations: 114.3 kB / 433.7 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/0.409, allocations: 94.16 kB / 433.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.4091, allocations: 326 kB / 434.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004415/0.4096, allocations: 213 kB / 434.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005884/0.4102, allocations: 394 kB / 434.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009003/0.4111, allocations: 0.5168 MB / 435.3 MB, free: 5.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4111, allocations: 0 / 435.3 MB, free: 5.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001421/0.4125, allocations: 0.7805 MB / 436 MB, free: 4.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.4126, allocations: 7.984 kB / 436 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.4126, allocations: 4 kB / 436 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002694/0.4129, allocations: 60.83 kB / 436.1 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004557/0.4133, allocations: 124 kB / 436.2 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001663/0.415, allocations: 1.782 MB / 438 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005373/0.4156, allocations: 79.5 kB / 438.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-05/0.4156, allocations: 19.98 kB / 438.1 MB, free: 2.613 MB / 350.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.0008657/0.4165, allocations: 0.6592 MB / 438.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002301/0.4167, allocations: 189.6 kB / 439 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002612/0.417, allocations: 218.5 kB / 439.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.417, allocations: 11.92 kB / 439.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.417, allocations: 0 / 439.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.417, allocations: 4 kB / 439.2 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003199/0.4202, allocations: 2.147 MB / 441.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.4202, allocations: 12.05 kB / 441.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003832/0.4206, allocations: 79.89 kB / 441.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001762/0.4208, allocations: 60.75 kB / 441.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.908e-05/0.4209, allocations: 8 kB / 441.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001538/0.4224, allocations: 1.743 MB / 443.2 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.4224, allocations: 0 / 443.2 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001726/0.4242, allocations: 0.9719 MB / 444.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000617/0.4248, allocations: 438.9 kB / 444.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.4249, allocations: 15.92 kB / 444.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004927/0.4254, allocations: 59.95 kB / 444.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.4256, allocations: 39.88 kB / 444.7 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/0.4256, allocations: 12 kB / 444.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003115/0.4287, allocations: 2.251 MB / 447 MB, free: 9.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4287, allocations: 0 / 447 MB, free: 9.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009161/0.4297, allocations: 247.5 kB / 447.2 MB, free: 9.168 MB / 366.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.001275/0.4309, allocations: 478.1 kB / 447.7 MB, free: 8.879 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.4322, allocations: 0.6078 MB / 448.3 MB, free: 8.258 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.4322, allocations: 4 kB / 448.3 MB, free: 8.254 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006078/0.4328, allocations: 367 kB / 448.7 MB, free: 7.883 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/0.4339, allocations: 290.1 kB / 449 MB, free: 7.598 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005846/0.4398, allocations: 3.627 MB / 452.6 MB, free: 3.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/0.441, allocations: 1.489 MB / 454.1 MB, free: 2.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006427/0.4417, allocations: 303.1 kB / 454.4 MB, free: 2.109 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000257/0.4419, allocations: 91.44 kB / 454.5 MB, free: 2.02 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4419, allocations: 4 kB / 454.5 MB, free: 2.016 MB / 366.1 MB Notification: Performance of Templates: time 0.03295/0.4749, allocations: 17.41 MB / 471.9 MB, free: 0.7617 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches