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.0009571/0.0009571, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.0009376/0.0009376, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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 1.006/1.006, allocations: 177 MB / 204.8 MB, free: 5.582 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 2.515e-06/2.515e-06, allocations: 3.938 kB / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.948e-05/3.199e-05, allocations: 5.125 kB / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005365/0.005397, allocations: 5.974 MB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002797/0.008194, allocations: 2.274 MB / 281.1 MB, free: 9.172 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003071/0.008501, allocations: 19.88 kB / 281.2 MB, free: 9.152 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.009534, allocations: 0.6105 MB / 281.8 MB, free: 8.539 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006054/0.01014, allocations: 473.3 kB / 282.2 MB, free: 8.074 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007571/0.0109, allocations: 415.1 kB / 282.6 MB, free: 7.668 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001537/0.01243, allocations: 1.348 MB / 284 MB, free: 6.316 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005554/0.01299, allocations: 290.4 kB / 284.3 MB, free: 6.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001012/0.014, allocations: 0.7212 MB / 285 MB, free: 5.297 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007586/0.01476, allocations: 0.5183 MB / 285.5 MB, free: 4.777 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002168/0.01498, allocations: 116 kB / 285.6 MB, free: 4.664 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003287/0.0153, allocations: 167.9 kB / 285.8 MB, free: 4.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004597/0.01576, allocations: 0.6584 MB / 286.5 MB, free: 3.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004956/0.01626, allocations: 0.5297 MB / 287 MB, free: 3.309 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001219/0.01748, allocations: 1.464 MB / 288.4 MB, free: 1.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.01748, allocations: 4 kB / 288.5 MB, free: 1.836 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.01748, allocations: 0 / 288.5 MB, free: 1.836 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.458e-05/0.01753, allocations: 0 / 288.5 MB, free: 1.836 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.1239/0.1415, allocations: 2.51 MB / 291 MB, free: 23.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.1415, allocations: 13.67 kB / 291 MB, free: 23.78 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004289/0.1419, allocations: 275.4 kB / 291.2 MB, free: 23.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001816/0.1438, allocations: 1.171 MB / 292.4 MB, free: 23.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.1439, allocations: 181.2 kB / 292.6 MB, free: 23.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.621e-05/0.144, allocations: 68.97 kB / 292.7 MB, free: 23.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.145, allocations: 0.9666 MB / 293.6 MB, free: 22.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.145, allocations: 0.5312 kB / 293.6 MB, free: 22.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.936e-05/0.1451, allocations: 26.23 kB / 293.7 MB, free: 22.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.327e-05/0.1451, allocations: 19.28 kB / 293.7 MB, free: 22.44 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004836/0.1456, allocations: 229 kB / 293.9 MB, free: 22.43 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003853/0.1494, allocations: 3.492 MB / 297.4 MB, free: 20.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006057/0.15, allocations: 315.4 kB / 297.7 MB, free: 20.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000372/0.1504, allocations: 200 kB / 297.9 MB, free: 20.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.1504, allocations: 6 kB / 297.9 MB, free: 20.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.1504, allocations: 42.09 kB / 297.9 MB, free: 20.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.134e-06/0.1504, allocations: 0 / 297.9 MB, free: 20.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.001094/0.1515, allocations: 0.5375 MB / 298.5 MB, free: 20.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.1516, allocations: 263.5 kB / 298.7 MB, free: 20.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002796/0.1544, allocations: 2.187 MB / 300.9 MB, free: 19.35 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.448e-05/0.1544, allocations: 32.83 kB / 300.9 MB, free: 19.31 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007112/0.1551, allocations: 1.073 MB / 302 MB, free: 18.54 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.117e-05/0.1552, allocations: 125.7 kB / 302.1 MB, free: 18.45 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.1553, allocations: 101.1 kB / 302.2 MB, free: 18.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.342e-05/0.1554, allocations: 0.4921 MB / 302.7 MB, free: 17.9 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.1555, allocations: 71.91 kB / 302.8 MB, free: 17.89 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002767/0.1558, allocations: 0.4941 MB / 303.3 MB, free: 17.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000381/0.1562, allocations: 329.4 kB / 303.6 MB, free: 17.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.1562, allocations: 1.219 kB / 303.6 MB, free: 17.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009264/0.1571, allocations: 0.5099 MB / 304.1 MB, free: 16.88 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.1571, allocations: 7.5 kB / 304.1 MB, free: 16.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.1572, allocations: 2.75 kB / 304.1 MB, free: 16.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002316/0.1574, allocations: 55 kB / 304.2 MB, free: 16.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002804/0.1577, allocations: 108.3 kB / 304.3 MB, free: 16.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00104/0.1587, allocations: 2.122 MB / 306.4 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004504/0.1592, allocations: 69.11 kB / 306.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/0.1592, allocations: 18.72 kB / 306.5 MB, free: 14.77 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.0002753/0.1595, allocations: 189.8 kB / 306.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001728/0.1596, allocations: 200 kB / 306.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001542/0.1598, allocations: 163.9 kB / 307.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.1598, allocations: 4.156 kB / 307.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.1598, allocations: 0 / 307.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.1598, allocations: 1.734 kB / 307.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002094/0.1619, allocations: 1.843 MB / 308.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1619, allocations: 3.938 kB / 308.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001961/0.1621, allocations: 79.39 kB / 309 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001068/0.1622, allocations: 39.38 kB / 309 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.729e-05/0.1622, allocations: 11.66 kB / 309 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007146/0.163, allocations: 2.09 MB / 311.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.163, allocations: 6.016 kB / 311.1 MB, free: 11.4 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006529/0.1636, allocations: 0.6647 MB / 311.8 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003329/0.1639, allocations: 335.8 kB / 312.1 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.164, allocations: 15.59 kB / 312.1 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/0.1643, allocations: 40.83 kB / 312.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.326e-05/0.1644, allocations: 42.64 kB / 312.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.1644, allocations: 13.66 kB / 312.2 MB, free: 10.79 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001106/0.1655, allocations: 1.247 MB / 313.5 MB, free: 10.03 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1655, allocations: 0 / 313.5 MB, free: 10.03 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005881/0.1661, allocations: 262.1 kB / 313.7 MB, free: 9.777 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.001015/0.1671, allocations: 458.3 kB / 314.2 MB, free: 9.555 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005869/0.1677, allocations: 419.8 kB / 314.6 MB, free: 9.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.1677, allocations: 0.9375 kB / 314.6 MB, free: 9.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002046/0.1679, allocations: 309.2 kB / 314.9 MB, free: 8.844 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000654/0.1685, allocations: 258 kB / 315.1 MB, free: 8.598 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003007/0.1715, allocations: 2.837 MB / 318 MB, free: 5.711 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002317/0.1718, allocations: 419.3 kB / 318.4 MB, free: 5.273 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003078/0.1721, allocations: 194.7 kB / 318.6 MB, free: 5.078 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001562/0.1722, allocations: 92.5 kB / 318.7 MB, free: 4.988 MB / 266.7 MB Notification: Performance of SimCode: time 1.183e-06/0.1722, allocations: 0 / 318.7 MB, free: 4.988 MB / 266.7 MB Notification: Performance of Templates: time 0.02609/0.1983, allocations: 19.95 MB / 338.6 MB, free: 1.215 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.2952641109004617]