Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 86.55 kB / 16.31 MB, free: 6.449 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.00147/0.00147, allocations: 179.9 kB / 17.21 MB, free: 6.32 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.572/1.572, allocations: 223.3 MB / 241.2 MB, free: 276 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002744/0.0002745, allocations: 4 kB / 300.8 MB, free: 6.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1279, allocations: 50.42 MB / 351.2 MB, free: 4.008 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007242/0.1352, allocations: 4.781 MB / 356 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003527/0.1388, allocations: 1.599 MB / 357.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006829/0.1395, allocations: 11.94 kB / 357.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.1406, allocations: 498.3 kB / 358.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007069/0.1413, allocations: 294.6 kB / 358.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008199/0.1422, allocations: 255 kB / 358.7 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009032/0.1431, allocations: 0.7715 MB / 359.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004466/0.1435, allocations: 247.9 kB / 359.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/0.1439, allocations: 274.9 kB / 359.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004281/0.1443, allocations: 350.6 kB / 360.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.282e-05/0.1444, allocations: 32 kB / 360.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.1446, allocations: 67.97 kB / 360.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004336/0.145, allocations: 0.5493 MB / 360.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002232/0.1452, allocations: 284.8 kB / 361.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001374/0.1466, allocations: 1.707 MB / 362.9 MB, free: 8.281 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.1466, allocations: 3.938 kB / 362.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1466, allocations: 0 / 362.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.572e-05/0.1467, allocations: 0 / 362.9 MB, free: 8.277 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.0026/0.1493, allocations: 1.839 MB / 364.8 MB, free: 6.379 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.1493, allocations: 8.031 kB / 364.8 MB, free: 6.371 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000243/0.1496, allocations: 185.7 kB / 364.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001976/0.1515, allocations: 1.393 MB / 366.3 MB, free: 4.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.1518, allocations: 102.7 kB / 366.4 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.449e-05/0.1518, allocations: 47.98 kB / 366.5 MB, free: 4.598 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.1529, allocations: 0.5971 MB / 367.1 MB, free: 3.957 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.1529, allocations: 3.938 kB / 367.1 MB, free: 3.953 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.13e-05/0.153, allocations: 20 kB / 367.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.153, allocations: 12 kB / 367.1 MB, free: 3.922 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006885/0.1537, allocations: 351.8 kB / 367.5 MB, free: 3.574 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004234/0.1579, allocations: 3.289 MB / 370.7 MB, free: 172 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.227/0.3849, allocations: 415.3 kB / 371.2 MB, free: 23.86 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005386/0.3855, allocations: 197.7 kB / 371.3 MB, free: 23.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.092e-05/0.3855, allocations: 3.625 kB / 371.4 MB, free: 23.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.3856, allocations: 45.89 kB / 371.4 MB, free: 23.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.415e-06/0.3856, allocations: 0 / 371.4 MB, free: 23.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002177/0.3878, allocations: 0.75 MB / 372.1 MB, free: 23.63 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.682e-05/0.3878, allocations: 210.5 kB / 372.4 MB, free: 23.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004488/0.3923, allocations: 2.897 MB / 375.2 MB, free: 23.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.338e-05/0.3924, allocations: 32.45 kB / 375.3 MB, free: 23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006675/0.3931, allocations: 0.7816 MB / 376.1 MB, free: 22.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.21e-05/0.3932, allocations: 74.17 kB / 376.1 MB, free: 22.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.609e-05/0.3932, allocations: 5.219 kB / 376.1 MB, free: 22.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.045e-05/0.3933, allocations: 323.4 kB / 376.5 MB, free: 22.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003443/0.3936, allocations: 130.6 kB / 376.6 MB, free: 22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004018/0.394, allocations: 303.7 kB / 376.9 MB, free: 21.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000349/0.3944, allocations: 152.5 kB / 377 MB, free: 21.72 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3944, allocations: 1.406 kB / 377 MB, free: 21.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001465/0.3959, allocations: 0.6272 MB / 377.7 MB, free: 21.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.3959, allocations: 11.42 kB / 377.7 MB, free: 21.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.3959, allocations: 3.031 kB / 377.7 MB, free: 21.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003228/0.3962, allocations: 66.16 kB / 377.7 MB, free: 21.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003094/0.3966, allocations: 81.12 kB / 377.8 MB, free: 21.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001376/0.398, allocations: 1.577 MB / 379.4 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004569/0.3984, allocations: 66.03 kB / 379.5 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.962e-05/0.3985, allocations: 17.31 kB / 379.5 MB, free: 19.93 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0007731/0.3992, allocations: 0.5826 MB / 380.1 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001933/0.3994, allocations: 165.9 kB / 380.2 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00115/0.4006, allocations: 0.5435 MB / 380.8 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.4006, allocations: 2.25 kB / 380.8 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.4006, allocations: 4.984 kB / 380.8 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.4006, allocations: 1.266 kB / 380.8 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002634/0.4033, allocations: 1.717 MB / 382.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.4033, allocations: 0.6562 kB / 382.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002283/0.4035, allocations: 52.3 kB / 382.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001544/0.4037, allocations: 52.38 kB / 382.6 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.4037, allocations: 7.547 kB / 382.6 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/0.4048, allocations: 1.526 MB / 384.1 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.4048, allocations: 1.031 kB / 384.1 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001366/0.4061, allocations: 0.7509 MB / 384.9 MB, free: 16.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005176/0.4067, allocations: 388.8 kB / 385.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.4068, allocations: 14.7 kB / 385.3 MB, free: 16.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003986/0.4072, allocations: 58.61 kB / 385.3 MB, free: 16.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.4073, allocations: 29.91 kB / 385.4 MB, free: 16.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.4073, allocations: 5.469 kB / 385.4 MB, free: 16.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003015/0.4104, allocations: 2.07 MB / 387.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4104, allocations: 1.125 kB / 387.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001081/0.4115, allocations: 199.7 kB / 387.6 MB, free: 15.75 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008573/0.4123, allocations: 368.1 kB / 388 MB, free: 15.58 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.4136, allocations: 462.1 kB / 388.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.4136, allocations: 1.219 kB / 388.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005465/0.4142, allocations: 283.3 kB / 388.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001268/0.4155, allocations: 216 kB / 388.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005664/0.4212, allocations: 3.359 MB / 392.3 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009423/0.4221, allocations: 1.358 MB / 393.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006579/0.4228, allocations: 236.5 kB / 393.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002129/0.423, allocations: 79.66 kB / 394 MB, free: 12.49 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.423, allocations: 0 / 394 MB, free: 12.49 MB / 302.1 MB Notification: Performance of Templates: time 0.02502/0.4481, allocations: 14.05 MB / 408 MB, free: 14.94 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches