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.00124/0.00124, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.316/1.316, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.001058/0.001058, allocations: 97.98 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003046/0.0003047, allocations: 8 kB / 351.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2853, allocations: 50.41 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1078/0.3932, allocations: 89.77 MB / 491.3 MB, free: 6.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003107/0.3935, allocations: 83.97 kB / 491.3 MB, free: 6.598 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.3343/0.7279, allocations: 34.84 MB / 0.5139 GB, free: 92.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.728, allocations: 0 / 0.5139 GB, free: 92.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001273/0.7281, allocations: 35.47 kB / 0.5139 GB, free: 92.85 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.00367/0.7318, allocations: 2.126 MB / 0.516 GB, free: 91.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.7319, allocations: 10.34 kB / 0.516 GB, free: 91.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000354/0.7322, allocations: 212.6 kB / 0.5162 GB, free: 91.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002907/0.7351, allocations: 1.664 MB / 0.5178 GB, free: 90.97 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.7353, allocations: 77.89 kB / 0.5179 GB, free: 90.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.7354, allocations: 63.41 kB / 0.5179 GB, free: 90.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.7368, allocations: 0.8152 MB / 0.5187 GB, free: 90.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.7369, allocations: 7.891 kB / 0.5187 GB, free: 90.47 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.331e-05/0.737, allocations: 34.34 kB / 0.5188 GB, free: 90.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.737, allocations: 13.91 kB / 0.5188 GB, free: 90.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009945/0.738, allocations: 0.5362 MB / 0.5193 GB, free: 90.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006717/0.7447, allocations: 4.053 MB / 0.5233 GB, free: 88.1 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001368/0.7461, allocations: 0.5619 MB / 0.5238 GB, free: 87.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.466e-05/0.7462, allocations: 3.781 kB / 0.5238 GB, free: 87.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.7462, allocations: 38.16 kB / 0.5239 GB, free: 87.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 4.709e-06/0.7462, allocations: 0 / 0.5239 GB, free: 87.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.002766/0.749, allocations: 0.9897 MB / 0.5248 GB, free: 87.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.7492, allocations: 268.5 kB / 0.5251 GB, free: 87.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005488/0.7547, allocations: 2.881 MB / 0.5279 GB, free: 84.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001338/0.7548, allocations: 37.7 kB / 0.5279 GB, free: 84.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009026/0.7557, allocations: 0.8595 MB / 0.5288 GB, free: 83.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000156/0.7559, allocations: 120.6 kB / 0.5289 GB, free: 83.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.029e-05/0.756, allocations: 12 kB / 0.5289 GB, free: 83.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.7561, allocations: 325.9 kB / 0.5292 GB, free: 83.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000517/0.7566, allocations: 217 kB / 0.5294 GB, free: 82.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006125/0.7572, allocations: 402.1 kB / 0.5298 GB, free: 82.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005599/0.7578, allocations: 277.4 kB / 0.5301 GB, free: 82.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.7578, allocations: 0 / 0.5301 GB, free: 82.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002072/0.7599, allocations: 0.8236 MB / 0.5309 GB, free: 81.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.373e-05/0.76, allocations: 8 kB / 0.5309 GB, free: 81.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-05/0.76, allocations: 4.188 kB / 0.5309 GB, free: 81.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005716/0.7606, allocations: 96.8 kB / 0.531 GB, free: 81.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004748/0.761, allocations: 118.6 kB / 0.5311 GB, free: 81.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002223/0.7633, allocations: 1.918 MB / 0.533 GB, free: 78.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.7644, allocations: 83.41 kB / 0.533 GB, free: 78.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.544e-05/0.7645, allocations: 12.19 kB / 0.533 GB, free: 78.9 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 (48): * Single equations (assignments): 47 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.001402/0.7659, allocations: 0.6577 MB / 0.5337 GB, free: 78.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007009/0.7666, allocations: 181.8 kB / 0.5339 GB, free: 78.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001955/0.7685, allocations: 0.6916 MB / 0.5345 GB, free: 77.35 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.7686, allocations: 4 kB / 0.5345 GB, free: 77.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.7686, allocations: 0 / 0.5345 GB, free: 77.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.7686, allocations: 3.953 kB / 0.5345 GB, free: 77.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002917/0.7715, allocations: 1.348 MB / 0.5359 GB, free: 75.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/0.7715, allocations: 4 kB / 0.5359 GB, free: 75.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004184/0.772, allocations: 82.31 kB / 0.5359 GB, free: 75.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003305/0.7723, allocations: 88.81 kB / 0.536 GB, free: 75.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.001e-05/0.7724, allocations: 11.98 kB / 0.536 GB, free: 75.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001939/0.7743, allocations: 1.906 MB / 0.5379 GB, free: 73.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.7743, allocations: 8.125 kB / 0.5379 GB, free: 73.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002012/0.7764, allocations: 0.9769 MB / 0.5389 GB, free: 72.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001486/0.7779, allocations: 0.7632 MB / 0.5396 GB, free: 71.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005479/0.7784, allocations: 10 kB / 0.5396 GB, free: 71.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000999/0.7794, allocations: 78.2 kB / 0.5397 GB, free: 71.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.7796, allocations: 43.88 kB / 0.5397 GB, free: 71.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.798e-05/0.7796, allocations: 8 kB / 0.5397 GB, free: 71.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004987/0.7846, allocations: 2.228 MB / 0.5419 GB, free: 69.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7846, allocations: 0 / 0.5419 GB, free: 69.49 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001794/0.7864, allocations: 303.4 kB / 0.5422 GB, free: 69.19 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (25): * Single equations (assignments): 24 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.001272/0.7877, allocations: 443.8 kB / 0.5426 GB, free: 68.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.7893, allocations: 0.6445 MB / 0.5433 GB, free: 68.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.7893, allocations: 0 / 0.5433 GB, free: 68.28 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00075/0.79, allocations: 398.7 kB / 0.5436 GB, free: 67.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001864/0.7919, allocations: 273.5 kB / 0.5439 GB, free: 67.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008574/0.8005, allocations: 4.128 MB / 0.5479 GB, free: 63.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001842/0.8024, allocations: 1.524 MB / 0.5494 GB, free: 61.92 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001385/0.8038, allocations: 319.1 kB / 0.5497 GB, free: 61.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006553/0.8045, allocations: 95.44 kB / 0.5498 GB, free: 61.51 MB / 378.7 MB Notification: Performance of SimCode: time 1.713e-06/0.8045, allocations: 0 / 0.5498 GB, free: 61.51 MB / 378.7 MB Notification: Performance of Templates: time 0.04/0.8445, allocations: 20.29 MB / 0.5696 GB, free: 41.35 MB / 378.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