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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 184.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 107.4 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 44.08 kB / 350 MB, free: 80 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3059, allocations: 49.43 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008012/0.314, allocations: 5.989 MB / 405.5 MB, free: 27.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004487/0.3185, allocations: 2.116 MB / 407.6 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009558/0.3196, allocations: 15.94 kB / 407.6 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001941/0.3216, allocations: 0.5839 MB / 408.2 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001233/0.3228, allocations: 362.3 kB / 408.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001282/0.3241, allocations: 361.2 kB / 408.9 MB, free: 23.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002374/0.3265, allocations: 1.239 MB / 410.1 MB, free: 22.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001177/0.3277, allocations: 413.6 kB / 410.5 MB, free: 22.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001387/0.3291, allocations: 430.3 kB / 410.9 MB, free: 21.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000899/0.33, allocations: 0.5486 MB / 411.5 MB, free: 21.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001468/0.3302, allocations: 63.94 kB / 411.6 MB, free: 21.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004175/0.3306, allocations: 112 kB / 411.7 MB, free: 21.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004518/0.3311, allocations: 0.5959 MB / 412.3 MB, free: 20.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008039/0.3319, allocations: 0.819 MB / 413.1 MB, free: 19.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002278/0.3342, allocations: 2.531 MB / 415.6 MB, free: 17.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3342, allocations: 0 / 415.6 MB, free: 17.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3342, allocations: 0 / 415.6 MB, free: 17.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.209e-05/0.3343, allocations: 0 / 415.6 MB, free: 17.17 MB / 298.7 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.005825/0.3401, allocations: 2.368 MB / 418 MB, free: 14.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.364e-05/0.3402, allocations: 8.031 kB / 418 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005329/0.3407, allocations: 214.2 kB / 418.2 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003593/0.3444, allocations: 1.66 MB / 419.9 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003055/0.3447, allocations: 124.7 kB / 420 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.3448, allocations: 60 kB / 420 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001761/0.3466, allocations: 0.8345 MB / 420.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.715e-05/0.3466, allocations: 4 kB / 420.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.459e-05/0.3467, allocations: 28 kB / 420.9 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.39e-05/0.3468, allocations: 19.98 kB / 420.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/0.3482, allocations: 0.5477 MB / 421.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005556/0.3538, allocations: 4.008 MB / 425.5 MB, free: 6.984 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.3549, allocations: 0.5326 MB / 426 MB, free: 6.445 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006224/0.3556, allocations: 365.1 kB / 426.4 MB, free: 6.086 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.562e-05/0.3556, allocations: 4.281 kB / 426.4 MB, free: 6.082 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.3557, allocations: 38.84 kB / 426.4 MB, free: 6.035 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 2.505e-06/0.3557, allocations: 0 / 426.4 MB, free: 6.035 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.002067/0.3577, allocations: 0.9373 MB / 427.3 MB, free: 5.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.213e-05/0.3578, allocations: 269 kB / 427.6 MB, free: 4.746 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00313/0.361, allocations: 3.148 MB / 430.8 MB, free: 1.562 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.5e-05/0.361, allocations: 37.64 kB / 430.8 MB, free: 1.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005442/0.3616, allocations: 0.8568 MB / 431.6 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.973e-05/0.3617, allocations: 118.3 kB / 431.8 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.3619, allocations: 90.16 kB / 431.9 MB, free: 456 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.28e-05/0.3619, allocations: 330 kB / 432.2 MB, free: 120 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004593/0.3624, allocations: 209 kB / 432.4 MB, free: 15.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000646/0.363, allocations: 390.1 kB / 432.8 MB, free: 15.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009326/0.364, allocations: 0.5206 MB / 433.3 MB, free: 14.89 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.364, allocations: 4 kB / 433.3 MB, free: 14.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001469/0.3655, allocations: 0.7763 MB / 434.1 MB, free: 14.1 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.3655, allocations: 8.406 kB / 434.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.3655, allocations: 8 kB / 434.1 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000324/0.3659, allocations: 72.69 kB / 434.1 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004495/0.3663, allocations: 111.9 kB / 434.3 MB, free: 13.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001679/0.368, allocations: 1.638 MB / 435.9 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006596/0.3687, allocations: 75.41 kB / 436 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.988e-05/0.3687, allocations: 20 kB / 436 MB, free: 12.03 MB / 314.7 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.001177/0.3699, allocations: 0.6459 MB / 436.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003182/0.3703, allocations: 185.7 kB / 436.8 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003797/0.3706, allocations: 226.5 kB / 437 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.3707, allocations: 7.984 kB / 437 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.3707, allocations: 0 / 437 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3707, allocations: 3.984 kB / 437 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003725/0.3744, allocations: 2.158 MB / 439.2 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3744, allocations: 0 / 439.2 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003904/0.3748, allocations: 75.94 kB / 439.3 MB, free: 8.652 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002088/0.3751, allocations: 60.88 kB / 439.3 MB, free: 8.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.431e-05/0.3751, allocations: 12 kB / 439.4 MB, free: 8.578 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001551/0.3767, allocations: 1.58 MB / 440.9 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.3767, allocations: 4.031 kB / 440.9 MB, free: 6.855 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01275/0.3894, allocations: 7.505 MB / 448.4 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008748/0.3903, allocations: 442.6 kB / 448.9 MB, free: 14.57 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001424/0.3905, allocations: 8 kB / 448.9 MB, free: 14.56 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005554/0.3911, allocations: 59.94 kB / 448.9 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.3912, allocations: 35.89 kB / 449 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.108e-05/0.3913, allocations: 15.98 kB / 449 MB, free: 14.45 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003728/0.395, allocations: 2.243 MB / 451.2 MB, free: 12.18 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.395, allocations: 0 / 451.2 MB, free: 12.18 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00194/0.397, allocations: 403.5 kB / 451.6 MB, free: 11.79 MB / 330.7 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.001429/0.3984, allocations: 0.5754 MB / 452.2 MB, free: 11.45 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001711/0.4001, allocations: 0.604 MB / 452.8 MB, free: 10.83 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.4002, allocations: 0 / 452.8 MB, free: 10.83 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007317/0.4009, allocations: 363.1 kB / 453.2 MB, free: 10.46 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00177/0.4027, allocations: 278.3 kB / 453.4 MB, free: 10.19 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008452/0.4112, allocations: 4.551 MB / 458 MB, free: 5.566 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002079/0.4133, allocations: 1.501 MB / 459.5 MB, free: 4.035 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00178/0.4151, allocations: 307.2 kB / 459.8 MB, free: 3.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005209/0.4157, allocations: 91.44 kB / 459.9 MB, free: 3.645 MB / 330.7 MB Notification: Performance of SimCode: time 7.11e-07/0.4157, allocations: 0 / 459.9 MB, free: 3.645 MB / 330.7 MB Notification: Performance of Templates: time 0.05786/0.4736, allocations: 20.07 MB / 479.9 MB, free: 15.7 MB / 362.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches