Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009249/0.000925, allocations: 95.84 kB / 17.35 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009315/0.0009317, allocations: 211.4 kB / 18.29 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.7 MB / 246.8 MB, free: 9.461 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002405/0.0002404, allocations: 8 kB / 307.7 MB, free: 0.5938 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1093, allocations: 51.52 MB / 359.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007441/0.1168, allocations: 5.612 MB / 364.8 MB, free: 7.426 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004345/0.1212, allocations: 2.245 MB / 367.1 MB, free: 5.176 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008503/0.1221, allocations: 11.94 kB / 367.1 MB, free: 5.164 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001788/0.1239, allocations: 0.5995 MB / 367.7 MB, free: 4.562 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001257/0.1252, allocations: 394.2 kB / 368.1 MB, free: 4.176 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.1263, allocations: 367.5 kB / 368.4 MB, free: 3.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001698/0.128, allocations: 1.223 MB / 369.7 MB, free: 2.598 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007007/0.1287, allocations: 421.5 kB / 370.1 MB, free: 2.172 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006596/0.1294, allocations: 394.3 kB / 370.5 MB, free: 1.785 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005705/0.13, allocations: 0.5057 MB / 371 MB, free: 1.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.906e-05/0.1301, allocations: 48 kB / 371 MB, free: 1.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002601/0.1303, allocations: 104 kB / 371.1 MB, free: 1.129 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004503/0.1308, allocations: 0.5841 MB / 371.7 MB, free: 0.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.213/0.3438, allocations: 0.8124 MB / 372.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003527/0.3474, allocations: 2.464 MB / 375 MB, free: 11.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.3474, allocations: 0.75 kB / 375 MB, free: 11.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.087e-06/0.3474, allocations: 0 / 375 MB, free: 11.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.103e-05/0.3475, allocations: 4.594 kB / 375 MB, free: 11.7 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.004476/0.352, allocations: 2.048 MB / 377 MB, free: 10.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.831e-05/0.3521, allocations: 10.16 kB / 377 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005126/0.3526, allocations: 219.4 kB / 377.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003175/0.3558, allocations: 1.663 MB / 378.9 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002705/0.3561, allocations: 134.3 kB / 379.1 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.3562, allocations: 67.62 kB / 379.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001661/0.3579, allocations: 0.8351 MB / 380 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.3579, allocations: 1.672 kB / 380 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.088e-05/0.358, allocations: 32.28 kB / 380 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.069e-05/0.358, allocations: 15.09 kB / 380 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001105/0.3591, allocations: 0.5615 MB / 380.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008207/0.3673, allocations: 4.051 MB / 384.6 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.3687, allocations: 0.5762 MB / 385.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007689/0.3695, allocations: 373.8 kB / 385.6 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.3695, allocations: 7.719 kB / 385.6 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/0.3696, allocations: 44.72 kB / 385.6 MB, free: 8.055 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 3.226e-06/0.3696, allocations: 0 / 385.6 MB, free: 8.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002884/0.3725, allocations: 0.9977 MB / 386.6 MB, free: 7.629 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.327e-05/0.3726, allocations: 269.2 kB / 386.9 MB, free: 7.309 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006438/0.379, allocations: 3.163 MB / 390 MB, free: 6.156 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002015/0.3793, allocations: 36.86 kB / 390.1 MB, free: 6.117 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009486/0.3802, allocations: 0.8578 MB / 390.9 MB, free: 5.383 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/0.3804, allocations: 115.2 kB / 391 MB, free: 5.285 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.3805, allocations: 43.42 kB / 391.1 MB, free: 5.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.3807, allocations: 327.1 kB / 391.4 MB, free: 4.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006648/0.3813, allocations: 220 kB / 391.6 MB, free: 4.828 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000694/0.382, allocations: 411.5 kB / 392 MB, free: 4.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.3832, allocations: 0.544 MB / 392.6 MB, free: 4.152 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.807e-06/0.3832, allocations: 1.094 kB / 392.6 MB, free: 4.152 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002357/0.3855, allocations: 0.7989 MB / 393.4 MB, free: 3.758 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.3856, allocations: 10.81 kB / 393.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.3856, allocations: 4.125 kB / 393.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003446/0.3859, allocations: 65.27 kB / 393.4 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004817/0.3864, allocations: 123.7 kB / 393.6 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001557/0.388, allocations: 1.648 MB / 395.2 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001201/0.3892, allocations: 88.06 kB / 395.3 MB, free: 2.078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.17e-05/0.3893, allocations: 22.38 kB / 395.3 MB, free: 2.07 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.001467/0.3908, allocations: 0.6591 MB / 396 MB, free: 1.695 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00052/0.3913, allocations: 187.8 kB / 396.2 MB, free: 1.598 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000416/0.3917, allocations: 219.2 kB / 396.4 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.3917, allocations: 3.906 kB / 396.4 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3917, allocations: 3.938 kB / 396.4 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.3917, allocations: 3.984 kB / 396.4 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003292/0.395, allocations: 2.179 MB / 398.6 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3951, allocations: 11.98 kB / 398.6 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000364/0.3954, allocations: 81.55 kB / 398.7 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002281/0.3957, allocations: 77.58 kB / 398.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.108e-05/0.3957, allocations: 7.969 kB / 398.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001457/0.3972, allocations: 1.596 MB / 400.3 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.3972, allocations: 0 / 400.3 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00219/0.3994, allocations: 1.01 MB / 401.3 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009655/0.4004, allocations: 452.3 kB / 401.8 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001966/0.4006, allocations: 8.938 kB / 401.8 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006341/0.4012, allocations: 68.78 kB / 401.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.4014, allocations: 49.56 kB / 401.9 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-05/0.4014, allocations: 13.5 kB / 401.9 MB, free: 13.48 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003893/0.4053, allocations: 2.253 MB / 404.2 MB, free: 11.83 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4053, allocations: 0 / 404.2 MB, free: 11.83 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001245/0.4066, allocations: 259.4 kB / 404.4 MB, free: 11.57 MB / 318.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.001095/0.4077, allocations: 463.2 kB / 404.9 MB, free: 11.29 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001395/0.4091, allocations: 0.6417 MB / 405.5 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.4091, allocations: 0 / 405.5 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006684/0.4098, allocations: 379.4 kB / 405.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001729/0.4115, allocations: 280.3 kB / 406.2 MB, free: 10 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006782/0.4183, allocations: 4.184 MB / 410.3 MB, free: 5.789 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001187/0.4195, allocations: 1.493 MB / 411.8 MB, free: 4.266 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001141/0.4207, allocations: 307.1 kB / 412.1 MB, free: 3.961 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000304/0.421, allocations: 87.44 kB / 412.2 MB, free: 3.875 MB / 318.1 MB Notification: Performance of SimCode: time 7.31e-07/0.421, allocations: 0 / 412.2 MB, free: 3.875 MB / 318.1 MB Notification: Performance of Templates: time 0.03592/0.4569, allocations: 17.94 MB / 430.2 MB, free: 2.066 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches