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.001104/0.001105, allocations: 121.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001053/0.001054, allocations: 200.7 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001048, allocations: 63.88 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2705, allocations: 50.54 MB / 409.2 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.00794/0.2784, allocations: 6.063 MB / 415.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004087/0.2826, allocations: 2.299 MB / 417.6 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004693/0.2831, allocations: 15.94 kB / 417.6 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00156/0.2847, allocations: 0.6263 MB / 418.2 MB, free: 8.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008674/0.2855, allocations: 445.7 kB / 418.7 MB, free: 8.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008633/0.2864, allocations: 406.8 kB / 419.1 MB, free: 7.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001362/0.2878, allocations: 1.317 MB / 420.4 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006783/0.2885, allocations: 471.1 kB / 420.8 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005446/0.289, allocations: 494.4 kB / 421.3 MB, free: 5.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006436/0.2897, allocations: 0.5916 MB / 421.9 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001578/0.2898, allocations: 116 kB / 422 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003169/0.2902, allocations: 175.9 kB / 422.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004631/0.2906, allocations: 0.6544 MB / 422.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007319/0.2914, allocations: 0.8855 MB / 423.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002378/0.2938, allocations: 2.636 MB / 426.4 MB, free: 376 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.2938, allocations: 0 / 426.4 MB, free: 376 kB / 334.1 MB Notification: Performance of FrontEnd: time 3.868e-06/0.2938, allocations: 0 / 426.4 MB, free: 376 kB / 334.1 MB Notification: Performance of Transformations before backend: time 3.059e-05/0.2938, allocations: 0 / 426.4 MB, free: 376 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.003944/0.2978, allocations: 2.376 MB / 428.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.2978, allocations: 12.02 kB / 428.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003173/0.2982, allocations: 214.3 kB / 429 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002421/0.3006, allocations: 1.672 MB / 430.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.3007, allocations: 104.7 kB / 430.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.486e-05/0.3008, allocations: 67.92 kB / 430.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.3023, allocations: 0.8298 MB / 431.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.3023, allocations: 0 / 431.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.489e-05/0.3024, allocations: 28 kB / 431.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.949e-05/0.3024, allocations: 19.94 kB / 431.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.3035, allocations: 0.5477 MB / 432.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00574/0.3092, allocations: 3.993 MB / 436.2 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.3105, allocations: 0.5227 MB / 436.8 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007389/0.3112, allocations: 369.2 kB / 437.1 MB, free: 5.301 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/0.3113, allocations: 8.219 kB / 437.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/0.3113, allocations: 42.78 kB / 437.2 MB, free: 5.242 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.535e-06/0.3113, allocations: 0 / 437.2 MB, free: 5.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.00343/0.3148, allocations: 0.9456 MB / 438.1 MB, free: 4.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/0.3149, allocations: 265 kB / 438.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00412/0.319, allocations: 3.16 MB / 441.5 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.485e-05/0.3191, allocations: 33.7 kB / 441.6 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008148/0.3199, allocations: 0.8684 MB / 442.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.984e-05/0.32, allocations: 106.4 kB / 442.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001602/0.3202, allocations: 98.16 kB / 442.6 MB, free: 15.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.3203, allocations: 322 kB / 442.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004483/0.3208, allocations: 213 kB / 443.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005606/0.3213, allocations: 401.9 kB / 443.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008962/0.3222, allocations: 0.5204 MB / 444.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3223, allocations: 0 / 444.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001499/0.3238, allocations: 0.7806 MB / 444.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.3238, allocations: 6.812 kB / 444.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.3238, allocations: 4.078 kB / 444.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002989/0.3241, allocations: 69 kB / 444.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004445/0.3246, allocations: 115.9 kB / 445 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001668/0.3263, allocations: 1.794 MB / 446.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005377/0.3268, allocations: 79.58 kB / 446.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.929e-05/0.3268, allocations: 16 kB / 446.9 MB, free: 11.06 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.0007648/0.3276, allocations: 0.6653 MB / 447.6 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002275/0.3278, allocations: 189.6 kB / 447.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002838/0.3281, allocations: 218.6 kB / 448 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.3281, allocations: 4 kB / 448 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3282, allocations: 4 kB / 448 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.3282, allocations: 0 / 448 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003471/0.3316, allocations: 2.159 MB / 450.2 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3317, allocations: 0 / 450.2 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003821/0.3321, allocations: 83.88 kB / 450.2 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001887/0.3322, allocations: 60.77 kB / 450.3 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.097e-05/0.3323, allocations: 12.05 kB / 450.3 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001477/0.3338, allocations: 1.74 MB / 452.1 MB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3338, allocations: 0 / 452.1 MB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001793/0.3356, allocations: 0.9794 MB / 453 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007241/0.3363, allocations: 450.6 kB / 453.5 MB, free: 4.234 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001425/0.3365, allocations: 8 kB / 453.5 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000506/0.337, allocations: 55.88 kB / 453.5 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/0.3372, allocations: 35.95 kB / 453.6 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-05/0.3372, allocations: 16 kB / 453.6 MB, free: 4.121 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002904/0.3401, allocations: 2.263 MB / 455.8 MB, free: 1.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3401, allocations: 0 / 455.8 MB, free: 1.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008502/0.341, allocations: 247.5 kB / 456.1 MB, free: 1.598 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.00107/0.342, allocations: 471.9 kB / 456.5 MB, free: 1.289 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001348/0.3434, allocations: 0.612 MB / 457.2 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3434, allocations: 0 / 457.2 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006955/0.3441, allocations: 355.1 kB / 457.5 MB, free: 312 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001539/0.3457, allocations: 299.9 kB / 457.8 MB, free: 16 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007056/0.3528, allocations: 3.581 MB / 461.4 MB, free: 12.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001452/0.3542, allocations: 1.501 MB / 462.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009422/0.3552, allocations: 295.2 kB / 463.2 MB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002563/0.3555, allocations: 87.44 kB / 463.3 MB, free: 10.48 MB / 382.1 MB Notification: Performance of SimCode: time 1.653e-06/0.3555, allocations: 4 kB / 463.3 MB, free: 10.48 MB / 382.1 MB Notification: Performance of Templates: time 0.03056/0.386, allocations: 17.4 MB / 480.7 MB, free: 9.207 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