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.001047/0.001047, allocations: 176.8 kB / 17.4 MB, free: 4.395 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.36/1.36, allocations: 223.3 MB / 241.4 MB, free: 9.957 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.0007629/0.000763, allocations: 97.75 kB / 292.6 MB, free: 10.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003388/0.0003388, allocations: 11.94 kB / 352.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.2128, allocations: 50.41 MB / 402.7 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1044/0.3173, allocations: 89.86 MB / 492.6 MB, free: 6.453 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002421/0.3176, allocations: 83.95 kB / 492.7 MB, free: 6.371 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.3025/0.6201, allocations: 34.84 MB / 0.5152 GB, free: 92.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.6202, allocations: 0 / 0.5152 GB, free: 92.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002448/0.6205, allocations: 30.84 kB / 0.5152 GB, free: 92.88 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.005716/0.6262, allocations: 2.114 MB / 0.5173 GB, free: 91.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.6263, allocations: 7.188 kB / 0.5173 GB, free: 91.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009823/0.6273, allocations: 214.2 kB / 0.5175 GB, free: 91.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004507/0.6318, allocations: 1.749 MB / 0.5192 GB, free: 90.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.6319, allocations: 74.98 kB / 0.5193 GB, free: 90.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001746/0.6321, allocations: 62.34 kB / 0.5193 GB, free: 90.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002/0.6341, allocations: 0.8274 MB / 0.5201 GB, free: 90.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.6342, allocations: 0 / 0.5201 GB, free: 90.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000112/0.6343, allocations: 30.08 kB / 0.5201 GB, free: 90.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.533e-05/0.6344, allocations: 14.09 kB / 0.5202 GB, free: 90.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.6357, allocations: 0.5397 MB / 0.5207 GB, free: 90.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007896/0.6436, allocations: 4.053 MB / 0.5246 GB, free: 87.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.6452, allocations: 0.5582 MB / 0.5252 GB, free: 87.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008441/0.6461, allocations: 382.8 kB / 0.5256 GB, free: 87.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.047e-05/0.6462, allocations: 3.688 kB / 0.5256 GB, free: 87.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/0.6462, allocations: 47.19 kB / 0.5256 GB, free: 87.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 4.298e-06/0.6462, allocations: 0 / 0.5256 GB, free: 87.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.002789/0.649, allocations: 0.9227 MB / 0.5265 GB, free: 86.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.6492, allocations: 272.2 kB / 0.5268 GB, free: 86.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006462/0.6556, allocations: 3.135 MB / 0.5298 GB, free: 83.53 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.6558, allocations: 33.7 kB / 0.5299 GB, free: 83.49 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00075/0.6565, allocations: 0.853 MB / 0.5307 GB, free: 82.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.6567, allocations: 125 kB / 0.5308 GB, free: 82.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.631e-05/0.6567, allocations: 4 kB / 0.5308 GB, free: 82.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.949e-05/0.6568, allocations: 330 kB / 0.5311 GB, free: 82.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004441/0.6573, allocations: 213 kB / 0.5313 GB, free: 81.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004886/0.6578, allocations: 398.7 kB / 0.5317 GB, free: 81.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008651/0.6586, allocations: 0.5388 MB / 0.5322 GB, free: 80.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.6587, allocations: 3.938 kB / 0.5322 GB, free: 80.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00176/0.6604, allocations: 0.7846 MB / 0.533 GB, free: 80.12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.6605, allocations: 8 kB / 0.533 GB, free: 80.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.6605, allocations: 4 kB / 0.533 GB, free: 80.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003026/0.6608, allocations: 69 kB / 0.5331 GB, free: 80.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004312/0.6612, allocations: 123.8 kB / 0.5332 GB, free: 79.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001378/0.6626, allocations: 1.652 MB / 0.5348 GB, free: 78.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009395/0.6636, allocations: 79.59 kB / 0.5349 GB, free: 78.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.973e-05/0.6636, allocations: 20 kB / 0.5349 GB, free: 78.04 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.001078/0.6647, allocations: 0.6566 MB / 0.5356 GB, free: 77.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005052/0.6652, allocations: 189.6 kB / 0.5357 GB, free: 77.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001409/0.6667, allocations: 0.653 MB / 0.5364 GB, free: 76.53 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.6667, allocations: 7.938 kB / 0.5364 GB, free: 76.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.6667, allocations: 0 / 0.5364 GB, free: 76.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.6667, allocations: 0 / 0.5364 GB, free: 76.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004108/0.6708, allocations: 2.233 MB / 0.5386 GB, free: 74.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.6708, allocations: 4 kB / 0.5386 GB, free: 74.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003848/0.6712, allocations: 87.88 kB / 0.5386 GB, free: 74.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002106/0.6715, allocations: 60.89 kB / 0.5387 GB, free: 74.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.812e-05/0.6715, allocations: 11.98 kB / 0.5387 GB, free: 74.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001346/0.6729, allocations: 1.59 MB / 0.5403 GB, free: 72.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.6729, allocations: 3 kB / 0.5403 GB, free: 72.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.6748, allocations: 0.9601 MB / 0.5412 GB, free: 71.35 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001203/0.676, allocations: 0.7591 MB / 0.542 GB, free: 70.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004365/0.6764, allocations: 12 kB / 0.542 GB, free: 70.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007704/0.6772, allocations: 67.94 kB / 0.542 GB, free: 70.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.6773, allocations: 43.94 kB / 0.5421 GB, free: 70.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-05/0.6774, allocations: 4 kB / 0.5421 GB, free: 70.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003733/0.6811, allocations: 2.228 MB / 0.5442 GB, free: 68.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6811, allocations: 4 kB / 0.5443 GB, free: 68.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001805/0.6829, allocations: 303.4 kB / 0.5445 GB, free: 67.85 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.001166/0.6841, allocations: 448.7 kB / 0.545 GB, free: 67.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001318/0.6855, allocations: 0.624 MB / 0.5456 GB, free: 66.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.6855, allocations: 0.5625 kB / 0.5456 GB, free: 66.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005655/0.686, allocations: 366.5 kB / 0.5459 GB, free: 66.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00257/0.6886, allocations: 276.6 kB / 0.5462 GB, free: 66.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007416/0.6961, allocations: 4.13 MB / 0.5502 GB, free: 62.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/0.6972, allocations: 1.493 MB / 0.5517 GB, free: 60.62 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009316/0.6982, allocations: 319.1 kB / 0.552 GB, free: 60.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003933/0.6986, allocations: 95.44 kB / 0.5521 GB, free: 60.21 MB / 378.7 MB Notification: Performance of SimCode: time 7.02e-07/0.6986, allocations: 0 / 0.5521 GB, free: 60.21 MB / 378.7 MB Notification: Performance of Templates: time 0.0313/0.7299, allocations: 20.37 MB / 0.572 GB, free: 39.97 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/jenkins1/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