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.001396/0.001396, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001306/0.001306, allocations: 196 kB / 18 MB, free: 5.051 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.513/1.513, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008869/0.0008869, allocations: 44.06 kB / 351.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3237, allocations: 49.44 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007707/0.3314, allocations: 6.012 MB / 406.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003598/0.335, allocations: 2.143 MB / 408.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008197/0.3359, allocations: 19.94 kB / 408.9 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00172/0.3376, allocations: 0.6224 MB / 409.5 MB, free: 100 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001087/0.3388, allocations: 405.8 kB / 409.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008774/0.3396, allocations: 414.8 kB / 410.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001264/0.3409, allocations: 1.308 MB / 411.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006251/0.3416, allocations: 465.8 kB / 412.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005069/0.3421, allocations: 498.3 kB / 412.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006437/0.3427, allocations: 0.5838 MB / 413.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001485/0.3429, allocations: 116 kB / 413.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003336/0.3432, allocations: 176 kB / 413.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004829/0.3437, allocations: 0.6467 MB / 414.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007266/0.3445, allocations: 0.8933 MB / 415 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002291/0.3468, allocations: 2.634 MB / 417.6 MB, free: 7.953 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3468, allocations: 0 / 417.6 MB, free: 7.953 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3468, allocations: 0 / 417.6 MB, free: 7.953 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.091e-05/0.3468, allocations: 0 / 417.6 MB, free: 7.953 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.003694/0.3505, allocations: 2.433 MB / 420 MB, free: 5.457 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.3506, allocations: 8.031 kB / 420 MB, free: 5.449 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002751/0.3508, allocations: 223.5 kB / 420.3 MB, free: 5.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002282/0.3531, allocations: 1.697 MB / 422 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.3533, allocations: 104.7 kB / 422.1 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.09e-05/0.3534, allocations: 63.98 kB / 422.1 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.3548, allocations: 0.8297 MB / 423 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.3548, allocations: 3.938 kB / 423 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-05/0.3549, allocations: 31.98 kB / 423 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.3549, allocations: 12 kB / 423 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001001/0.3559, allocations: 0.5439 MB / 423.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005705/0.3616, allocations: 4.001 MB / 427.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.363, allocations: 0.5246 MB / 428.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007867/0.3638, allocations: 365.2 kB / 428.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.132e-05/0.3638, allocations: 4.281 kB / 428.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.363e-05/0.3639, allocations: 42.83 kB / 428.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.485e-06/0.3639, allocations: 4 kB / 428.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002439/0.3664, allocations: 0.9461 MB / 429.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001465/0.3665, allocations: 272.9 kB / 429.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004368/0.3709, allocations: 3.144 MB / 432.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.391e-05/0.371, allocations: 33.7 kB / 432.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008122/0.3718, allocations: 0.8653 MB / 433.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.372, allocations: 126.9 kB / 433.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.3721, allocations: 94.2 kB / 433.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3723, allocations: 318 kB / 434.3 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004804/0.3728, allocations: 217 kB / 434.5 MB, free: 6.598 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005784/0.3734, allocations: 398 kB / 434.9 MB, free: 6.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009131/0.3743, allocations: 0.5128 MB / 435.4 MB, free: 5.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.3743, allocations: 4 kB / 435.4 MB, free: 5.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001694/0.376, allocations: 0.7893 MB / 436.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.376, allocations: 8 kB / 436.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.376, allocations: 4 kB / 436.2 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003056/0.3763, allocations: 65 kB / 436.2 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000438/0.3768, allocations: 119.8 kB / 436.4 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001855/0.3787, allocations: 1.798 MB / 438.2 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006991/0.3794, allocations: 75.81 kB / 438.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.551e-05/0.3794, allocations: 24 kB / 438.3 MB, free: 2.543 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.0009072/0.3803, allocations: 0.6552 MB / 438.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002328/0.3806, allocations: 194.7 kB / 439.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002617/0.3808, allocations: 214.5 kB / 439.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.3809, allocations: 7.984 kB / 439.3 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3809, allocations: 4 kB / 439.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3809, allocations: 3.938 kB / 439.3 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003102/0.384, allocations: 2.159 MB / 441.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.384, allocations: 0 / 441.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003729/0.3844, allocations: 83.88 kB / 441.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001849/0.3846, allocations: 60.75 kB / 441.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.877e-05/0.3846, allocations: 12.06 kB / 441.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/0.3861, allocations: 1.74 MB / 443.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3861, allocations: 4.109 kB / 443.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001742/0.3878, allocations: 0.9807 MB / 444.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005624/0.3884, allocations: 455.7 kB / 444.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.3886, allocations: 8 kB / 444.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005097/0.3891, allocations: 59.94 kB / 444.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.704e-05/0.3892, allocations: 39.89 kB / 444.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-05/0.3892, allocations: 12 kB / 444.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002711/0.3919, allocations: 2.247 MB / 447.2 MB, free: 9.328 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3919, allocations: 0 / 447.2 MB, free: 9.328 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007922/0.3927, allocations: 255.6 kB / 447.4 MB, free: 9.078 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.001031/0.3938, allocations: 479.5 kB / 447.9 MB, free: 8.785 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00124/0.395, allocations: 0.6078 MB / 448.5 MB, free: 8.164 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.3951, allocations: 0 / 448.5 MB, free: 8.164 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006392/0.3957, allocations: 367.1 kB / 448.9 MB, free: 7.793 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.3968, allocations: 286.1 kB / 449.1 MB, free: 7.512 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00554/0.4023, allocations: 3.689 MB / 452.8 MB, free: 3.781 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/0.4035, allocations: 1.493 MB / 454.3 MB, free: 2.258 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000611/0.4041, allocations: 303.1 kB / 454.6 MB, free: 1.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002408/0.4044, allocations: 91.42 kB / 454.7 MB, free: 1.867 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4044, allocations: 0 / 454.7 MB, free: 1.867 MB / 366.1 MB Notification: Performance of Templates: time 0.03172/0.4361, allocations: 17.4 MB / 472.1 MB, free: 0.6172 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