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.00137/0.00137, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001534/0.001534, allocations: 215.4 kB / 24.48 MB, free: 3.941 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.443/1.443, allocations: 230.6 MB / 258.2 MB, free: 7.777 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.001547/0.001547, allocations: 47.92 kB / 379 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2312, 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.007865/0.2391, allocations: 5.408 MB / 437.7 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003992/0.2431, allocations: 2.182 MB / 439.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000414/0.2435, allocations: 23.88 kB / 439.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001444/0.245, allocations: 0.6058 MB / 440.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009099/0.2459, allocations: 461.6 kB / 441 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008513/0.2467, allocations: 410.3 kB / 441.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001496/0.2482, allocations: 1.305 MB / 442.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005325/0.2488, allocations: 318.3 kB / 443 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005755/0.2493, allocations: 0.5023 MB / 443.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007133/0.25, allocations: 0.6071 MB / 444.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000152/0.2502, allocations: 116 kB / 444.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003215/0.2505, allocations: 180 kB / 444.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005456/0.2511, allocations: 0.6544 MB / 445.1 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006685/0.2517, allocations: 0.668 MB / 445.7 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002619/0.2543, allocations: 2.666 MB / 448.4 MB, free: 6.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2544, allocations: 0 / 448.4 MB, free: 6.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2544, allocations: 0 / 448.4 MB, free: 6.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.025e-05/0.2544, allocations: 4 kB / 448.4 MB, free: 6.578 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.003922/0.2583, allocations: 2.362 MB / 450.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.2583, allocations: 8.031 kB / 450.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003097/0.2586, allocations: 227.5 kB / 451 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002701/0.2613, allocations: 1.639 MB / 452.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001967/0.2615, allocations: 185.8 kB / 452.8 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.2617, allocations: 71.95 kB / 452.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001726/0.2634, allocations: 1.173 MB / 454.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.2634, allocations: 3.938 kB / 454.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.839e-05/0.2635, allocations: 28 kB / 454.1 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.2635, allocations: 12 kB / 454.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001077/0.2646, allocations: 0.5478 MB / 454.6 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005799/0.2704, allocations: 3.498 MB / 458.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.2717, allocations: 0.5065 MB / 458.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000768/0.2724, allocations: 342 kB / 459 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.028e-05/0.2725, allocations: 4.281 kB / 459 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.2725, allocations: 42.84 kB / 459 MB, free: 11.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.014e-06/0.2725, allocations: 0 / 459 MB, free: 11.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002322/0.2748, allocations: 0.8691 MB / 459.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001482/0.275, allocations: 269 kB / 460.2 MB, free: 10.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004027/0.279, allocations: 3.112 MB / 463.3 MB, free: 7.207 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.417e-05/0.2791, allocations: 29.7 kB / 463.3 MB, free: 7.172 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008563/0.2799, allocations: 0.8766 MB / 464.2 MB, free: 6.289 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.28, allocations: 123 kB / 464.3 MB, free: 6.168 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001755/0.2802, allocations: 94.09 kB / 464.4 MB, free: 6.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2803, allocations: 326 kB / 464.7 MB, free: 5.746 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004882/0.2808, allocations: 216.9 kB / 464.9 MB, free: 5.531 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007505/0.2816, allocations: 0.5887 MB / 465.5 MB, free: 4.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.2826, allocations: 0.5204 MB / 466 MB, free: 4.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.2826, allocations: 7.938 kB / 466 MB, free: 4.242 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001535/0.2842, allocations: 0.7778 MB / 466.8 MB, free: 3.453 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.2842, allocations: 8 kB / 466.8 MB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.447e-06/0.2842, allocations: 4 kB / 466.8 MB, free: 3.441 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003572/0.2845, allocations: 64.81 kB / 466.9 MB, free: 3.375 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004896/0.285, allocations: 120 kB / 467 MB, free: 3.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001898/0.2869, allocations: 1.66 MB / 468.7 MB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005375/0.2875, allocations: 63.7 kB / 468.7 MB, free: 1.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.94e-05/0.2875, allocations: 23.94 kB / 468.8 MB, free: 1.41 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.0008422/0.2884, allocations: 0.6576 MB / 469.4 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000251/0.2886, allocations: 186.8 kB / 469.6 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002867/0.2889, allocations: 214 kB / 469.8 MB, free: 356 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.2889, allocations: 8.094 kB / 469.8 MB, free: 348 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.2889, allocations: 128 / 469.8 MB, free: 348 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.2889, allocations: 7.984 kB / 469.8 MB, free: 340 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003738/0.2926, allocations: 1.832 MB / 471.6 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.2926, allocations: 8.062 kB / 471.7 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004626/0.2931, allocations: 79.89 kB / 471.7 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002011/0.2933, allocations: 56.81 kB / 471.8 MB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.219e-05/0.2933, allocations: 8 kB / 471.8 MB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001919/0.2953, allocations: 1.606 MB / 473.4 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2953, allocations: 0 / 473.4 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002063/0.2973, allocations: 0.9842 MB / 474.4 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009574/0.2983, allocations: 362.7 kB / 474.7 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001654/0.2984, allocations: 15.92 kB / 474.8 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005444/0.299, allocations: 60.2 kB / 474.8 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.2991, allocations: 39.92 kB / 474.9 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.103e-05/0.2991, allocations: 15.98 kB / 474.9 MB, free: 11.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003157/0.3023, allocations: 2.215 MB / 477.1 MB, free: 8.859 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3023, allocations: 0 / 477.1 MB, free: 8.859 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000849/0.3031, allocations: 263.5 kB / 477.3 MB, free: 8.602 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.001847/0.305, allocations: 0.4948 MB / 477.8 MB, free: 8.312 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.3064, allocations: 0.594 MB / 478.4 MB, free: 7.707 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3064, allocations: 0 / 478.4 MB, free: 7.707 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006986/0.3071, allocations: 354.6 kB / 478.8 MB, free: 7.348 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/0.3081, allocations: 260 kB / 479 MB, free: 7.094 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005673/0.3138, allocations: 3.621 MB / 482.7 MB, free: 3.426 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001075/0.3149, allocations: 0.9041 MB / 483.6 MB, free: 2.492 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006138/0.3155, allocations: 290.7 kB / 483.8 MB, free: 2.203 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002609/0.3158, allocations: 95.42 kB / 483.9 MB, free: 2.109 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3158, allocations: 0 / 483.9 MB, free: 2.109 MB / 382.1 MB Notification: Performance of Templates: time 0.0355/0.3513, allocations: 20.93 MB / 0.493 GB, free: 13.37 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 gbode -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.056040391995339]