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.001297/0.001297, allocations: 106.8 kB / 21.19 MB, free: 0.6406 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.001423/0.001423, allocations: 218.8 kB / 24.49 MB, free: 3.93 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.509/1.509, allocations: 230.6 MB / 258.3 MB, free: 7.793 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.001554/0.001554, allocations: 51.92 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.222, allocations: 53.37 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.0076/0.2296, allocations: 5.397 MB / 437.7 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003572/0.2332, allocations: 2.197 MB / 439.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002963/0.2335, allocations: 19.88 kB / 440 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001298/0.2348, allocations: 0.5991 MB / 440.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007968/0.2356, allocations: 461.6 kB / 441 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007883/0.2364, allocations: 410.4 kB / 441.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001398/0.2378, allocations: 1.313 MB / 442.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005054/0.2383, allocations: 302.4 kB / 443 MB, free: 12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000544/0.2388, allocations: 0.5023 MB / 443.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00069/0.2395, allocations: 0.6072 MB / 444.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00017/0.2397, allocations: 116 kB / 444.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000311/0.24, allocations: 183.9 kB / 444.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005352/0.2405, allocations: 0.6544 MB / 445.1 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006693/0.2412, allocations: 0.668 MB / 445.7 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002644/0.2439, allocations: 2.666 MB / 448.4 MB, free: 6.586 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2439, allocations: 0 / 448.4 MB, free: 6.586 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2439, allocations: 0 / 448.4 MB, free: 6.586 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.898e-05/0.2439, allocations: 0 / 448.4 MB, free: 6.586 MB / 350.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.004089/0.248, allocations: 2.374 MB / 450.8 MB, free: 4.168 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/0.248, allocations: 8.031 kB / 450.8 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003263/0.2483, allocations: 223.5 kB / 451 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002809/0.2511, allocations: 1.631 MB / 452.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001894/0.2513, allocations: 193.8 kB / 452.8 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.2514, allocations: 63.95 kB / 452.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001704/0.2531, allocations: 1.173 MB / 454.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.2532, allocations: 4 kB / 454.1 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.11e-05/0.2532, allocations: 28 kB / 454.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.2532, allocations: 16 kB / 454.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.2543, allocations: 0.5438 MB / 454.6 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005735/0.2601, allocations: 3.506 MB / 458.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/0.2615, allocations: 0.497 MB / 458.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007988/0.2623, allocations: 346.1 kB / 459 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.2623, allocations: 288 / 459 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/0.2623, allocations: 46.78 kB / 459 MB, free: 11.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.423e-06/0.2623, allocations: 0 / 459 MB, free: 11.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002339/0.2647, allocations: 0.8652 MB / 459.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001641/0.2648, allocations: 269 kB / 460.2 MB, free: 10.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004113/0.2689, allocations: 3.108 MB / 463.3 MB, free: 7.215 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.67e-05/0.269, allocations: 37.7 kB / 463.3 MB, free: 7.172 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008814/0.2699, allocations: 0.8766 MB / 464.2 MB, free: 6.289 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.27, allocations: 115 kB / 464.3 MB, free: 6.176 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.2701, allocations: 106.1 kB / 464.4 MB, free: 6.066 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.2703, allocations: 326 kB / 464.7 MB, free: 5.742 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004919/0.2708, allocations: 212.9 kB / 464.9 MB, free: 5.531 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007568/0.2716, allocations: 0.5942 MB / 465.5 MB, free: 4.816 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.2726, allocations: 0.5205 MB / 466 MB, free: 4.246 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2726, allocations: 0 / 466 MB, free: 4.246 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001533/0.2741, allocations: 0.7738 MB / 466.8 MB, free: 3.461 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.2741, allocations: 11.88 kB / 466.8 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.2741, allocations: 4.375 kB / 466.8 MB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002857/0.2744, allocations: 72.81 kB / 466.9 MB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004876/0.2749, allocations: 111.9 kB / 467 MB, free: 3.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001864/0.2768, allocations: 1.66 MB / 468.7 MB, free: 1.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005029/0.2773, allocations: 63.7 kB / 468.7 MB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.946e-05/0.2773, allocations: 20 kB / 468.8 MB, free: 1.418 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.0008248/0.2781, allocations: 0.6644 MB / 469.4 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002515/0.2784, allocations: 182.8 kB / 469.6 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002879/0.2787, allocations: 222 kB / 469.8 MB, free: 356 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.2787, allocations: 3.984 kB / 469.8 MB, free: 352 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2787, allocations: 128 / 469.8 MB, free: 352 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009304/0.2796, allocations: 370.6 kB / 470.2 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/0.2798, allocations: 12 kB / 470.2 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005337/0.2803, allocations: 59.94 kB / 470.2 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.2804, allocations: 31.94 kB / 470.3 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00204/0.2825, allocations: 0.7278 MB / 471 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001667/0.2841, allocations: 1.006 MB / 472 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000428/0.2846, allocations: 195.9 kB / 472.2 MB, free: 13.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002972/0.2875, allocations: 2.215 MB / 474.4 MB, free: 11.69 MB / 382.1 MB Notification: Performance of Backend: time 3.61e-07/0.2875, allocations: 0 / 474.4 MB, free: 11.69 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004022/0.2915, allocations: 1.141 MB / 475.6 MB, free: 10.84 MB / 382.1 MB Notification: Performance of SimCode: time 0.005564/0.2971, allocations: 4.021 MB / 479.6 MB, free: 6.758 MB / 382.1 MB Notification: Performance of Templates: time 0.03622/0.3333, allocations: 22.43 MB / 0.4902 GB, free: 0.5273 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: 4.952837147997343]