Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001921/0.001921, allocations: 195.6 kB / 18.06 MB, free: 3.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 226.5 MB / 245.4 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007278/0.000728, allocations: 104 kB / 297.4 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001981/0.0001982, allocations: 8 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2013/0.2015, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1018/0.3034, allocations: 90.98 MB / 499.6 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002255/0.3036, allocations: 83.95 kB / 499.7 MB, free: 0.5117 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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.2426/0.5463, allocations: 35.63 MB / 0.5228 GB, free: 89.17 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5463, allocations: 0 / 0.5228 GB, free: 89.17 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.775e-05/0.5464, allocations: 33.09 kB / 0.5228 GB, free: 89.16 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.002581/0.549, allocations: 2.147 MB / 0.5249 GB, free: 87.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.549, allocations: 12.03 kB / 0.5249 GB, free: 87.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002238/0.5493, allocations: 214.2 kB / 0.5251 GB, free: 87.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002033/0.5513, allocations: 1.747 MB / 0.5268 GB, free: 85.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.189e-05/0.5514, allocations: 79.58 kB / 0.5269 GB, free: 85.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.473e-05/0.5515, allocations: 60.75 kB / 0.527 GB, free: 85.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.5526, allocations: 0.8297 MB / 0.5278 GB, free: 84.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.5526, allocations: 3.938 kB / 0.5278 GB, free: 84.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.01e-05/0.5527, allocations: 28 kB / 0.5278 GB, free: 84.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.5527, allocations: 16 kB / 0.5278 GB, free: 84.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008268/0.5535, allocations: 0.536 MB / 0.5284 GB, free: 83.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0045/0.5581, allocations: 4.059 MB / 0.5323 GB, free: 79.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.5592, allocations: 0.5513 MB / 0.5329 GB, free: 78.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005928/0.5598, allocations: 373.1 kB / 0.5332 GB, free: 78.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.419e-05/0.5598, allocations: 4.281 kB / 0.5332 GB, free: 78.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.958e-05/0.5598, allocations: 46.72 kB / 0.5333 GB, free: 78.42 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.694e-06/0.5598, allocations: 0 / 0.5333 GB, free: 78.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.001675/0.5615, allocations: 0.9268 MB / 0.5342 GB, free: 77.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.85e-05/0.5616, allocations: 265 kB / 0.5344 GB, free: 77.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003204/0.5648, allocations: 3.156 MB / 0.5375 GB, free: 73.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.702e-05/0.5649, allocations: 33.7 kB / 0.5375 GB, free: 73.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005126/0.5654, allocations: 0.8647 MB / 0.5384 GB, free: 73.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.447e-05/0.5655, allocations: 114.3 kB / 0.5385 GB, free: 72.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.23e-05/0.5655, allocations: 16 kB / 0.5385 GB, free: 72.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.901e-05/0.5655, allocations: 326 kB / 0.5388 GB, free: 72.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003891/0.5659, allocations: 217 kB / 0.539 GB, free: 72.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004335/0.5664, allocations: 394 kB / 0.5394 GB, free: 71.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007242/0.5671, allocations: 0.5246 MB / 0.5399 GB, free: 71.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.5671, allocations: 3.938 kB / 0.5399 GB, free: 71.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001198/0.5683, allocations: 0.7868 MB / 0.5407 GB, free: 70.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.5684, allocations: 8 kB / 0.5407 GB, free: 70.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.5684, allocations: 8.188 kB / 0.5407 GB, free: 70.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002493/0.5686, allocations: 72.81 kB / 0.5408 GB, free: 70.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003986/0.569, allocations: 119.8 kB / 0.5409 GB, free: 70.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/0.5703, allocations: 1.647 MB / 0.5425 GB, free: 68.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005456/0.5708, allocations: 83.48 kB / 0.5426 GB, free: 68.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.139e-05/0.5709, allocations: 12 kB / 0.5426 GB, free: 68.46 MB / 378.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 (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.0008183/0.5717, allocations: 0.6611 MB / 0.5432 GB, free: 67.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/0.5719, allocations: 193.7 kB / 0.5434 GB, free: 67.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001094/0.573, allocations: 0.661 MB / 0.5441 GB, free: 66.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.573, allocations: 3.938 kB / 0.5441 GB, free: 66.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.573, allocations: 4 kB / 0.5441 GB, free: 66.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.573, allocations: 4 kB / 0.5441 GB, free: 66.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002778/0.5758, allocations: 2.224 MB / 0.5462 GB, free: 64.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.5758, allocations: 7.938 kB / 0.5463 GB, free: 64.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003573/0.5762, allocations: 87.88 kB / 0.5463 GB, free: 64.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001681/0.5764, allocations: 65.02 kB / 0.5464 GB, free: 64.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.916e-05/0.5764, allocations: 11.98 kB / 0.5464 GB, free: 64.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001063/0.5775, allocations: 1.592 MB / 0.548 GB, free: 62.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.5775, allocations: 0 / 0.548 GB, free: 62.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.5789, allocations: 0.9611 MB / 0.5489 GB, free: 61.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007548/0.5797, allocations: 0.7594 MB / 0.5496 GB, free: 60.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001961/0.5799, allocations: 8 kB / 0.5497 GB, free: 60.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005533/0.5804, allocations: 79.92 kB / 0.5497 GB, free: 60.81 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.62e-05/0.5805, allocations: 35.94 kB / 0.5498 GB, free: 60.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.5806, allocations: 12 kB / 0.5498 GB, free: 60.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003081/0.5837, allocations: 2.232 MB / 0.552 GB, free: 58.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5837, allocations: 0 / 0.552 GB, free: 58.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001128/0.5848, allocations: 307.5 kB / 0.5522 GB, free: 58.21 MB / 378.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 (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.0009366/0.5858, allocations: 442.7 kB / 0.5527 GB, free: 57.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001369/0.5871, allocations: 0.6301 MB / 0.5533 GB, free: 57.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.275e-06/0.5872, allocations: 0 / 0.5533 GB, free: 57.26 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006643/0.5878, allocations: 382.6 kB / 0.5536 GB, free: 56.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00213/0.59, allocations: 267.2 kB / 0.5539 GB, free: 56.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007376/0.5974, allocations: 4.232 MB / 0.558 GB, free: 52.33 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001084/0.5985, allocations: 1.489 MB / 0.5595 GB, free: 50.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005547/0.5991, allocations: 103.4 kB / 0.5596 GB, free: 50.71 MB / 378.7 MB Notification: Performance of SimCode: time 6.91e-07/0.5991, allocations: 4 kB / 0.5596 GB, free: 50.71 MB / 378.7 MB Notification: Performance of Templates: time 0.03504/0.6341, allocations: 29.81 MB / 0.5887 GB, free: 20.91 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches