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.00105/0.00105, allocations: 111.6 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001101, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.9 MB, free: 8.996 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 58.03 kB / 306.9 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09324/0.0944, allocations: 50.54 MB / 357.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.00762/0.1021, allocations: 6.045 MB / 363.5 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003654/0.1058, allocations: 2.276 MB / 365.8 MB, free: 5.898 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006465/0.1064, allocations: 15.94 kB / 365.8 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.108, allocations: 0.5955 MB / 366.4 MB, free: 5.285 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009488/0.1089, allocations: 398.2 kB / 366.8 MB, free: 4.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000866/0.1098, allocations: 367.2 kB / 367.1 MB, free: 4.539 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001525/0.1113, allocations: 1.22 MB / 368.3 MB, free: 3.316 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007025/0.1121, allocations: 421.5 kB / 368.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006625/0.1127, allocations: 426.3 kB / 369.2 MB, free: 2.473 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007819/0.1135, allocations: 0.5369 MB / 369.7 MB, free: 1.934 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001927/0.1137, allocations: 64 kB / 369.8 MB, free: 1.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003784/0.1141, allocations: 127.9 kB / 369.9 MB, free: 1.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005037/0.1146, allocations: 0.5998 MB / 370.5 MB, free: 1.145 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009351/0.1156, allocations: 0.8152 MB / 371.3 MB, free: 332 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1605/0.276, allocations: 2.182 MB / 373.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.2761, allocations: 1.453 kB / 373.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2761, allocations: 1.188 kB / 373.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.941e-05/0.2762, allocations: 0 / 373.5 MB, free: 12.86 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.003939/0.2801, allocations: 2.371 MB / 375.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.2802, allocations: 9.094 kB / 375.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003953/0.2806, allocations: 213 kB / 376.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002411/0.283, allocations: 1.655 MB / 377.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002377/0.2832, allocations: 134.6 kB / 377.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.678e-05/0.2833, allocations: 68.19 kB / 377.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.2847, allocations: 0.8223 MB / 378.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.2848, allocations: 1.062 kB / 378.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.597e-05/0.2848, allocations: 28.81 kB / 378.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/0.2849, allocations: 17.38 kB / 378.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.2859, allocations: 0.5578 MB / 379.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005661/0.2915, allocations: 4.006 MB / 383.4 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.2928, allocations: 0.5325 MB / 383.9 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006828/0.2935, allocations: 367.8 kB / 384.2 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.2935, allocations: 5.875 kB / 384.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.593e-05/0.2936, allocations: 39.22 kB / 384.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.335e-06/0.2936, allocations: 0.6562 kB / 384.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002283/0.2959, allocations: 0.9436 MB / 385.2 MB, free: 8.168 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.2959, allocations: 265.4 kB / 385.5 MB, free: 7.852 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004125/0.3001, allocations: 3.159 MB / 388.7 MB, free: 6.832 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.546e-05/0.3002, allocations: 37.17 kB / 388.7 MB, free: 6.793 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006201/0.3008, allocations: 0.8592 MB / 389.5 MB, free: 6.129 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.359e-05/0.3009, allocations: 120 kB / 389.7 MB, free: 6.043 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/0.301, allocations: 93.84 kB / 389.8 MB, free: 5.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.036e-05/0.3011, allocations: 330 kB / 390.1 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000443/0.3015, allocations: 205.5 kB / 390.3 MB, free: 5.609 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005004/0.302, allocations: 398.9 kB / 390.7 MB, free: 5.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008135/0.3029, allocations: 0.5273 MB / 391.2 MB, free: 4.992 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3029, allocations: 1.125 kB / 391.2 MB, free: 4.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001497/0.3044, allocations: 0.7755 MB / 392 MB, free: 4.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.3044, allocations: 13.44 kB / 392 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3044, allocations: 4.125 kB / 392 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00027/0.3047, allocations: 66.7 kB / 392.1 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004409/0.3052, allocations: 116 kB / 392.2 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.3065, allocations: 1.632 MB / 393.8 MB, free: 2.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007059/0.3072, allocations: 73.53 kB / 393.9 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/0.3072, allocations: 19.03 kB / 393.9 MB, free: 2.922 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.0009367/0.3082, allocations: 0.6635 MB / 394.6 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002896/0.3085, allocations: 182.9 kB / 394.7 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003125/0.3088, allocations: 220.4 kB / 395 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.3088, allocations: 4.406 kB / 395 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.3088, allocations: 3.938 kB / 395 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3088, allocations: 3.984 kB / 395 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003373/0.3122, allocations: 2.155 MB / 397.1 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.3122, allocations: 0 / 397.1 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003735/0.3126, allocations: 85.69 kB / 397.2 MB, free: 0.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001837/0.3128, allocations: 57.86 kB / 397.3 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.111e-05/0.3128, allocations: 12.55 kB / 397.3 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001361/0.3142, allocations: 1.576 MB / 398.8 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.3142, allocations: 3.094 kB / 398.8 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002093/0.3163, allocations: 0.9912 MB / 399.8 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008603/0.3172, allocations: 434.4 kB / 400.3 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000206/0.3174, allocations: 11.91 kB / 400.3 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005611/0.318, allocations: 57.53 kB / 400.3 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.3181, allocations: 45.88 kB / 400.4 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-05/0.3181, allocations: 5.156 kB / 400.4 MB, free: 14.36 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003315/0.3215, allocations: 2.261 MB / 402.6 MB, free: 13.03 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3215, allocations: 0 / 402.6 MB, free: 13.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001162/0.3226, allocations: 251.4 kB / 402.9 MB, free: 12.79 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.001066/0.3237, allocations: 470.5 kB / 403.3 MB, free: 12.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.3251, allocations: 0.6087 MB / 404 MB, free: 11.9 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3251, allocations: 0 / 404 MB, free: 11.9 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000646/0.3257, allocations: 364.1 kB / 404.3 MB, free: 11.54 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001499/0.3272, allocations: 276.6 kB / 404.6 MB, free: 11.27 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006628/0.3339, allocations: 4.197 MB / 408.8 MB, free: 7.035 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001117/0.335, allocations: 1.485 MB / 410.3 MB, free: 5.52 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004961/0.3355, allocations: 91.44 kB / 410.4 MB, free: 5.43 MB / 318.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3355, allocations: 0 / 410.4 MB, free: 5.43 MB / 318.1 MB Notification: Performance of Templates: time 0.03823/0.3738, allocations: 29.51 MB / 439.9 MB, free: 7.98 MB / 350.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/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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches