Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 182.6 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 225.7 MB / 243.2 MB, free: 10.27 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007538/0.000754, allocations: 90.08 kB / 294.4 MB, free: 9.766 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000317/0.0003172, allocations: 15.94 kB / 354.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2698, allocations: 50.41 MB / 404.6 MB, free: 31.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.004784/0.2746, allocations: 5.272 MB / 409.8 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002753/0.2774, allocations: 2.088 MB / 411.9 MB, free: 24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003433/0.2778, allocations: 19.94 kB / 411.9 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.2788, allocations: 0.5879 MB / 412.5 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005243/0.2794, allocations: 366.3 kB / 412.9 MB, free: 23.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000706/0.2801, allocations: 359.6 kB / 413.2 MB, free: 22.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008773/0.281, allocations: 1.22 MB / 414.5 MB, free: 21.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004779/0.2814, allocations: 417.5 kB / 414.9 MB, free: 21.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003168/0.2818, allocations: 390.4 kB / 415.3 MB, free: 20.65 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003869/0.2822, allocations: 0.5096 MB / 415.8 MB, free: 20.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.698e-05/0.2823, allocations: 51.98 kB / 415.8 MB, free: 20.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002121/0.2825, allocations: 95.92 kB / 415.9 MB, free: 19.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002999/0.2828, allocations: 0.5725 MB / 416.5 MB, free: 19.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004768/0.2833, allocations: 0.8168 MB / 417.3 MB, free: 18.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001332/0.2846, allocations: 2.464 MB / 419.8 MB, free: 16.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.2846, allocations: 4 kB / 419.8 MB, free: 16.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2846, allocations: 3.938 kB / 419.8 MB, free: 16.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.2846, allocations: 0 / 419.8 MB, free: 16.11 MB / 298.7 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.002521/0.2872, allocations: 2.046 MB / 421.8 MB, free: 14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.2872, allocations: 12.03 kB / 421.8 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002178/0.2874, allocations: 214.2 kB / 422 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00185/0.2893, allocations: 1.656 MB / 423.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002184/0.2895, allocations: 140.7 kB / 423.8 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.92e-05/0.2896, allocations: 60 kB / 423.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.2908, allocations: 0.8337 MB / 424.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.2908, allocations: 7.938 kB / 424.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.768e-05/0.2909, allocations: 24 kB / 424.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.2909, allocations: 16 kB / 424.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008576/0.2918, allocations: 0.5556 MB / 425.3 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004369/0.2962, allocations: 4.047 MB / 429.4 MB, free: 6.188 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/0.2973, allocations: 0.5676 MB / 429.9 MB, free: 5.609 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006213/0.2979, allocations: 379.1 kB / 430.3 MB, free: 5.238 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.997e-05/0.298, allocations: 4.281 kB / 430.3 MB, free: 5.234 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/0.298, allocations: 50.83 kB / 430.4 MB, free: 5.176 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 1.844e-06/0.298, allocations: 0 / 430.4 MB, free: 5.176 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.002142/0.3002, allocations: 0.9845 MB / 431.3 MB, free: 4.164 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.221e-05/0.3003, allocations: 265 kB / 431.6 MB, free: 3.844 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003195/0.3035, allocations: 3.136 MB / 434.7 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.442e-05/0.3035, allocations: 33.7 kB / 434.8 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006339/0.3042, allocations: 0.8568 MB / 435.6 MB, free: 15.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.937e-05/0.3043, allocations: 118.3 kB / 435.7 MB, free: 15.65 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.214e-05/0.3043, allocations: 8 kB / 435.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.3044, allocations: 326 kB / 436.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004457/0.3049, allocations: 217 kB / 436.3 MB, free: 15.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005968/0.3055, allocations: 406 kB / 436.7 MB, free: 14.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009113/0.3064, allocations: 0.5363 MB / 437.2 MB, free: 14.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3064, allocations: 8 kB / 437.2 MB, free: 14.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001711/0.3081, allocations: 0.8431 MB / 438.1 MB, free: 13.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.3082, allocations: 8 kB / 438.1 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.3082, allocations: 4 kB / 438.1 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003035/0.3085, allocations: 68.81 kB / 438.1 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004448/0.309, allocations: 123.9 kB / 438.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001724/0.3107, allocations: 1.638 MB / 439.9 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006046/0.3113, allocations: 87.39 kB / 440 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.327e-05/0.3113, allocations: 19.94 kB / 440 MB, free: 11.11 MB / 314.7 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.00107/0.3124, allocations: 0.6654 MB / 440.7 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002291/0.3127, allocations: 189.6 kB / 440.9 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002599/0.3129, allocations: 218.5 kB / 441.1 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.3129, allocations: 7.938 kB / 441.1 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3129, allocations: 0 / 441.1 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.313, allocations: 3.984 kB / 441.1 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003293/0.3163, allocations: 2.182 MB / 443.3 MB, free: 7.766 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3163, allocations: 4 kB / 443.3 MB, free: 7.762 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003842/0.3167, allocations: 91.94 kB / 443.4 MB, free: 7.672 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001947/0.3169, allocations: 64.75 kB / 443.4 MB, free: 7.605 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.8e-05/0.3169, allocations: 8 kB / 443.4 MB, free: 7.598 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001416/0.3183, allocations: 1.593 MB / 445 MB, free: 5.867 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3184, allocations: 3.938 kB / 445 MB, free: 5.863 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.3202, allocations: 1.014 MB / 446 MB, free: 4.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006467/0.3208, allocations: 450.6 kB / 446.5 MB, free: 4.359 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/0.321, allocations: 8 kB / 446.5 MB, free: 4.352 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005227/0.3215, allocations: 67.94 kB / 446.6 MB, free: 4.285 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.3216, allocations: 39.89 kB / 446.6 MB, free: 4.246 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.417e-05/0.3217, allocations: 16.25 kB / 446.6 MB, free: 4.23 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003058/0.3247, allocations: 2.232 MB / 448.8 MB, free: 1.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3247, allocations: 0 / 448.8 MB, free: 1.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008622/0.3256, allocations: 259.4 kB / 449.1 MB, free: 1.727 MB / 314.7 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.001066/0.3267, allocations: 0.54 MB / 449.6 MB, free: 1.336 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001333/0.328, allocations: 0.6237 MB / 450.3 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.328, allocations: 0 / 450.3 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000639/0.3287, allocations: 387.8 kB / 450.6 MB, free: 316 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/0.33, allocations: 281.3 kB / 450.9 MB, free: 32 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006751/0.3367, allocations: 4.224 MB / 455.1 MB, free: 11.76 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001165/0.3379, allocations: 1.497 MB / 456.6 MB, free: 10.23 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007842/0.3387, allocations: 303.1 kB / 456.9 MB, free: 9.934 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/0.339, allocations: 87.44 kB / 457 MB, free: 9.852 MB / 330.7 MB Notification: Performance of SimCode: time 9.42e-07/0.339, allocations: 0 / 457 MB, free: 9.852 MB / 330.7 MB Notification: Performance of Templates: time 0.03349/0.3725, allocations: 17.93 MB / 474.9 MB, free: 7.988 MB / 346.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches