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.00128/0.00128, allocations: 115.1 kB / 18.45 MB, free: 4.605 MB / 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.001348/0.001348, allocations: 207.3 kB / 21.41 MB, free: 1.648 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.569/1.569, allocations: 230.6 MB / 254.8 MB, free: 15.25 MB / 206.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.001591/0.001591, allocations: 51.92 kB / 374.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1112, allocations: 53.33 MB / 427.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008698/0.1199, allocations: 6.087 MB / 433.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004067/0.1239, allocations: 2.314 MB / 435.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005063/0.1244, allocations: 23.81 kB / 435.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001508/0.1259, allocations: 0.6302 MB / 436.5 MB, free: 11.22 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009594/0.1269, allocations: 449.7 kB / 437 MB, free: 10.78 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000913/0.1278, allocations: 406.8 kB / 437.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001744/0.1296, allocations: 1.309 MB / 438.7 MB, free: 9.074 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006111/0.1302, allocations: 345.9 kB / 439 MB, free: 8.719 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006824/0.1309, allocations: 0.5061 MB / 439.5 MB, free: 8.211 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007189/0.1316, allocations: 0.6072 MB / 440.1 MB, free: 7.602 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001482/0.1317, allocations: 116 kB / 440.2 MB, free: 7.488 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003068/0.132, allocations: 179.9 kB / 440.4 MB, free: 7.312 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005562/0.1326, allocations: 0.6544 MB / 441.1 MB, free: 6.656 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007639/0.1334, allocations: 0.8855 MB / 442 MB, free: 5.766 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002598/0.1359, allocations: 2.642 MB / 444.6 MB, free: 3.113 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.136, allocations: 0 / 444.6 MB, free: 3.113 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.136, allocations: 4 kB / 444.6 MB, free: 3.109 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.303e-05/0.136, allocations: 0 / 444.6 MB, free: 3.109 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.004262/0.1403, allocations: 2.441 MB / 447 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.1403, allocations: 8.031 kB / 447 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003808/0.1407, allocations: 231.5 kB / 447.3 MB, free: 380 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2238/0.3644, allocations: 1.689 MB / 449 MB, free: 23.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001445/0.3646, allocations: 105.4 kB / 449.1 MB, free: 23.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.3647, allocations: 62.88 kB / 449.1 MB, free: 23.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.3661, allocations: 0.8261 MB / 450 MB, free: 22.9 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.3661, allocations: 5.25 kB / 450 MB, free: 22.9 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.768e-05/0.3662, allocations: 26.97 kB / 450 MB, free: 22.9 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.621e-05/0.3662, allocations: 20.25 kB / 450 MB, free: 22.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.3673, allocations: 0.545 MB / 450.6 MB, free: 22.81 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006743/0.374, allocations: 3.988 MB / 454.5 MB, free: 20.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00142/0.3754, allocations: 0.4968 MB / 455 MB, free: 20.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008134/0.3762, allocations: 342 kB / 455.4 MB, free: 20.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.923e-05/0.3763, allocations: 5.703 kB / 455.4 MB, free: 20.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.3763, allocations: 40.11 kB / 455.4 MB, free: 20.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.545e-06/0.3763, allocations: 0 / 455.4 MB, free: 20.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002757/0.3791, allocations: 0.9539 MB / 456.4 MB, free: 19.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.631e-05/0.3792, allocations: 273.5 kB / 456.6 MB, free: 19.67 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005193/0.3844, allocations: 3.161 MB / 459.8 MB, free: 18.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.3845, allocations: 32.05 kB / 459.8 MB, free: 18.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006885/0.3852, allocations: 0.8618 MB / 460.7 MB, free: 17.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.3853, allocations: 120 kB / 460.8 MB, free: 17.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/0.3854, allocations: 95.8 kB / 460.9 MB, free: 17.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.932e-05/0.3855, allocations: 332.7 kB / 461.2 MB, free: 17.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005153/0.386, allocations: 205.4 kB / 461.4 MB, free: 17.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005903/0.3866, allocations: 398.5 kB / 461.8 MB, free: 17.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009566/0.3876, allocations: 0.5157 MB / 462.3 MB, free: 16.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.3876, allocations: 5.188 kB / 462.3 MB, free: 16.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001939/0.3895, allocations: 0.7836 MB / 463.1 MB, free: 16.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.3895, allocations: 8.031 kB / 463.1 MB, free: 16.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.3896, allocations: 3.344 kB / 463.1 MB, free: 16.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003429/0.3899, allocations: 70.34 kB / 463.2 MB, free: 16.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/0.3904, allocations: 112.4 kB / 463.3 MB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00155/0.3919, allocations: 1.796 MB / 465.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009009/0.3928, allocations: 76.53 kB / 465.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.886e-05/0.3929, allocations: 24.45 kB / 465.2 MB, free: 14.8 MB / 366.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.001021/0.3939, allocations: 0.6571 MB / 465.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003283/0.3942, allocations: 196.8 kB / 466.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003236/0.3946, allocations: 220.7 kB / 466.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.3946, allocations: 4.125 kB / 466.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3946, allocations: 0.875 kB / 466.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.3946, allocations: 2.203 kB / 466.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00368/0.3983, allocations: 2.169 MB / 468.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3983, allocations: 0 / 468.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005665/0.3988, allocations: 83.95 kB / 468.5 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002808/0.3991, allocations: 66.52 kB / 468.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.726e-05/0.3992, allocations: 9.797 kB / 468.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001364/0.4005, allocations: 1.731 MB / 470.3 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.4005, allocations: 0.5625 kB / 470.3 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002013/0.4025, allocations: 0.9907 MB / 471.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007/0.4032, allocations: 448.5 kB / 471.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001546/0.4034, allocations: 13.52 kB / 471.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005544/0.4039, allocations: 55.09 kB / 471.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.4041, allocations: 40.69 kB / 471.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.658e-05/0.4041, allocations: 13.02 kB / 471.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003023/0.4071, allocations: 2.254 MB / 474.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4071, allocations: 0 / 474.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001039/0.4082, allocations: 261.1 kB / 474.4 MB, free: 10.06 MB / 366.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.001752/0.4099, allocations: 477.5 kB / 474.9 MB, free: 9.891 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00127/0.4112, allocations: 0.5862 MB / 475.4 MB, free: 9.625 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.4112, allocations: 6.812 kB / 475.4 MB, free: 9.621 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006145/0.4118, allocations: 346.7 kB / 475.8 MB, free: 9.434 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.413, allocations: 300.1 kB / 476.1 MB, free: 9.301 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005759/0.4187, allocations: 3.728 MB / 479.8 MB, free: 7.293 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009771/0.4197, allocations: 1.49 MB / 481.3 MB, free: 6.176 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004569/0.4202, allocations: 95.81 kB / 481.4 MB, free: 6.168 MB / 366.1 MB Notification: Performance of SimCode: time 1.683e-06/0.4202, allocations: 1.125 kB / 481.4 MB, free: 6.168 MB / 366.1 MB Notification: Performance of Templates: time 0.04801/0.4682, allocations: 29.74 MB / 0.4991 GB, free: 10.49 MB / 398.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 -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: 9.75898960698396]