Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 67.77 kB / 21.24 MB, free: 404 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 168.5 kB / 24.5 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.442/1.442, allocations: 177.2 MB / 204.9 MB, free: 8.93 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 51.52 kB / 325.5 MB, free: 296 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09463/0.09619, allocations: 53.35 MB / 378.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007836/0.104, allocations: 5.392 MB / 384.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003935/0.108, allocations: 2.186 MB / 386.5 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003995/0.1084, allocations: 27.75 kB / 386.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001435/0.1098, allocations: 0.6107 MB / 387.1 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008885/0.1107, allocations: 453.6 kB / 387.6 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008751/0.1116, allocations: 414.7 kB / 388 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001575/0.1131, allocations: 1.298 MB / 389.3 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005354/0.1137, allocations: 294.3 kB / 389.5 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006456/0.1143, allocations: 0.5061 MB / 390.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008031/0.1151, allocations: 0.5681 MB / 390.6 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001737/0.1153, allocations: 116 kB / 390.7 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003228/0.1156, allocations: 180 kB / 390.9 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005802/0.1162, allocations: 0.666 MB / 391.6 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007403/0.1169, allocations: 0.6641 MB / 392.2 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002727/0.1197, allocations: 2.67 MB / 394.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1197, allocations: 0 / 394.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1197, allocations: 0 / 394.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.712e-05/0.1197, allocations: 0 / 394.9 MB, free: 15.61 MB / 366.1 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.004173/0.1239, allocations: 2.366 MB / 397.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.1239, allocations: 12.03 kB / 397.3 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004383/0.1243, allocations: 223.5 kB / 397.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002978/0.1273, allocations: 1.643 MB / 399.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002051/0.1275, allocations: 181.8 kB / 399.3 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.1276, allocations: 63.95 kB / 399.4 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00177/0.1294, allocations: 1.181 MB / 400.6 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.889e-05/0.1294, allocations: 0 / 400.6 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.951e-05/0.1295, allocations: 28 kB / 400.6 MB, free: 9.648 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.1295, allocations: 16 kB / 400.6 MB, free: 9.633 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.1307, allocations: 0.5477 MB / 401.2 MB, free: 9.082 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006277/0.1369, allocations: 3.499 MB / 404.7 MB, free: 5.492 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.1384, allocations: 0.4999 MB / 405.2 MB, free: 4.984 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008231/0.1392, allocations: 338.1 kB / 405.5 MB, free: 4.652 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.1392, allocations: 4.281 kB / 405.5 MB, free: 4.648 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/0.1393, allocations: 38.84 kB / 405.5 MB, free: 4.602 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.565e-06/0.1393, allocations: 0 / 405.5 MB, free: 4.602 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002523/0.1418, allocations: 0.873 MB / 406.4 MB, free: 3.719 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002663/0.1421, allocations: 269 kB / 406.7 MB, free: 3.395 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004478/0.1465, allocations: 3.112 MB / 409.8 MB, free: 248 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.437e-05/0.1466, allocations: 33.7 kB / 409.8 MB, free: 208 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008988/0.1475, allocations: 0.8689 MB / 410.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.1476, allocations: 127 kB / 410.8 MB, free: 15.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001694/0.1478, allocations: 98.09 kB / 410.9 MB, free: 15.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.1479, allocations: 322 kB / 411.2 MB, free: 14.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005049/0.1485, allocations: 208.9 kB / 411.4 MB, free: 14.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007723/0.1492, allocations: 0.5927 MB / 412 MB, free: 13.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.1503, allocations: 0.5243 MB / 412.5 MB, free: 13.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.1503, allocations: 0 / 412.5 MB, free: 13.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001755/0.152, allocations: 0.7702 MB / 413.3 MB, free: 12.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.152, allocations: 18.53 kB / 413.3 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1521, allocations: 4 kB / 413.3 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002965/0.1524, allocations: 68.8 kB / 413.4 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005109/0.1529, allocations: 111.9 kB / 413.5 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001952/0.1548, allocations: 1.668 MB / 415.2 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006876/0.1555, allocations: 75.73 kB / 415.2 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.832e-05/0.1555, allocations: 19.94 kB / 415.3 MB, free: 10.44 MB / 382.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001033/0.1566, allocations: 0.6612 MB / 415.9 MB, free: 9.773 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002868/0.1569, allocations: 186.8 kB / 416.1 MB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003074/0.1572, allocations: 222 kB / 416.3 MB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1572, allocations: 4 kB / 416.3 MB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1572, allocations: 3.938 kB / 416.3 MB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1572, allocations: 0 / 416.3 MB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003497/0.1607, allocations: 1.832 MB / 418.2 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.1607, allocations: 0 / 418.2 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004213/0.1611, allocations: 79.94 kB / 418.2 MB, free: 7.402 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002004/0.1613, allocations: 60.83 kB / 418.3 MB, free: 7.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.165e-05/0.1613, allocations: 11.98 kB / 418.3 MB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001705/0.163, allocations: 1.606 MB / 419.9 MB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.163, allocations: 0 / 419.9 MB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002075/0.1651, allocations: 0.9803 MB / 420.9 MB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009357/0.1661, allocations: 370.6 kB / 421.3 MB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001538/0.1662, allocations: 15.92 kB / 421.3 MB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005454/0.1667, allocations: 51.95 kB / 421.3 MB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.1669, allocations: 43.92 kB / 421.4 MB, free: 4.141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.698e-05/0.1669, allocations: 8 kB / 421.4 MB, free: 4.133 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003276/0.1702, allocations: 2.215 MB / 423.6 MB, free: 1.898 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1702, allocations: 0 / 423.6 MB, free: 1.898 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009364/0.1711, allocations: 263.5 kB / 423.9 MB, free: 1.641 MB / 382.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001917/0.173, allocations: 0.4883 MB / 424.3 MB, free: 1.355 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001439/0.1745, allocations: 0.59 MB / 424.9 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.1745, allocations: 4 kB / 424.9 MB, free: 0.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007082/0.1752, allocations: 359.3 kB / 425.3 MB, free: 396 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00121/0.1764, allocations: 258.3 kB / 425.5 MB, free: 140 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006208/0.1826, allocations: 3.626 MB / 429.2 MB, free: 12.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001163/0.1837, allocations: 0.9042 MB / 430.1 MB, free: 11.53 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007244/0.1845, allocations: 298.7 kB / 430.4 MB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002636/0.1847, allocations: 92.5 kB / 430.4 MB, free: 11.14 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1847, allocations: 0 / 430.4 MB, free: 11.14 MB / 398.1 MB Notification: Performance of Templates: time 0.03573/0.2205, allocations: 19.17 MB / 449.6 MB, free: 8.129 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.000266232993454]