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.001353/0.001353, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.274/1.274, allocations: 221.3 MB / 235.5 MB, free: 2.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007902/0.0007901, allocations: 88.05 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.393e-05/2.414e-05, allocations: 3.984 kB / 343.8 MB, free: 4.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08753/0.08757, allocations: 50.41 MB / 394.2 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2812/0.3689, allocations: 89.7 MB / 483.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003199/0.3692, allocations: 83.78 kB / 484 MB, free: 13.74 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].R to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].C to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].R to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].C to false. Notification: Performance of FrontEnd - DAE generated: time 0.07844/0.4477, allocations: 34.85 MB / 0.5067 GB, free: 10.63 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4477, allocations: 0 / 0.5067 GB, free: 10.63 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001091/0.4479, allocations: 35.94 kB / 0.5067 GB, free: 10.6 MB / 394.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.002168/0.45, allocations: 1.652 MB / 0.5084 GB, free: 8.891 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.4501, allocations: 8.031 kB / 0.5084 GB, free: 8.883 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002708/0.4504, allocations: 217.4 kB / 0.5086 GB, free: 8.668 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002677/0.453, allocations: 1.638 MB / 0.5102 GB, free: 6.961 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.141e-05/0.4531, allocations: 74.97 kB / 0.5102 GB, free: 6.883 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.941e-05/0.4532, allocations: 60 kB / 0.5103 GB, free: 6.824 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.4544, allocations: 0.7713 MB / 0.5111 GB, free: 6 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.4545, allocations: 0 / 0.5111 GB, free: 6 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.459e-05/0.4545, allocations: 32 kB / 0.5111 GB, free: 5.969 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.4545, allocations: 16 kB / 0.5111 GB, free: 5.953 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007564/0.4553, allocations: 489 kB / 0.5116 GB, free: 5.477 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005329/0.4607, allocations: 4.051 MB / 0.5155 GB, free: 1.301 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008381/0.4615, allocations: 459 kB / 0.516 GB, free: 0.8438 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005326/0.4621, allocations: 324.5 kB / 0.5163 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.88e-05/0.4621, allocations: 4.281 kB / 0.5163 GB, free: 0.5234 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.4622, allocations: 38.84 kB / 0.5163 GB, free: 488 kB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 2.455e-06/0.4622, allocations: 0 / 0.5163 GB, free: 488 kB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.0008681/0.463, allocations: 0.5061 MB / 0.5168 GB, free: 15.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.4632, allocations: 265 kB / 0.5171 GB, free: 15.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003698/0.4669, allocations: 2.865 MB / 0.5199 GB, free: 12.74 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.132e-05/0.4669, allocations: 29.7 kB / 0.5199 GB, free: 12.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006937/0.4676, allocations: 0.8607 MB / 0.5207 GB, free: 11.84 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.608e-05/0.4677, allocations: 118.3 kB / 0.5208 GB, free: 11.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.127e-05/0.4678, allocations: 8 kB / 0.5208 GB, free: 11.71 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.541e-05/0.4679, allocations: 330 kB / 0.5212 GB, free: 11.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002445/0.4681, allocations: 161.1 kB / 0.5213 GB, free: 11.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003492/0.4685, allocations: 350.1 kB / 0.5216 GB, free: 10.81 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002973/0.4688, allocations: 211.4 kB / 0.5219 GB, free: 10.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.4688, allocations: 0 / 0.5219 GB, free: 10.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009977/0.4698, allocations: 0.6867 MB / 0.5225 GB, free: 9.902 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.4698, allocations: 8 kB / 0.5225 GB, free: 9.895 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.4698, allocations: 7.938 kB / 0.5225 GB, free: 9.887 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000227/0.4701, allocations: 65.25 kB / 0.5226 GB, free: 9.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004602/0.4705, allocations: 111.9 kB / 0.5227 GB, free: 9.711 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001371/0.4719, allocations: 1.611 MB / 0.5243 GB, free: 7.969 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005672/0.4725, allocations: 83.41 kB / 0.5244 GB, free: 7.887 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.503e-05/0.4726, allocations: 12 kB / 0.5244 GB, free: 7.875 MB / 410.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001192/0.4727, allocations: 137 kB / 0.5245 GB, free: 7.734 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002154/0.4729, allocations: 185.8 kB / 0.5247 GB, free: 7.551 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008609/0.4738, allocations: 0.5593 MB / 0.5252 GB, free: 6.977 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.4738, allocations: 4 kB / 0.5252 GB, free: 6.973 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-06/0.4738, allocations: 0 / 0.5252 GB, free: 6.973 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4738, allocations: 0 / 0.5252 GB, free: 6.973 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002856/0.4767, allocations: 2.138 MB / 0.5273 GB, free: 4.762 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.4767, allocations: 4 kB / 0.5273 GB, free: 4.758 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004019/0.4771, allocations: 79.94 kB / 0.5274 GB, free: 4.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001398/0.4773, allocations: 60.83 kB / 0.5275 GB, free: 4.617 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.762e-05/0.4773, allocations: 8 kB / 0.5275 GB, free: 4.609 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001185/0.4785, allocations: 1.553 MB / 0.529 GB, free: 2.922 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4785, allocations: 0 / 0.529 GB, free: 2.922 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.4795, allocations: 0.8382 MB / 0.5298 GB, free: 2.039 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000898/0.4804, allocations: 0.7555 MB / 0.5305 GB, free: 1.207 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/0.4806, allocations: 15.94 kB / 0.5305 GB, free: 1.191 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005699/0.4812, allocations: 63.95 kB / 0.5306 GB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.4813, allocations: 39.94 kB / 0.5306 GB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.433e-05/0.4813, allocations: 8 kB / 0.5307 GB, free: 1.082 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002952/0.4843, allocations: 2.214 MB / 0.5328 GB, free: 14.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4843, allocations: 0 / 0.5328 GB, free: 14.84 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009281/0.4852, allocations: 303.4 kB / 0.5331 GB, free: 14.55 MB / 426.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008484/0.4861, allocations: 401.5 kB / 0.5335 GB, free: 14.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008863/0.487, allocations: 0.5225 MB / 0.534 GB, free: 13.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.487, allocations: 4 kB / 0.534 GB, free: 13.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004535/0.4874, allocations: 331.1 kB / 0.5343 GB, free: 13.37 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.4885, allocations: 259.2 kB / 0.5346 GB, free: 13.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005626/0.4942, allocations: 3.051 MB / 0.5375 GB, free: 10.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001128/0.4953, allocations: 1.532 MB / 0.539 GB, free: 8.465 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008336/0.4962, allocations: 307.1 kB / 0.5393 GB, free: 8.16 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002604/0.4964, allocations: 99.44 kB / 0.5394 GB, free: 8.062 MB / 426.7 MB Notification: Performance of SimCode: time 6.11e-07/0.4964, allocations: 3.938 kB / 0.5394 GB, free: 8.059 MB / 426.7 MB Notification: Performance of Templates: time 0.2255/0.7219, allocations: 20.47 MB / 0.5594 GB, free: 115.5 MB / 426.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/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