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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00153/0.00153, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001288, allocations: 156.4 kB / 24.98 MB, free: 8.75 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9945/0.9945, allocations: 177 MB / 205.2 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] 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=12000,variableFilter="time|cell.cell.capacitor.[0-9,]+..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=12000,variableFilter="time|cell.cell.capacitor.[0-9,]+..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 273 MB, free: 1.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.56e-05/2.739e-05, allocations: 5.266 kB / 273 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007022/0.00705, allocations: 5.935 MB / 278.9 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003909/0.01096, allocations: 2.274 MB / 281.2 MB, free: 9.508 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000507/0.01147, allocations: 23.81 kB / 281.2 MB, free: 9.484 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001334/0.0128, allocations: 0.6105 MB / 281.8 MB, free: 8.871 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008806/0.01368, allocations: 477.3 kB / 282.3 MB, free: 8.402 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009296/0.01461, allocations: 407.2 kB / 282.7 MB, free: 8.004 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001608/0.01622, allocations: 1.34 MB / 284 MB, free: 6.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005303/0.01675, allocations: 294.3 kB / 284.3 MB, free: 6.359 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009126/0.01766, allocations: 0.7251 MB / 285 MB, free: 5.633 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006692/0.01833, allocations: 0.5184 MB / 285.6 MB, free: 5.113 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001577/0.01849, allocations: 116 kB / 285.7 MB, free: 5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002856/0.01877, allocations: 183.9 kB / 285.9 MB, free: 4.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004409/0.01921, allocations: 0.6623 MB / 286.5 MB, free: 4.156 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008498/0.02006, allocations: 0.5336 MB / 287 MB, free: 3.621 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001755/0.02182, allocations: 1.467 MB / 288.5 MB, free: 2.148 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.02182, allocations: 0 / 288.5 MB, free: 2.148 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.02183, allocations: 0 / 288.5 MB, free: 2.148 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.96e-05/0.02188, allocations: 0 / 288.5 MB, free: 2.148 MB / 266.7 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.1194/0.1413, allocations: 2.523 MB / 291 MB, free: 28.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.1413, allocations: 13.55 kB / 291.1 MB, free: 28.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003904/0.1417, allocations: 279.2 kB / 291.3 MB, free: 27.9 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002167/0.1439, allocations: 1.188 MB / 292.5 MB, free: 27.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001338/0.144, allocations: 185.1 kB / 292.7 MB, free: 27.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.926e-05/0.1441, allocations: 69.12 kB / 292.8 MB, free: 27.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.1451, allocations: 0.9588 MB / 293.7 MB, free: 26.56 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.1452, allocations: 1.125 kB / 293.7 MB, free: 26.56 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.74e-05/0.1452, allocations: 29.23 kB / 293.8 MB, free: 26.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.145e-05/0.1452, allocations: 19.47 kB / 293.8 MB, free: 26.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005972/0.1458, allocations: 231.2 kB / 294 MB, free: 26.49 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004176/0.15, allocations: 3.493 MB / 297.5 MB, free: 24.29 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006725/0.1507, allocations: 303.6 kB / 297.8 MB, free: 24.2 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003681/0.1544, allocations: 207.7 kB / 298 MB, free: 24.15 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.1544, allocations: 6.094 kB / 298 MB, free: 24.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.1544, allocations: 47.2 kB / 298 MB, free: 24.1 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.665e-06/0.1544, allocations: 0 / 298 MB, free: 24.1 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.001288/0.1557, allocations: 0.5307 MB / 298.6 MB, free: 23.89 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.385e-05/0.1558, allocations: 266.5 kB / 298.8 MB, free: 23.58 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004089/0.1599, allocations: 2.185 MB / 301 MB, free: 22.72 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.438e-05/0.1599, allocations: 37.27 kB / 301.1 MB, free: 22.68 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003807/0.1637, allocations: 1.068 MB / 302.1 MB, free: 21.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.946e-05/0.1638, allocations: 122.9 kB / 302.2 MB, free: 21.83 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001516/0.1639, allocations: 104.1 kB / 302.3 MB, free: 21.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.349e-05/0.164, allocations: 0.497 MB / 302.8 MB, free: 21.27 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/0.1642, allocations: 63.92 kB / 302.9 MB, free: 21.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000283/0.1645, allocations: 0.5022 MB / 303.4 MB, free: 20.71 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003829/0.1649, allocations: 319.3 kB / 303.7 MB, free: 20.46 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.1649, allocations: 5.062 kB / 303.7 MB, free: 20.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009057/0.1658, allocations: 0.5128 MB / 304.2 MB, free: 20.22 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.1658, allocations: 6.312 kB / 304.2 MB, free: 20.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.1658, allocations: 5.156 kB / 304.2 MB, free: 20.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002289/0.166, allocations: 49.14 kB / 304.3 MB, free: 20.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003393/0.1694, allocations: 115 kB / 304.4 MB, free: 20.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/0.1705, allocations: 2.118 MB / 306.5 MB, free: 18.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004501/0.1709, allocations: 59.02 kB / 306.6 MB, free: 18.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.122e-05/0.171, allocations: 22.53 kB / 306.6 MB, free: 18.11 MB / 266.7 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.0002609/0.1712, allocations: 195.4 kB / 306.8 MB, free: 17.93 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002034/0.1714, allocations: 199.4 kB / 307 MB, free: 17.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001733/0.1716, allocations: 159.7 kB / 307.1 MB, free: 17.74 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1716, allocations: 4.125 kB / 307.1 MB, free: 17.74 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1716, allocations: 3.938 kB / 307.2 MB, free: 17.74 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.1716, allocations: 2.969 kB / 307.2 MB, free: 17.74 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005585/0.1772, allocations: 1.847 MB / 309 MB, free: 16.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.1772, allocations: 0 / 309 MB, free: 16.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002575/0.1775, allocations: 81.17 kB / 309.1 MB, free: 16.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001122/0.1776, allocations: 42.22 kB / 309.1 MB, free: 16.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.62e-05/0.1776, allocations: 6.625 kB / 309.1 MB, free: 16.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003804/0.1814, allocations: 2.085 MB / 311.2 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.1814, allocations: 4.062 kB / 311.2 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008431/0.1823, allocations: 0.6703 MB / 311.9 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000442/0.1827, allocations: 342.5 kB / 312.2 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/0.1828, allocations: 8 kB / 312.2 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003166/0.1831, allocations: 47.97 kB / 312.3 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.214e-05/0.1832, allocations: 39.92 kB / 312.3 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.1832, allocations: 8 kB / 312.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.004458/0.1877, allocations: 1.25 MB / 313.6 MB, free: 12.29 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1877, allocations: 0 / 313.6 MB, free: 12.29 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00075/0.1885, allocations: 263.5 kB / 313.8 MB, free: 12.03 MB / 266.7 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.001043/0.1895, allocations: 444.8 kB / 314.3 MB, free: 11.81 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003672/0.1932, allocations: 435.7 kB / 314.7 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.1932, allocations: 0.9375 kB / 314.7 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000271/0.1934, allocations: 297.5 kB / 315 MB, free: 11.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008651/0.1943, allocations: 262.7 kB / 315.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006537/0.2008, allocations: 2.84 MB / 318.1 MB, free: 7.898 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.2011, allocations: 419.2 kB / 318.5 MB, free: 7.465 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003596/0.2015, allocations: 194.7 kB / 318.7 MB, free: 7.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.2017, allocations: 88.5 kB / 318.8 MB, free: 7.184 MB / 266.7 MB Notification: Performance of SimCode: time 1.353e-06/0.2017, allocations: 0 / 318.8 MB, free: 7.184 MB / 266.7 MB Notification: Performance of Templates: time 0.03187/0.2336, allocations: 19.13 MB / 337.9 MB, free: 4.199 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.489226480014622]