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.001019/0.001019, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001117/0.001117, allocations: 160.2 kB / 24.91 MB, free: 8.723 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 1.024/1.024, allocations: 177 MB / 205.2 MB, free: 5.469 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.573e-06/1.573e-06, allocations: 0 / 273.4 MB, free: 1.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.384e-05/2.542e-05, allocations: 2.312 kB / 273.4 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007331/0.007356, allocations: 5.867 MB / 279.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004136/0.01149, allocations: 2.324 MB / 281.6 MB, free: 8.973 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005193/0.01201, allocations: 19.88 kB / 281.6 MB, free: 8.953 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001391/0.0134, allocations: 0.6728 MB / 282.3 MB, free: 8.277 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009436/0.01435, allocations: 465.3 kB / 282.7 MB, free: 7.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008037/0.01515, allocations: 411.2 kB / 283.1 MB, free: 7.418 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001415/0.01656, allocations: 1.344 MB / 284.5 MB, free: 6.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005129/0.01708, allocations: 300.3 kB / 284.8 MB, free: 5.758 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009293/0.01801, allocations: 0.7174 MB / 285.5 MB, free: 5.039 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006886/0.0187, allocations: 486.8 kB / 286 MB, free: 4.562 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001593/0.01885, allocations: 112 kB / 286.1 MB, free: 4.453 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003223/0.01918, allocations: 179.8 kB / 286.3 MB, free: 4.277 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004574/0.01963, allocations: 0.6662 MB / 286.9 MB, free: 3.609 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006421/0.02028, allocations: 0.5219 MB / 287.4 MB, free: 3.086 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001841/0.02212, allocations: 1.471 MB / 288.9 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.02212, allocations: 0 / 288.9 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.02212, allocations: 0 / 288.9 MB, free: 1.609 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.767e-05/0.02216, allocations: 0 / 288.9 MB, free: 1.609 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.128/0.1502, allocations: 2.156 MB / 291.1 MB, free: 24.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.1502, allocations: 12.83 kB / 291.1 MB, free: 24.24 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002996/0.1505, allocations: 175.1 kB / 291.3 MB, free: 24.24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/0.1518, allocations: 0.9026 MB / 292.2 MB, free: 23.78 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.1519, allocations: 180.6 kB / 292.3 MB, free: 23.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.812e-05/0.152, allocations: 73.88 kB / 292.4 MB, free: 23.62 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007607/0.1527, allocations: 0.9026 MB / 293.3 MB, free: 22.99 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.1527, allocations: 1.031 kB / 293.3 MB, free: 22.99 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.601e-05/0.1528, allocations: 28.28 kB / 293.3 MB, free: 22.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/0.1528, allocations: 19.94 kB / 293.4 MB, free: 22.99 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002872/0.1531, allocations: 157 kB / 293.5 MB, free: 22.98 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002696/0.1558, allocations: 2.22 MB / 295.7 MB, free: 22.04 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004513/0.1562, allocations: 248.4 kB / 296 MB, free: 22.01 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002695/0.1565, allocations: 177.8 kB / 296.2 MB, free: 22 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.564e-05/0.1565, allocations: 6.094 kB / 296.2 MB, free: 22 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/0.1566, allocations: 46.36 kB / 296.2 MB, free: 21.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.364e-06/0.1566, allocations: 0 / 296.2 MB, free: 21.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0008234/0.1574, allocations: 371.9 kB / 296.6 MB, free: 21.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.1574, allocations: 263.3 kB / 296.8 MB, free: 21.6 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002022/0.1595, allocations: 1.819 MB / 298.6 MB, free: 21.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/0.1595, allocations: 31.11 kB / 298.7 MB, free: 21.33 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002877/0.1598, allocations: 0.4941 MB / 299.2 MB, free: 21.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.247e-05/0.1598, allocations: 129 kB / 299.3 MB, free: 21.03 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.1599, allocations: 93.3 kB / 299.4 MB, free: 21.01 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.188e-05/0.16, allocations: 331 kB / 299.7 MB, free: 20.7 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.064e-05/0.1601, allocations: 41.95 kB / 299.7 MB, free: 20.7 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.1602, allocations: 425.4 kB / 300.2 MB, free: 20.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002399/0.1605, allocations: 257.5 kB / 300.4 MB, free: 20.11 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.1605, allocations: 1.281 kB / 300.4 MB, free: 20.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0004908/0.161, allocations: 345.5 kB / 300.8 MB, free: 20.04 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.161, allocations: 7.297 kB / 300.8 MB, free: 20.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.161, allocations: 4.453 kB / 300.8 MB, free: 20.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001628/0.1612, allocations: 45.28 kB / 300.8 MB, free: 20.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003209/0.1615, allocations: 124 kB / 300.9 MB, free: 20.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007563/0.1622, allocations: 1.443 MB / 302.4 MB, free: 18.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.1625, allocations: 63.61 kB / 302.4 MB, free: 18.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.575e-05/0.1626, allocations: 14.81 kB / 302.4 MB, free: 18.66 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 (cell.cell.limIntegrator.local_reset,cell.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * 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.0002066/0.1628, allocations: 147.5 kB / 302.6 MB, free: 18.52 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/0.1629, allocations: 111.3 kB / 302.7 MB, free: 18.51 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001666/0.1631, allocations: 163.5 kB / 302.9 MB, free: 18.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.1631, allocations: 8.25 kB / 302.9 MB, free: 18.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.1631, allocations: 64 / 302.9 MB, free: 18.43 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.1631, allocations: 6.484 kB / 302.9 MB, free: 18.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001352/0.1645, allocations: 1.012 MB / 303.9 MB, free: 18.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1645, allocations: 0.5625 kB / 303.9 MB, free: 18.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000276/0.1648, allocations: 98.52 kB / 304 MB, free: 18.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001177/0.1649, allocations: 32.36 kB / 304 MB, free: 18.06 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.1649, allocations: 12.23 kB / 304 MB, free: 18.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006701/0.1656, allocations: 1.401 MB / 305.4 MB, free: 16.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1656, allocations: 1.375 kB / 305.4 MB, free: 16.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005389/0.1661, allocations: 461.1 kB / 305.9 MB, free: 16.54 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003021/0.1664, allocations: 258.6 kB / 306.1 MB, free: 16.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.1665, allocations: 7.531 kB / 306.1 MB, free: 16.37 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002238/0.1668, allocations: 42.31 kB / 306.2 MB, free: 16.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.728e-05/0.1668, allocations: 37.95 kB / 306.2 MB, free: 16.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.1669, allocations: 5.5 kB / 306.2 MB, free: 16.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001045/0.1679, allocations: 0.9982 MB / 307.2 MB, free: 16.14 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1679, allocations: 0 / 307.2 MB, free: 16.14 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006004/0.1685, allocations: 264.6 kB / 307.5 MB, free: 16.1 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.001251/0.1698, allocations: 0.5774 MB / 308.1 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004945/0.1703, allocations: 321.7 kB / 308.4 MB, free: 15.77 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.507e-05/0.1703, allocations: 20.31 kB / 308.4 MB, free: 15.77 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001751/0.1705, allocations: 221.4 kB / 308.6 MB, free: 15.64 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006081/0.1711, allocations: 266.8 kB / 308.9 MB, free: 15.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00312/0.1742, allocations: 2.782 MB / 311.7 MB, free: 13.36 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002608/0.1744, allocations: 391.4 kB / 312 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003541/0.1748, allocations: 162.8 kB / 312.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004398/0.1752, allocations: 321 kB / 312.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of SimCode: time 1.502e-06/0.1752, allocations: 0 / 312.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of Templates: time 0.0254/0.2006, allocations: 20.39 MB / 332.9 MB, free: 8.359 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 -s gbode -gbm=radauIIA3 -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.321951982099563]