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.001136/0.001136, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001035/0.001035, allocations: 160.5 kB / 24.55 MB, free: 20 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 0.9155/0.9155, allocations: 177 MB / 204.8 MB, free: 5.57 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.013e-06/2.013e-06, allocations: 0 / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.837e-05/4.039e-05, allocations: 2.312 kB / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.01009/0.01013, allocations: 5.967 MB / 278.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004709/0.01484, allocations: 2.278 MB / 281.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005351/0.01537, allocations: 19.88 kB / 281.2 MB, free: 9.137 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001606/0.01698, allocations: 0.6105 MB / 281.8 MB, free: 8.523 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001042/0.01802, allocations: 477.2 kB / 282.2 MB, free: 8.055 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008789/0.0189, allocations: 407.2 kB / 282.6 MB, free: 7.656 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001518/0.02042, allocations: 1.344 MB / 284 MB, free: 6.309 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005665/0.02098, allocations: 290.4 kB / 284.3 MB, free: 6.012 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008974/0.02188, allocations: 0.7251 MB / 285 MB, free: 5.285 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007402/0.02262, allocations: 0.5184 MB / 285.5 MB, free: 4.766 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001823/0.0228, allocations: 116 kB / 285.6 MB, free: 4.652 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002998/0.0231, allocations: 179.9 kB / 285.8 MB, free: 4.477 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004811/0.02358, allocations: 0.6623 MB / 286.4 MB, free: 3.812 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005982/0.02418, allocations: 0.5336 MB / 287 MB, free: 3.277 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001654/0.02584, allocations: 1.471 MB / 288.5 MB, free: 1.801 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.02584, allocations: 0 / 288.5 MB, free: 1.801 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.02584, allocations: 0 / 288.5 MB, free: 1.801 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.402e-05/0.02587, allocations: 0 / 288.5 MB, free: 1.801 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.1167/0.1426, allocations: 2.529 MB / 291 MB, free: 23.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.1426, allocations: 13.33 kB / 291 MB, free: 23.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003307/0.143, allocations: 270.5 kB / 291.3 MB, free: 23.65 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001475/0.1445, allocations: 1.193 MB / 292.5 MB, free: 23.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/0.1446, allocations: 181.7 kB / 292.6 MB, free: 23.11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.54e-05/0.1447, allocations: 67.5 kB / 292.7 MB, free: 23.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008434/0.1455, allocations: 0.9601 MB / 293.7 MB, free: 22.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.1455, allocations: 4.844 kB / 293.7 MB, free: 22.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.424e-05/0.1456, allocations: 33.66 kB / 293.7 MB, free: 22.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.1456, allocations: 15.09 kB / 293.7 MB, free: 22.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004322/0.146, allocations: 223.2 kB / 293.9 MB, free: 22.42 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003382/0.1494, allocations: 3.496 MB / 297.4 MB, free: 20.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005501/0.1499, allocations: 305.9 kB / 297.7 MB, free: 20.78 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003474/0.1503, allocations: 211.3 kB / 297.9 MB, free: 20.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.907e-05/0.1503, allocations: 9.078 kB / 297.9 MB, free: 20.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.1503, allocations: 41.8 kB / 298 MB, free: 20.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 1.793e-06/0.1503, allocations: 0 / 298 MB, free: 20.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0009738/0.1513, allocations: 0.5294 MB / 298.5 MB, free: 20.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.1514, allocations: 266.4 kB / 298.8 MB, free: 20.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002286/0.1536, allocations: 2.183 MB / 300.9 MB, free: 19.31 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.1537, allocations: 35.73 kB / 301 MB, free: 19.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005946/0.1543, allocations: 1.074 MB / 302.1 MB, free: 18.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.672e-05/0.1543, allocations: 124.8 kB / 302.2 MB, free: 18.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.1544, allocations: 100.4 kB / 302.3 MB, free: 18.35 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.615e-05/0.1545, allocations: 0.5001 MB / 302.8 MB, free: 17.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001209/0.1546, allocations: 64.81 kB / 302.8 MB, free: 17.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002152/0.1548, allocations: 0.5029 MB / 303.3 MB, free: 17.29 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002964/0.1551, allocations: 318.9 kB / 303.7 MB, free: 17.05 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.1551, allocations: 1.375 kB / 303.7 MB, free: 17.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0006197/0.1558, allocations: 0.5122 MB / 304.2 MB, free: 16.84 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1558, allocations: 9 kB / 304.2 MB, free: 16.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.1558, allocations: 3.844 kB / 304.2 MB, free: 16.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002072/0.156, allocations: 45.95 kB / 304.2 MB, free: 16.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002518/0.1562, allocations: 111.9 kB / 304.3 MB, free: 16.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008598/0.1571, allocations: 2.126 MB / 306.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002524/0.1573, allocations: 63.58 kB / 306.5 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.602e-05/0.1574, allocations: 23.98 kB / 306.5 MB, free: 14.72 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.0001817/0.1576, allocations: 192 kB / 306.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.1577, allocations: 199.5 kB / 306.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001418/0.1578, allocations: 159 kB / 307.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.1579, allocations: 2.75 kB / 307.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1579, allocations: 1.984 kB / 307.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1579, allocations: 1.5 kB / 307.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001875/0.1597, allocations: 1.851 MB / 308.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1597, allocations: 0 / 308.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001978/0.1599, allocations: 75.78 kB / 309 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.869e-05/0.16, allocations: 45.17 kB / 309.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.223e-05/0.16, allocations: 10.14 kB / 309.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005809/0.1606, allocations: 2.084 MB / 311.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1606, allocations: 0 / 311.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005901/0.1612, allocations: 0.6692 MB / 311.8 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003617/0.1616, allocations: 342.2 kB / 312.2 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.282e-05/0.1617, allocations: 13.98 kB / 312.2 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002289/0.1619, allocations: 39.38 kB / 312.2 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.583e-05/0.162, allocations: 38.97 kB / 312.2 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.162, allocations: 13.12 kB / 312.3 MB, free: 10.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001046/0.163, allocations: 1.253 MB / 313.5 MB, free: 9.98 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.163, allocations: 0 / 313.5 MB, free: 9.98 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004913/0.1635, allocations: 266.6 kB / 313.8 MB, free: 9.723 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.0009405/0.1645, allocations: 460.9 kB / 314.2 MB, free: 9.492 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004845/0.165, allocations: 421.6 kB / 314.6 MB, free: 9.078 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.165, allocations: 0 / 314.6 MB, free: 9.078 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001867/0.1651, allocations: 306.5 kB / 314.9 MB, free: 8.77 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006056/0.1658, allocations: 256.1 kB / 315.2 MB, free: 8.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/0.1685, allocations: 2.838 MB / 318 MB, free: 5.629 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002137/0.1687, allocations: 419.3 kB / 318.4 MB, free: 5.191 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002613/0.1689, allocations: 194.7 kB / 318.6 MB, free: 4.996 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.1691, allocations: 88.5 kB / 318.7 MB, free: 4.91 MB / 266.7 MB Notification: Performance of SimCode: time 8.21e-07/0.1691, allocations: 0 / 318.7 MB, free: 4.91 MB / 266.7 MB Notification: Performance of Templates: time 0.02138/0.1905, allocations: 19.13 MB / 337.8 MB, free: 1.941 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.344114595092833]