Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009842/0.0009842, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.093/1.093, allocations: 177.1 MB / 205 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.425e-06/2.425e-06, allocations: 0 / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.684e-05/3.926e-05, allocations: 2.312 kB / 273 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008931/0.00897, allocations: 5.973 MB / 278.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004649/0.01362, allocations: 2.275 MB / 281.2 MB, free: 9.242 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007545/0.01437, allocations: 19.88 kB / 281.2 MB, free: 9.223 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001929/0.0163, allocations: 0.6143 MB / 281.8 MB, free: 8.605 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001255/0.01756, allocations: 473.3 kB / 282.3 MB, free: 8.141 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.01859, allocations: 407.2 kB / 282.7 MB, free: 7.742 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001863/0.02045, allocations: 1.348 MB / 284 MB, free: 6.395 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005175/0.02097, allocations: 294.3 kB / 284.3 MB, free: 6.094 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009352/0.0219, allocations: 0.7212 MB / 285.1 MB, free: 5.371 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006406/0.02254, allocations: 0.5262 MB / 285.6 MB, free: 4.844 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001423/0.02269, allocations: 116 kB / 285.7 MB, free: 4.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002961/0.02298, allocations: 175.9 kB / 285.9 MB, free: 4.559 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003763/0.02336, allocations: 0.6623 MB / 286.5 MB, free: 3.895 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005029/0.02386, allocations: 0.5258 MB / 287.1 MB, free: 3.367 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001433/0.02529, allocations: 1.479 MB / 288.5 MB, free: 1.883 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.0253, allocations: 0 / 288.5 MB, free: 1.883 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.0253, allocations: 0 / 288.5 MB, free: 1.883 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.484e-05/0.02534, allocations: 0 / 288.5 MB, free: 1.883 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.1481/0.1735, allocations: 2.527 MB / 291.1 MB, free: 23.81 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.024e-05/0.1735, allocations: 8.5 kB / 291.1 MB, free: 23.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000591/0.1741, allocations: 275.5 kB / 291.3 MB, free: 23.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002103/0.1762, allocations: 1.185 MB / 292.5 MB, free: 23.31 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000191/0.1764, allocations: 183.5 kB / 292.7 MB, free: 23.15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.1765, allocations: 69.62 kB / 292.8 MB, free: 23.15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/0.1778, allocations: 0.962 MB / 293.7 MB, free: 22.47 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.1778, allocations: 1.219 kB / 293.7 MB, free: 22.47 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.489e-05/0.1778, allocations: 34.53 kB / 293.8 MB, free: 22.46 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.103e-05/0.1779, allocations: 14.53 kB / 293.8 MB, free: 22.46 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000466/0.1783, allocations: 229.9 kB / 294 MB, free: 22.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004478/0.1828, allocations: 3.49 MB / 297.5 MB, free: 20.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006203/0.1834, allocations: 304.7 kB / 297.8 MB, free: 20.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003865/0.1838, allocations: 212.8 kB / 298 MB, free: 20.79 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.384e-05/0.1838, allocations: 5.906 kB / 298 MB, free: 20.79 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.933e-05/0.1839, allocations: 41.97 kB / 298 MB, free: 20.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.174e-06/0.1839, allocations: 1.25 kB / 298 MB, free: 20.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.001166/0.185, allocations: 0.533 MB / 298.6 MB, free: 20.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.791e-05/0.1851, allocations: 263.6 kB / 298.8 MB, free: 20.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003125/0.1882, allocations: 2.186 MB / 301 MB, free: 19.37 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.733e-05/0.1883, allocations: 35.45 kB / 301.1 MB, free: 19.33 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007273/0.189, allocations: 1.068 MB / 302.1 MB, free: 18.56 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.92e-05/0.1891, allocations: 131.6 kB / 302.3 MB, free: 18.47 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.1892, allocations: 97.09 kB / 302.4 MB, free: 18.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.231e-05/0.1893, allocations: 0.501 MB / 302.9 MB, free: 17.92 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001594/0.1894, allocations: 63.66 kB / 302.9 MB, free: 17.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002914/0.1897, allocations: 0.4979 MB / 303.4 MB, free: 17.35 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003716/0.1901, allocations: 328.7 kB / 303.7 MB, free: 17.11 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.1901, allocations: 1.219 kB / 303.7 MB, free: 17.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008557/0.191, allocations: 0.5106 MB / 304.2 MB, free: 16.9 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.903e-05/0.191, allocations: 5.969 kB / 304.3 MB, free: 16.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.191, allocations: 8.125 kB / 304.3 MB, free: 16.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002702/0.1913, allocations: 49.73 kB / 304.3 MB, free: 16.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000313/0.1916, allocations: 108.5 kB / 304.4 MB, free: 16.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/0.1928, allocations: 2.128 MB / 306.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004134/0.1932, allocations: 57.48 kB / 306.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.441e-05/0.1933, allocations: 19.31 kB / 306.6 MB, free: 14.79 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.0002486/0.1935, allocations: 190.5 kB / 306.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.1937, allocations: 198.9 kB / 307 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001665/0.1939, allocations: 164.4 kB / 307.2 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.1939, allocations: 3.234 kB / 307.2 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.1939, allocations: 5.094 kB / 307.2 MB, free: 14.42 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1939, allocations: 1.453 kB / 307.2 MB, free: 14.42 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002232/0.1961, allocations: 1.844 MB / 309 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1961, allocations: 4.062 kB / 309 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001994/0.1963, allocations: 79.2 kB / 309.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001252/0.1964, allocations: 37.08 kB / 309.1 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.671e-05/0.1965, allocations: 10.12 kB / 309.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007177/0.1972, allocations: 2.091 MB / 311.2 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1972, allocations: 0 / 311.2 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006663/0.1978, allocations: 0.6701 MB / 311.9 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003888/0.1982, allocations: 339.1 kB / 312.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.1983, allocations: 21.73 kB / 312.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.1986, allocations: 35.84 kB / 312.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.519e-05/0.1987, allocations: 37.41 kB / 312.3 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.1987, allocations: 14.17 kB / 312.3 MB, free: 10.81 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001199/0.1999, allocations: 1.26 MB / 313.6 MB, free: 10.07 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1999, allocations: 0 / 313.6 MB, free: 10.07 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006216/0.2005, allocations: 262.1 kB / 313.9 MB, free: 9.816 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.001113/0.2016, allocations: 443.2 kB / 314.3 MB, free: 9.594 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005685/0.2022, allocations: 429.7 kB / 314.7 MB, free: 9.188 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.2022, allocations: 8.062 kB / 314.7 MB, free: 9.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002124/0.2024, allocations: 300.7 kB / 315 MB, free: 8.871 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006729/0.2031, allocations: 259.1 kB / 315.3 MB, free: 8.621 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003154/0.2062, allocations: 2.842 MB / 318.1 MB, free: 5.727 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/0.2065, allocations: 415.4 kB / 318.5 MB, free: 5.293 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002817/0.2068, allocations: 182.7 kB / 318.7 MB, free: 5.109 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/0.2069, allocations: 96.5 kB / 318.8 MB, free: 5.016 MB / 266.7 MB Notification: Performance of SimCode: time 1.984e-06/0.2069, allocations: 0 / 318.8 MB, free: 5.016 MB / 266.7 MB Notification: Performance of Templates: time 0.02749/0.2344, allocations: 19.14 MB / 337.9 MB, free: 2.109 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.814934317022562]