Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 147.5 kB / 24.81 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.007/1.007, allocations: 173.3 MB / 201.4 MB, free: 9.227 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.664e-06/1.664e-06, allocations: 0 / 268.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.049e-05/2.215e-05, allocations: 2.312 kB / 268.4 MB, free: 6.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006013/0.006035, allocations: 5.281 MB / 273.7 MB, free: 0.918 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.008335, allocations: 1.679 MB / 275.3 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003187/0.008654, allocations: 15.94 kB / 275.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008292/0.009483, allocations: 0.521 MB / 275.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005197/0.01, allocations: 358 kB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006044/0.01061, allocations: 379.2 kB / 276.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008248/0.01143, allocations: 0.9147 MB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003139/0.01175, allocations: 217.4 kB / 277.7 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004991/0.01224, allocations: 0.5223 MB / 278.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003684/0.01261, allocations: 379.1 kB / 278.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.324e-05/0.01269, allocations: 76 kB / 278.7 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001545/0.01284, allocations: 119.9 kB / 278.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00031/0.01315, allocations: 0.6 MB / 279.4 MB, free: 11.15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002906/0.01344, allocations: 430.7 kB / 279.8 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009129/0.01435, allocations: 1.199 MB / 281 MB, free: 9.527 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.01436, allocations: 3.984 kB / 281 MB, free: 9.523 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.01436, allocations: 0 / 281 MB, free: 9.523 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.544e-05/0.01439, allocations: 0 / 281 MB, free: 9.523 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001963/0.01635, allocations: 2.187 MB / 283.2 MB, free: 7.289 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.01638, allocations: 8.031 kB / 283.2 MB, free: 7.281 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/0.01657, allocations: 231.7 kB / 283.5 MB, free: 7.055 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008603/0.01743, allocations: 0.9532 MB / 284.4 MB, free: 6.07 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.01757, allocations: 88.97 kB / 284.5 MB, free: 5.969 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.401e-05/0.01766, allocations: 55.94 kB / 284.6 MB, free: 5.914 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006649/0.01833, allocations: 0.7089 MB / 285.3 MB, free: 5.078 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.01834, allocations: 0 / 285.3 MB, free: 5.078 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.1e-05/0.01837, allocations: 28 kB / 285.3 MB, free: 5.051 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.01838, allocations: 15.98 kB / 285.3 MB, free: 5.035 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.01856, allocations: 126.8 kB / 285.4 MB, free: 4.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00262/0.02118, allocations: 2.607 MB / 288 MB, free: 2.203 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003618/0.02154, allocations: 213.8 kB / 288.2 MB, free: 1.984 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.0217, allocations: 91.95 kB / 288.3 MB, free: 1.891 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/0.02173, allocations: 7.984 kB / 288.3 MB, free: 1.883 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/0.02176, allocations: 37.39 kB / 288.4 MB, free: 1.836 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.513e-06/0.02176, allocations: 0 / 288.4 MB, free: 1.836 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007345/0.02249, allocations: 402.8 kB / 288.8 MB, free: 1.434 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.18e-05/0.02257, allocations: 217.5 kB / 289 MB, free: 1.172 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1353/0.1578, allocations: 1.908 MB / 290.9 MB, free: 27.9 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.122e-05/0.1579, allocations: 31.77 kB / 290.9 MB, free: 27.87 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006717/0.1586, allocations: 0.9834 MB / 291.9 MB, free: 27.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.124e-05/0.1586, allocations: 83.58 kB / 292 MB, free: 27.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.905e-05/0.1587, allocations: 75.83 kB / 292.1 MB, free: 27.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.188e-05/0.1588, allocations: 494.8 kB / 292.5 MB, free: 27.22 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.589e-05/0.1588, allocations: 32.7 kB / 292.6 MB, free: 27.22 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.159, allocations: 410.8 kB / 293 MB, free: 26.76 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001761/0.1592, allocations: 257.7 kB / 293.2 MB, free: 26.56 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.1592, allocations: 3.312 kB / 293.2 MB, free: 26.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004877/0.1596, allocations: 413.4 kB / 293.6 MB, free: 26.44 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.1597, allocations: 7.953 kB / 293.6 MB, free: 26.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.1597, allocations: 2.906 kB / 293.6 MB, free: 26.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001665/0.1598, allocations: 46.22 kB / 293.7 MB, free: 26.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001878/0.16, allocations: 67.5 kB / 293.8 MB, free: 26.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000858/0.1609, allocations: 2.058 MB / 295.8 MB, free: 24.51 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/0.1611, allocations: 51.05 kB / 295.9 MB, free: 24.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.1611, allocations: 9.125 kB / 295.9 MB, free: 24.5 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.000168/0.1613, allocations: 180.2 kB / 296.1 MB, free: 24.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.1615, allocations: 174.6 kB / 296.2 MB, free: 24.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004299/0.1619, allocations: 306.9 kB / 296.5 MB, free: 24.17 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.1619, allocations: 6.219 kB / 296.5 MB, free: 24.17 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.1619, allocations: 0.8438 kB / 296.5 MB, free: 24.17 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.1619, allocations: 1.031 kB / 296.5 MB, free: 24.17 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/0.1631, allocations: 1.144 MB / 297.7 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1631, allocations: 0.7969 kB / 297.7 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.1632, allocations: 39.27 kB / 297.7 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.87e-05/0.1633, allocations: 39.83 kB / 297.8 MB, free: 23.85 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.1633, allocations: 7.281 kB / 297.8 MB, free: 23.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006329/0.164, allocations: 2.016 MB / 299.8 MB, free: 21.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.164, allocations: 1.219 kB / 299.8 MB, free: 21.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005001/0.1645, allocations: 0.5235 MB / 300.3 MB, free: 21.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002659/0.1647, allocations: 243.5 kB / 300.5 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.077e-05/0.1648, allocations: 6.562 kB / 300.5 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.165, allocations: 33.72 kB / 300.6 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.763e-05/0.165, allocations: 31.91 kB / 300.6 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.1651, allocations: 3.875 kB / 300.6 MB, free: 21.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.00109/0.1661, allocations: 1.044 MB / 301.7 MB, free: 21.31 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1661, allocations: 1.062 kB / 301.7 MB, free: 21.31 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006072/0.1668, allocations: 207.1 kB / 301.9 MB, free: 21.3 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006686/0.1674, allocations: 342.7 kB / 302.2 MB, free: 21.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003397/0.1678, allocations: 329.9 kB / 302.5 MB, free: 21 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1678, allocations: 7.625 kB / 302.5 MB, free: 21 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001663/0.1679, allocations: 253.7 kB / 302.8 MB, free: 20.81 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001515/0.1694, allocations: 211.3 kB / 303 MB, free: 20.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002949/0.1724, allocations: 2.405 MB / 305.4 MB, free: 19.51 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.1727, allocations: 342.9 kB / 305.7 MB, free: 19.37 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003061/0.173, allocations: 149.2 kB / 305.9 MB, free: 19.34 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004171/0.1734, allocations: 291.9 kB / 306.1 MB, free: 19.27 MB / 266.7 MB Notification: Performance of SimCode: time 3.51e-07/0.1734, allocations: 0 / 306.1 MB, free: 19.27 MB / 266.7 MB Notification: Performance of Templates: time 0.01854/0.192, allocations: 16.48 MB / 322.6 MB, free: 6.211 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.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: 2.9655447932891548]