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.001219/0.001219, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 63.84 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3678/0.3691, allocations: 50.54 MB / 409.2 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.00897/0.3781, allocations: 6.059 MB / 415.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004657/0.3828, allocations: 2.306 MB / 417.6 MB, free: 9.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009115/0.3837, allocations: 15.94 kB / 417.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001953/0.3858, allocations: 0.6341 MB / 418.2 MB, free: 8.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001463/0.3873, allocations: 437.7 kB / 418.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.3885, allocations: 414.5 kB / 419.1 MB, free: 7.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001991/0.3905, allocations: 1.317 MB / 420.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008241/0.3913, allocations: 473.8 kB / 420.9 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009032/0.3922, allocations: 490.4 kB / 421.3 MB, free: 5.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001008/0.3932, allocations: 0.5877 MB / 421.9 MB, free: 5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002742/0.3935, allocations: 116 kB / 422 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005398/0.3941, allocations: 180 kB / 422.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000685/0.3948, allocations: 0.6544 MB / 422.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00135/0.3961, allocations: 0.8894 MB / 423.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00298/0.3991, allocations: 2.642 MB / 426.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3991, allocations: 0 / 426.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3991, allocations: 0 / 426.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.502e-05/0.3992, allocations: 0 / 426.4 MB, free: 0.5078 MB / 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.004656/0.4039, allocations: 2.438 MB / 428.8 MB, free: 14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.404, allocations: 8.031 kB / 428.8 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004122/0.4044, allocations: 231.5 kB / 429.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002448/0.4068, allocations: 1.693 MB / 430.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001234/0.407, allocations: 100.7 kB / 430.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.134e-05/0.4071, allocations: 63.95 kB / 430.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/0.4086, allocations: 0.8336 MB / 431.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.4086, allocations: 3.938 kB / 431.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.539e-05/0.4087, allocations: 28 kB / 431.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.4087, allocations: 16 kB / 431.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009981/0.4097, allocations: 0.5516 MB / 432.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005585/0.4153, allocations: 3.994 MB / 436.3 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/0.4166, allocations: 0.5347 MB / 436.9 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007526/0.4174, allocations: 365.2 kB / 437.2 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.118e-05/0.4174, allocations: 4.281 kB / 437.2 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.1e-05/0.4175, allocations: 42.84 kB / 437.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.584e-06/0.4175, allocations: 0 / 437.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002353/0.4199, allocations: 0.9544 MB / 438.2 MB, free: 4.297 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001347/0.42, allocations: 261 kB / 438.5 MB, free: 3.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004006/0.424, allocations: 3.168 MB / 441.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.669e-05/0.4241, allocations: 33.7 kB / 441.7 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007904/0.4249, allocations: 0.8654 MB / 442.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.425, allocations: 126.9 kB / 442.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.4252, allocations: 98.14 kB / 442.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.4253, allocations: 326 kB / 443.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004627/0.4258, allocations: 209 kB / 443.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006015/0.4264, allocations: 397.9 kB / 443.7 MB, free: 14.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009263/0.4273, allocations: 0.5243 MB / 444.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.4274, allocations: 4 kB / 444.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001604/0.429, allocations: 0.7855 MB / 445 MB, free: 13.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.429, allocations: 4 kB / 445 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.429, allocations: 4 kB / 445 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003097/0.4293, allocations: 73.03 kB / 445.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004512/0.4298, allocations: 115.9 kB / 445.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002016/0.4318, allocations: 1.787 MB / 447 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007437/0.4326, allocations: 75.59 kB / 447.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.642e-05/0.4326, allocations: 16 kB / 447.1 MB, free: 11.07 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.001105/0.4337, allocations: 0.6576 MB / 447.7 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002545/0.434, allocations: 202.7 kB / 447.9 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002832/0.4343, allocations: 222.6 kB / 448.1 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.4343, allocations: 4 kB / 448.1 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.4343, allocations: 0 / 448.1 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.4343, allocations: 0 / 448.1 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003234/0.4376, allocations: 2.159 MB / 450.3 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.4376, allocations: 4.125 kB / 450.3 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003845/0.438, allocations: 75.95 kB / 450.4 MB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001968/0.4382, allocations: 72.75 kB / 450.5 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.144e-05/0.4382, allocations: 8 kB / 450.5 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001549/0.4398, allocations: 1.747 MB / 452.2 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4398, allocations: 3.938 kB / 452.2 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.4417, allocations: 0.9921 MB / 453.2 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006593/0.4423, allocations: 455.7 kB / 453.7 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001554/0.4425, allocations: 8 kB / 453.7 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005201/0.443, allocations: 51.95 kB / 453.7 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.4431, allocations: 39.94 kB / 453.7 MB, free: 4.109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.4432, allocations: 15.94 kB / 453.8 MB, free: 4.094 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00316/0.4463, allocations: 2.259 MB / 456 MB, free: 1.816 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4463, allocations: 0 / 456 MB, free: 1.816 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009354/0.4473, allocations: 255.6 kB / 456.3 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.00112/0.4484, allocations: 471.8 kB / 456.7 MB, free: 1.262 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.4498, allocations: 0.6047 MB / 457.3 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.4498, allocations: 4 kB / 457.3 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006243/0.4504, allocations: 354.4 kB / 457.7 MB, free: 288 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/0.4517, allocations: 293.2 kB / 458 MB, free: 15.99 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00549/0.4572, allocations: 3.643 MB / 461.6 MB, free: 12.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/0.4583, allocations: 1.497 MB / 463.1 MB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000786/0.4591, allocations: 303.1 kB / 463.4 MB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002548/0.4594, allocations: 91.44 kB / 463.5 MB, free: 10.39 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4594, allocations: 0 / 463.5 MB, free: 10.39 MB / 382.1 MB Notification: Performance of Templates: time 0.03439/0.4938, allocations: 17.39 MB / 480.9 MB, free: 9.117 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