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.00163/0.00163, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001815/0.001815, allocations: 208.7 kB / 18.74 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 59.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2757, allocations: 50.54 MB / 409.2 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.01167/0.2874, allocations: 6.063 MB / 415.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005535/0.293, allocations: 2.299 MB / 417.6 MB, free: 9.184 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008331/0.2938, allocations: 15.94 kB / 417.6 MB, free: 9.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00209/0.296, allocations: 0.638 MB / 418.2 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001476/0.2975, allocations: 445.7 kB / 418.7 MB, free: 8.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001322/0.2988, allocations: 414.5 kB / 419.1 MB, free: 7.691 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00206/0.3009, allocations: 1.313 MB / 420.4 MB, free: 6.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008283/0.3018, allocations: 475.1 kB / 420.9 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007977/0.3026, allocations: 0.4906 MB / 421.4 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009052/0.3035, allocations: 0.5799 MB / 421.9 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001911/0.3037, allocations: 116 kB / 422 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003667/0.3041, allocations: 180 kB / 422.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005939/0.3047, allocations: 0.6544 MB / 422.9 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009708/0.3057, allocations: 0.8933 MB / 423.8 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003002/0.3087, allocations: 2.628 MB / 426.4 MB, free: 340 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.3087, allocations: 0 / 426.4 MB, free: 340 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3087, allocations: 0 / 426.4 MB, free: 340 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.965e-05/0.3087, allocations: 0 / 426.4 MB, free: 340 kB / 334.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.003696/0.3124, allocations: 2.38 MB / 428.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.3125, allocations: 8.031 kB / 428.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000329/0.3128, allocations: 210.3 kB / 429 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002693/0.3156, allocations: 1.679 MB / 430.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.3157, allocations: 104.7 kB / 430.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.3158, allocations: 60 kB / 430.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.3173, allocations: 0.8297 MB / 431.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.3173, allocations: 0 / 431.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.625e-05/0.3174, allocations: 31.94 kB / 431.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/0.3174, allocations: 16 kB / 431.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.3184, allocations: 0.5516 MB / 432.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005328/0.3238, allocations: 3.985 MB / 436.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.325, allocations: 0.5302 MB / 436.8 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006983/0.3257, allocations: 369.2 kB / 437.1 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.3257, allocations: 4.281 kB / 437.1 MB, free: 5.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/0.3258, allocations: 46.78 kB / 437.2 MB, free: 5.207 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.873e-06/0.3258, allocations: 0 / 437.2 MB, free: 5.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002253/0.3281, allocations: 0.9456 MB / 438.1 MB, free: 4.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001467/0.3282, allocations: 265 kB / 438.4 MB, free: 3.914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003869/0.3321, allocations: 3.156 MB / 441.5 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.318e-05/0.3322, allocations: 37.64 kB / 441.6 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007835/0.3329, allocations: 0.8569 MB / 442.4 MB, free: 15.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.634e-05/0.333, allocations: 118.2 kB / 442.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/0.3332, allocations: 102.1 kB / 442.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.3333, allocations: 322 kB / 443 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004532/0.3338, allocations: 213 kB / 443.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005742/0.3344, allocations: 394 kB / 443.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009248/0.3353, allocations: 0.5243 MB / 444.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3353, allocations: 4 kB / 444.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001526/0.3369, allocations: 0.7729 MB / 444.9 MB, free: 13.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.3369, allocations: 11.98 kB / 444.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3369, allocations: 4 kB / 444.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002946/0.3372, allocations: 68.95 kB / 444.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004374/0.3377, allocations: 111.9 kB / 445.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001735/0.3394, allocations: 1.794 MB / 446.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005631/0.34, allocations: 75.48 kB / 446.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.994e-05/0.34, allocations: 16 kB / 446.9 MB, free: 11.03 MB / 366.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.0008322/0.3409, allocations: 0.6576 MB / 447.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002282/0.3411, allocations: 189.6 kB / 447.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002645/0.3414, allocations: 226.7 kB / 448 MB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.3414, allocations: 4 kB / 448 MB, free: 9.941 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3414, allocations: 0 / 448 MB, free: 9.941 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.3414, allocations: 0 / 448 MB, free: 9.941 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003268/0.3447, allocations: 2.159 MB / 450.2 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.3447, allocations: 8.062 kB / 450.2 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003886/0.3451, allocations: 79.94 kB / 450.3 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001908/0.3453, allocations: 60.83 kB / 450.3 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.101e-05/0.3453, allocations: 11.98 kB / 450.3 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001586/0.3469, allocations: 1.739 MB / 452.1 MB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3469, allocations: 0 / 452.1 MB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/0.3488, allocations: 0.9832 MB / 453 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006912/0.3496, allocations: 442.6 kB / 453.5 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.3497, allocations: 15.94 kB / 453.5 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005955/0.3503, allocations: 51.94 kB / 453.5 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.3505, allocations: 39.95 kB / 453.6 MB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.83e-05/0.3505, allocations: 12 kB / 453.6 MB, free: 4.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003583/0.3541, allocations: 2.259 MB / 455.9 MB, free: 1.812 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3541, allocations: 3.938 kB / 455.9 MB, free: 1.809 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001046/0.3552, allocations: 247.5 kB / 456.1 MB, free: 1.566 MB / 366.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.001284/0.3565, allocations: 468.2 kB / 456.6 MB, free: 1.262 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.3578, allocations: 0.6083 MB / 457.2 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.3578, allocations: 8.312 kB / 457.2 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006326/0.3584, allocations: 358.4 kB / 457.5 MB, free: 276 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001273/0.3597, allocations: 303.6 kB / 457.8 MB, free: 15.97 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005773/0.3655, allocations: 3.577 MB / 461.4 MB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/0.3668, allocations: 1.501 MB / 462.9 MB, free: 10.83 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00077/0.3676, allocations: 307.1 kB / 463.2 MB, free: 10.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002575/0.3678, allocations: 91.42 kB / 463.3 MB, free: 10.43 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3679, allocations: 0 / 463.3 MB, free: 10.43 MB / 382.1 MB Notification: Performance of Templates: time 0.03295/0.4008, allocations: 17.39 MB / 480.7 MB, free: 9.156 MB / 398.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