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.001554/0.001554, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 221.5 MB / 230.3 MB, free: 7.523 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.0008128/0.0008128, allocations: 91.38 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.332e-05/2.335e-05, allocations: 0 / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09001/0.09005, allocations: 50.42 MB / 387.5 MB, free: 7.559 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3137/0.4038, allocations: 89.03 MB / 476.5 MB, free: 5.781 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/0.4041, allocations: 79.95 kB / 476.6 MB, free: 5.703 MB / 346.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.07817/0.4823, allocations: 34.29 MB / 0.4989 GB, free: 3.156 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4823, allocations: 0 / 0.4989 GB, free: 3.156 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001486/0.4825, allocations: 35.88 kB / 0.4989 GB, free: 3.121 MB / 378.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.002799/0.4853, allocations: 1.653 MB / 0.5005 GB, free: 1.418 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.4853, allocations: 11.98 kB / 0.5006 GB, free: 1.406 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004357/0.4858, allocations: 221.4 kB / 0.5008 GB, free: 1.188 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00293/0.4887, allocations: 1.638 MB / 0.5024 GB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.083e-05/0.4888, allocations: 59.02 kB / 0.5024 GB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.307e-05/0.4889, allocations: 39.95 kB / 0.5025 GB, free: 15.38 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007819/0.4897, allocations: 450.5 kB / 0.5029 GB, free: 14.94 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.4908, allocations: 0.6711 MB / 0.5035 GB, free: 14.21 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.4908, allocations: 4 kB / 0.5035 GB, free: 14.21 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.775e-05/0.4909, allocations: 3.984 kB / 0.5036 GB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.4909, allocations: 16 kB / 0.5036 GB, free: 14.19 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005602/0.4965, allocations: 3.913 MB / 0.5074 GB, free: 10.17 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008439/0.4974, allocations: 427.7 kB / 0.5078 GB, free: 9.738 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005154/0.4979, allocations: 317.2 kB / 0.5081 GB, free: 9.426 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.544e-05/0.4979, allocations: 4.281 kB / 0.5081 GB, free: 9.422 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.498, allocations: 46.84 kB / 0.5081 GB, free: 9.367 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 1.753e-06/0.498, allocations: 0 / 0.5081 GB, free: 9.367 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.0008317/0.4988, allocations: 486.5 kB / 0.5086 GB, free: 8.883 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.4989, allocations: 261 kB / 0.5089 GB, free: 8.566 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00355/0.5025, allocations: 2.711 MB / 0.5115 GB, free: 5.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.805e-05/0.5025, allocations: 25.7 kB / 0.5115 GB, free: 5.789 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008029/0.5034, allocations: 0.8718 MB / 0.5124 GB, free: 4.906 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.36e-05/0.5035, allocations: 118.3 kB / 0.5125 GB, free: 4.789 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2e-05/0.5035, allocations: 4 kB / 0.5125 GB, free: 4.785 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.5036, allocations: 325.9 kB / 0.5128 GB, free: 4.461 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002355/0.5039, allocations: 157.1 kB / 0.513 GB, free: 4.309 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003989/0.5043, allocations: 333 kB / 0.5133 GB, free: 3.906 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003163/0.5046, allocations: 199.6 kB / 0.5135 GB, free: 3.711 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.5046, allocations: 4 kB / 0.5135 GB, free: 3.707 MB / 394.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001016/0.5056, allocations: 0.6282 MB / 0.5141 GB, free: 3.066 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.5057, allocations: 8.469 kB / 0.5141 GB, free: 3.059 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.5057, allocations: 0 / 0.5141 GB, free: 3.059 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002591/0.5059, allocations: 60.83 kB / 0.5142 GB, free: 2.996 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005383/0.5065, allocations: 119.8 kB / 0.5143 GB, free: 2.879 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/0.508, allocations: 1.56 MB / 0.5158 GB, free: 1.203 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005333/0.5085, allocations: 55.66 kB / 0.5158 GB, free: 1.148 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.285e-05/0.5086, allocations: 23.98 kB / 0.5159 GB, free: 1.125 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: cccvCharger.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real 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.0001782/0.5088, allocations: 130.8 kB / 0.516 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002146/0.509, allocations: 181.7 kB / 0.5162 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007885/0.5098, allocations: 0.5282 MB / 0.5167 GB, free: 284 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.5098, allocations: 0 / 0.5167 GB, free: 284 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.5098, allocations: 4 kB / 0.5167 GB, free: 280 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-06/0.5098, allocations: 0 / 0.5167 GB, free: 280 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002731/0.5126, allocations: 2.027 MB / 0.5187 GB, free: 14.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.5126, allocations: 0 / 0.5187 GB, free: 14.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004082/0.513, allocations: 91.94 kB / 0.5187 GB, free: 14.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001496/0.5131, allocations: 44.84 kB / 0.5188 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.728e-05/0.5132, allocations: 0 / 0.5188 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001222/0.5144, allocations: 1.497 MB / 0.5203 GB, free: 12.44 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.5144, allocations: 4.031 kB / 0.5203 GB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.5155, allocations: 0.7942 MB / 0.521 GB, free: 11.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008482/0.5163, allocations: 0.7554 MB / 0.5218 GB, free: 10.76 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/0.5165, allocations: 8 kB / 0.5218 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005394/0.517, allocations: 63.94 kB / 0.5218 GB, free: 10.69 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.5172, allocations: 43.88 kB / 0.5219 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.5172, allocations: 12 kB / 0.5219 GB, free: 10.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002795/0.52, allocations: 2.066 MB / 0.5239 GB, free: 8.551 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.52, allocations: 0 / 0.5239 GB, free: 8.551 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008565/0.5209, allocations: 259.4 kB / 0.5242 GB, free: 8.297 MB / 410.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.0007831/0.5217, allocations: 393.6 kB / 0.5245 GB, free: 7.984 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008021/0.5225, allocations: 490.7 kB / 0.525 GB, free: 7.496 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.5225, allocations: 4 kB / 0.525 GB, free: 7.492 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003979/0.5229, allocations: 309.7 kB / 0.5253 GB, free: 7.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008714/0.5238, allocations: 232.5 kB / 0.5255 GB, free: 6.949 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004919/0.5287, allocations: 3.02 MB / 0.5285 GB, free: 3.883 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001107/0.5298, allocations: 1.528 MB / 0.53 GB, free: 2.328 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007074/0.5305, allocations: 314.5 kB / 0.5303 GB, free: 2.016 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002375/0.5308, allocations: 87.44 kB / 0.5303 GB, free: 1.93 MB / 410.7 MB Notification: Performance of SimCode: time 4.81e-07/0.5308, allocations: 0 / 0.5303 GB, free: 1.93 MB / 410.7 MB Notification: Performance of Templates: time 0.02674/0.5575, allocations: 14.52 MB / 0.5445 GB, free: 3.48 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