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.001457/0.001457, allocations: 118.9 kB / 18.41 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002014/0.002013, allocations: 208.5 kB / 19.36 MB, free: 3.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001226, allocations: 60.69 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09243/0.09368, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006861/0.1006, allocations: 6.053 MB / 365 MB, free: 7.273 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003194/0.1038, allocations: 2.31 MB / 367.3 MB, free: 4.957 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003011/0.1041, allocations: 15.94 kB / 367.3 MB, free: 4.941 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001225/0.1054, allocations: 0.6341 MB / 367.9 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006788/0.1061, allocations: 441.6 kB / 368.3 MB, free: 3.871 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007063/0.1068, allocations: 413.8 kB / 368.7 MB, free: 3.473 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001115/0.1079, allocations: 1.313 MB / 370.1 MB, free: 2.156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005678/0.1085, allocations: 473.7 kB / 370.5 MB, free: 1.676 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004322/0.1089, allocations: 0.4906 MB / 371 MB, free: 1.184 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005638/0.1095, allocations: 0.5799 MB / 371.6 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.1097, allocations: 116 kB / 371.7 MB, free: 500 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002379/0.1099, allocations: 176 kB / 371.9 MB, free: 324 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.158/0.2679, allocations: 0.6535 MB / 372.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009243/0.2689, allocations: 0.8876 MB / 373.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002764/0.2716, allocations: 2.634 MB / 376.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.2717, allocations: 0 / 376.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2717, allocations: 0.7812 kB / 376.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.976e-05/0.2717, allocations: 5.531 kB / 376.1 MB, free: 12.94 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.004733/0.2765, allocations: 2.366 MB / 378.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.2765, allocations: 11.38 kB / 378.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003865/0.2769, allocations: 212.6 kB / 378.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002882/0.2798, allocations: 1.677 MB / 380.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001137/0.2799, allocations: 104 kB / 380.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.2801, allocations: 67.91 kB / 380.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.2815, allocations: 0.8267 MB / 381.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.2815, allocations: 6.094 kB / 381.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.464e-05/0.2816, allocations: 26.88 kB / 381.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.728e-05/0.2816, allocations: 15.69 kB / 381.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.2827, allocations: 0.5517 MB / 381.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008081/0.2908, allocations: 3.985 MB / 385.9 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.2922, allocations: 0.5417 MB / 386.4 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006491/0.2928, allocations: 354.1 kB / 386.8 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.2929, allocations: 3.062 kB / 386.8 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.2929, allocations: 41.36 kB / 386.8 MB, free: 7.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.224e-06/0.2929, allocations: 0 / 386.8 MB, free: 7.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002422/0.2953, allocations: 0.9401 MB / 387.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.705e-05/0.2954, allocations: 265.2 kB / 388 MB, free: 7.031 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004533/0.3, allocations: 3.165 MB / 391.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.074e-05/0.3, allocations: 40.45 kB / 391.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000626/0.3007, allocations: 0.8624 MB / 392.1 MB, free: 5.234 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.801e-05/0.3008, allocations: 111.6 kB / 392.2 MB, free: 5.141 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/0.3009, allocations: 91.88 kB / 392.3 MB, free: 5.082 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.378e-05/0.301, allocations: 326.6 kB / 392.6 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004193/0.3014, allocations: 215.8 kB / 392.8 MB, free: 4.656 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004875/0.3019, allocations: 393.5 kB / 393.2 MB, free: 4.332 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007979/0.3027, allocations: 0.5238 MB / 393.7 MB, free: 3.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3027, allocations: 1.375 kB / 393.7 MB, free: 3.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001547/0.3043, allocations: 0.7732 MB / 394.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.3043, allocations: 11.66 kB / 394.5 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3043, allocations: 2.5 kB / 394.5 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002789/0.3046, allocations: 65.06 kB / 394.6 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004373/0.3051, allocations: 120.9 kB / 394.7 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001281/0.3063, allocations: 1.79 MB / 396.5 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006881/0.307, allocations: 77.81 kB / 396.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.904e-05/0.3071, allocations: 22.39 kB / 396.6 MB, free: 1.75 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.0009221/0.308, allocations: 0.6609 MB / 397.3 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002437/0.3083, allocations: 183.8 kB / 397.4 MB, free: 1.277 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002474/0.3085, allocations: 221.7 kB / 397.6 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3085, allocations: 2.5 kB / 397.7 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3086, allocations: 0 / 397.7 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.3086, allocations: 0 / 397.7 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003236/0.3118, allocations: 2.159 MB / 399.8 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.3118, allocations: 11.86 kB / 399.8 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003806/0.3122, allocations: 79.59 kB / 399.9 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001742/0.3124, allocations: 58.45 kB / 400 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.077e-05/0.3124, allocations: 11.73 kB / 400 MB, free: 15.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001441/0.3139, allocations: 1.739 MB / 401.7 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3139, allocations: 3.938 kB / 401.7 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001661/0.3156, allocations: 0.978 MB / 402.7 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009195/0.3165, allocations: 448.8 kB / 403.1 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002366/0.3167, allocations: 12.94 kB / 403.1 MB, free: 13.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005396/0.3173, allocations: 55.5 kB / 403.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.3174, allocations: 37.23 kB / 403.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.773e-05/0.3174, allocations: 12 kB / 403.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003017/0.3205, allocations: 2.259 MB / 405.5 MB, free: 11.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.3205, allocations: 0 / 405.5 MB, free: 11.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008881/0.3214, allocations: 253.3 kB / 405.7 MB, free: 10.92 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.001054/0.3224, allocations: 463.2 kB / 406.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.3237, allocations: 0.6061 MB / 406.8 MB, free: 10.04 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.3237, allocations: 4 kB / 406.8 MB, free: 10.03 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006203/0.3243, allocations: 367.5 kB / 407.2 MB, free: 9.668 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.3255, allocations: 296.2 kB / 407.5 MB, free: 9.375 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005423/0.3309, allocations: 3.573 MB / 411 MB, free: 5.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001155/0.3321, allocations: 1.489 MB / 412.5 MB, free: 4.254 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007101/0.3328, allocations: 299.1 kB / 412.8 MB, free: 3.957 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002666/0.3331, allocations: 91.44 kB / 412.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3331, allocations: 0 / 412.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of Templates: time 0.03136/0.3645, allocations: 17.02 MB / 429.9 MB, free: 3.039 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 -s cvode -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