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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001599/0.001599, allocations: 111.9 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001989/0.00199, allocations: 193.5 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008613/0.0008613, allocations: 47.92 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2533, allocations: 49.43 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007311/0.2606, allocations: 6.012 MB / 407.4 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00339/0.2641, allocations: 2.147 MB / 409.5 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003632/0.2644, allocations: 15.94 kB / 409.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00131/0.2658, allocations: 0.6224 MB / 410.2 MB, free: 64 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007125/0.2665, allocations: 401.8 kB / 410.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008607/0.2674, allocations: 418.6 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.2687, allocations: 1.307 MB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00062/0.2693, allocations: 473.8 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005189/0.2699, allocations: 498.3 kB / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006125/0.2705, allocations: 0.5916 MB / 413.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001536/0.2707, allocations: 116 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003042/0.271, allocations: 168 kB / 414.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004398/0.2714, allocations: 0.6506 MB / 414.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006987/0.2721, allocations: 0.8894 MB / 415.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0021/0.2742, allocations: 2.624 MB / 418.3 MB, free: 7.922 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.2742, allocations: 0 / 418.3 MB, free: 7.922 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2743, allocations: 4 kB / 418.3 MB, free: 7.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.885e-05/0.2743, allocations: 4 kB / 418.3 MB, free: 7.914 MB / 334.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.003783/0.2781, allocations: 2.356 MB / 420.6 MB, free: 5.496 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2781, allocations: 8.031 kB / 420.6 MB, free: 5.488 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003126/0.2784, allocations: 214.3 kB / 420.9 MB, free: 5.277 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002506/0.281, allocations: 1.675 MB / 422.5 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.2811, allocations: 100.7 kB / 422.6 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.3e-05/0.2812, allocations: 60 kB / 422.7 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.2827, allocations: 0.8259 MB / 423.5 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.2827, allocations: 7.875 kB / 423.5 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.982e-05/0.2828, allocations: 32 kB / 423.6 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/0.2828, allocations: 16 kB / 423.6 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.2838, allocations: 0.5477 MB / 424.1 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005625/0.2895, allocations: 3.985 MB / 428.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.2907, allocations: 0.5301 MB / 428.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007525/0.2915, allocations: 373.2 kB / 429 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.2915, allocations: 4.281 kB / 429 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.2916, allocations: 38.84 kB / 429 MB, free: 12.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.913e-06/0.2916, allocations: 0 / 429 MB, free: 12.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002412/0.294, allocations: 0.9411 MB / 430 MB, free: 11.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.2941, allocations: 265 kB / 430.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003996/0.2981, allocations: 3.148 MB / 433.4 MB, free: 8.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.348e-05/0.2982, allocations: 37.7 kB / 433.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008075/0.2991, allocations: 0.8684 MB / 434.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.2992, allocations: 110.3 kB / 434.4 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001985/0.2994, allocations: 94.16 kB / 434.5 MB, free: 7.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.2996, allocations: 326 kB / 434.8 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004998/0.3001, allocations: 213 kB / 435 MB, free: 6.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005985/0.3007, allocations: 397.7 kB / 435.4 MB, free: 6.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009041/0.3016, allocations: 0.5168 MB / 435.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.828e-06/0.3016, allocations: 0 / 435.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001612/0.3032, allocations: 0.7805 MB / 436.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.3033, allocations: 7.984 kB / 436.7 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/0.3033, allocations: 4 kB / 436.7 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002884/0.3036, allocations: 60.83 kB / 436.8 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000452/0.304, allocations: 124 kB / 436.9 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001728/0.3058, allocations: 1.79 MB / 438.7 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007276/0.3065, allocations: 79.5 kB / 438.8 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.473e-05/0.3066, allocations: 19.98 kB / 438.8 MB, free: 2.652 MB / 350.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.0008517/0.3074, allocations: 0.6576 MB / 439.4 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002654/0.3077, allocations: 189.6 kB / 439.6 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002947/0.308, allocations: 214.5 kB / 439.8 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.308, allocations: 4 kB / 439.8 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.308, allocations: 0 / 439.8 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.308, allocations: 0 / 439.8 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003539/0.3116, allocations: 2.155 MB / 442 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.3116, allocations: 3.984 kB / 442 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003968/0.312, allocations: 87.95 kB / 442.1 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002053/0.3122, allocations: 60.75 kB / 442.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.84e-05/0.3123, allocations: 8 kB / 442.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001611/0.3139, allocations: 1.747 MB / 443.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3139, allocations: 0 / 443.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002006/0.3159, allocations: 0.9719 MB / 444.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.317, allocations: 446.6 kB / 445.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003305/0.3173, allocations: 11.94 kB / 445.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006874/0.318, allocations: 51.95 kB / 445.4 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.3182, allocations: 39.94 kB / 445.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.14e-05/0.3182, allocations: 12 kB / 445.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003461/0.3217, allocations: 2.247 MB / 447.7 MB, free: 9.465 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3217, allocations: 4 kB / 447.7 MB, free: 9.461 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001062/0.3227, allocations: 251.5 kB / 447.9 MB, free: 9.215 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.001154/0.3239, allocations: 480.8 kB / 448.4 MB, free: 8.926 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00141/0.3253, allocations: 0.6078 MB / 449 MB, free: 8.305 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.3254, allocations: 4 kB / 449 MB, free: 8.301 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006787/0.326, allocations: 367 kB / 449.4 MB, free: 7.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001558/0.3276, allocations: 289.9 kB / 449.6 MB, free: 7.645 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006926/0.3345, allocations: 3.719 MB / 453.4 MB, free: 3.879 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001287/0.3359, allocations: 1.485 MB / 454.8 MB, free: 2.363 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003994/0.3363, allocations: 95.44 kB / 454.9 MB, free: 2.27 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3363, allocations: 0 / 454.9 MB, free: 2.27 MB / 366.1 MB Notification: Performance of Templates: time 0.04298/0.3793, allocations: 29.85 MB / 484.8 MB, free: 4.473 MB / 398.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches