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.001345/0.001346, allocations: 106.8 kB / 16.62 MB, free: 6.812 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.001537/0.001537, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.349/1.349, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00092/0.00092, allocations: 42.36 kB / 300.1 MB, free: 6.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/0.09574, allocations: 49.45 MB / 349.6 MB, free: 4.785 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006932/0.1027, allocations: 6 MB / 355.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003144/0.1059, allocations: 2.1 MB / 357.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003039/0.1062, allocations: 15.94 kB / 357.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00127/0.1075, allocations: 0.5994 MB / 358.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006343/0.1082, allocations: 362.3 kB / 358.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007724/0.1089, allocations: 366.9 kB / 359 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001265/0.1102, allocations: 1.313 MB / 360.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006444/0.1109, allocations: 481.7 kB / 360.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005221/0.1114, allocations: 494.3 kB / 361.3 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006436/0.1121, allocations: 0.5877 MB / 361.9 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001407/0.1122, allocations: 116 kB / 362 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000277/0.1125, allocations: 180 kB / 362.1 MB, free: 8.145 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000454/0.1129, allocations: 0.6506 MB / 362.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006816/0.1136, allocations: 0.8933 MB / 363.7 MB, free: 6.594 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002132/0.1158, allocations: 2.589 MB / 366.3 MB, free: 3.996 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1158, allocations: 0 / 366.3 MB, free: 3.996 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1158, allocations: 0 / 366.3 MB, free: 3.996 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.481e-05/0.1158, allocations: 0 / 366.3 MB, free: 3.996 MB / 302.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.003802/0.1196, allocations: 2.356 MB / 368.6 MB, free: 1.578 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.1197, allocations: 12.03 kB / 368.6 MB, free: 1.566 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003055/0.12, allocations: 214.3 kB / 368.9 MB, free: 1.355 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1773/0.2973, allocations: 1.658 MB / 370.5 MB, free: 24.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002778/0.2977, allocations: 127.5 kB / 370.6 MB, free: 24.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/0.2978, allocations: 65.17 kB / 370.7 MB, free: 24.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.2994, allocations: 0.827 MB / 371.5 MB, free: 23.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/0.2994, allocations: 3.953 kB / 371.5 MB, free: 23.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.132e-05/0.2995, allocations: 30.5 kB / 371.6 MB, free: 23.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.318e-05/0.2995, allocations: 19.03 kB / 371.6 MB, free: 23.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.3006, allocations: 0.5476 MB / 372.1 MB, free: 23.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006073/0.3067, allocations: 3.995 MB / 376.1 MB, free: 21.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.308, allocations: 0.5339 MB / 376.7 MB, free: 21.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006897/0.3087, allocations: 355 kB / 377 MB, free: 21.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.354e-05/0.3087, allocations: 3.094 kB / 377 MB, free: 21.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.3087, allocations: 48.31 kB / 377.1 MB, free: 21.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.495e-06/0.3088, allocations: 2.297 kB / 377.1 MB, free: 21.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002276/0.311, allocations: 0.9422 MB / 378 MB, free: 20.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.357e-05/0.3111, allocations: 270.7 kB / 378.3 MB, free: 20.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004518/0.3156, allocations: 3.15 MB / 381.4 MB, free: 19.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.064e-05/0.3157, allocations: 33.11 kB / 381.4 MB, free: 19.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007888/0.3165, allocations: 0.8563 MB / 382.3 MB, free: 18.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.3166, allocations: 116.4 kB / 382.4 MB, free: 18.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001799/0.3168, allocations: 92 kB / 382.5 MB, free: 18.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.314e-05/0.3169, allocations: 328.2 kB / 382.8 MB, free: 18.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004511/0.3174, allocations: 211.7 kB / 383 MB, free: 18.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000521/0.3179, allocations: 399.1 kB / 383.4 MB, free: 17.94 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008431/0.3187, allocations: 0.511 MB / 383.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.3187, allocations: 2 kB / 383.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001578/0.3203, allocations: 0.7786 MB / 384.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.3204, allocations: 5.844 kB / 384.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.3204, allocations: 4.266 kB / 384.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003311/0.3207, allocations: 70.92 kB / 384.8 MB, free: 17.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004613/0.3212, allocations: 117.3 kB / 384.9 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001437/0.3226, allocations: 1.797 MB / 386.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006045/0.3233, allocations: 70.58 kB / 386.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.092e-05/0.3233, allocations: 21.98 kB / 386.8 MB, free: 15.55 MB / 302.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.0008167/0.3241, allocations: 0.6677 MB / 387.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002269/0.3244, allocations: 184.3 kB / 387.6 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002846/0.3247, allocations: 216.4 kB / 387.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.3247, allocations: 3.25 kB / 387.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3247, allocations: 2 kB / 387.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3247, allocations: 0 / 387.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003155/0.3278, allocations: 2.165 MB / 390 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3279, allocations: 0 / 390 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003576/0.3282, allocations: 94.5 kB / 390.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001703/0.3284, allocations: 56.33 kB / 390.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.264e-05/0.3285, allocations: 6.844 kB / 390.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001137/0.3296, allocations: 1.745 MB / 391.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3296, allocations: 1.188 kB / 391.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.3313, allocations: 0.9713 MB / 392.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006031/0.3319, allocations: 435.2 kB / 393.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001561/0.3321, allocations: 16.11 kB / 393.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005055/0.3326, allocations: 52.95 kB / 393.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.3327, allocations: 45.7 kB / 393.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.3328, allocations: 14.86 kB / 393.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002534/0.3353, allocations: 2.244 MB / 395.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3353, allocations: 0 / 395.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008674/0.3362, allocations: 265.8 kB / 395.9 MB, free: 9.809 MB / 302.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.001108/0.3373, allocations: 466 kB / 396.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001228/0.3385, allocations: 0.6433 MB / 397 MB, free: 9.098 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.3385, allocations: 0 / 397 MB, free: 9.098 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005339/0.3391, allocations: 363 kB / 397.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001061/0.3402, allocations: 286.7 kB / 397.7 MB, free: 8.453 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004752/0.3449, allocations: 4.165 MB / 401.8 MB, free: 4.258 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000762/0.3457, allocations: 1.493 MB / 403.3 MB, free: 2.738 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005051/0.3462, allocations: 291.2 kB / 403.6 MB, free: 2.449 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000214/0.3464, allocations: 87.44 kB / 403.7 MB, free: 2.363 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3464, allocations: 4 kB / 403.7 MB, free: 2.359 MB / 302.1 MB Notification: Performance of Templates: time 0.03126/0.3777, allocations: 18.99 MB / 422.7 MB, free: 15.52 MB / 334.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/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