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.0009973/0.0009973, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001017/0.001017, allocations: 165 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 0.9659/0.9659, allocations: 177.1 MB / 205 MB, free: 5.648 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 1.663e-06/1.663e-06, allocations: 0 / 273 MB, free: 1.582 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.415e-05/2.581e-05, allocations: 2.312 kB / 273 MB, free: 1.578 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005661/0.005687, allocations: 5.966 MB / 278.9 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003213/0.0089, allocations: 2.283 MB / 281.2 MB, free: 9.289 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005276/0.009427, allocations: 19.88 kB / 281.2 MB, free: 9.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001248/0.01068, allocations: 0.6066 MB / 281.8 MB, free: 8.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000883/0.01156, allocations: 477.2 kB / 282.3 MB, free: 8.191 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007739/0.01233, allocations: 399.3 kB / 282.7 MB, free: 7.801 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001401/0.01373, allocations: 1.348 MB / 284 MB, free: 6.449 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000538/0.01427, allocations: 298.2 kB / 284.3 MB, free: 6.145 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001175/0.01545, allocations: 0.7174 MB / 285 MB, free: 5.426 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007899/0.01624, allocations: 0.5145 MB / 285.6 MB, free: 4.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002181/0.01645, allocations: 112 kB / 285.7 MB, free: 4.801 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003431/0.0168, allocations: 175.9 kB / 285.8 MB, free: 4.629 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004397/0.01724, allocations: 0.6662 MB / 286.5 MB, free: 3.961 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006449/0.01788, allocations: 0.5297 MB / 287 MB, free: 3.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001703/0.01959, allocations: 1.464 MB / 288.5 MB, free: 1.961 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.01959, allocations: 0 / 288.5 MB, free: 1.961 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.01959, allocations: 3.938 kB / 288.5 MB, free: 1.957 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.336e-05/0.01968, allocations: 0 / 288.5 MB, free: 1.957 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.1246/0.1443, allocations: 2.502 MB / 291 MB, free: 23.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.1443, allocations: 9.75 kB / 291 MB, free: 23.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004099/0.1448, allocations: 275.1 kB / 291.3 MB, free: 23.74 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002019/0.1468, allocations: 1.182 MB / 292.5 MB, free: 23.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.1469, allocations: 183.8 kB / 292.6 MB, free: 23.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.877e-05/0.147, allocations: 68.31 kB / 292.7 MB, free: 23.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.1481, allocations: 0.962 MB / 293.7 MB, free: 22.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.1481, allocations: 1.75 kB / 293.7 MB, free: 22.53 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.728e-05/0.1482, allocations: 31.78 kB / 293.7 MB, free: 22.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.036e-05/0.1482, allocations: 15.12 kB / 293.7 MB, free: 22.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005362/0.1487, allocations: 229.9 kB / 293.9 MB, free: 22.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004189/0.1529, allocations: 3.491 MB / 297.4 MB, free: 21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006994/0.1536, allocations: 302.8 kB / 297.7 MB, free: 20.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004267/0.154, allocations: 217.3 kB / 297.9 MB, free: 20.86 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.806e-05/0.1541, allocations: 6.828 kB / 298 MB, free: 20.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.1541, allocations: 42.66 kB / 298 MB, free: 20.81 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 3.015e-06/0.1541, allocations: 0 / 298 MB, free: 20.81 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.001266/0.1554, allocations: 0.5286 MB / 298.5 MB, free: 20.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.662e-05/0.1554, allocations: 269.8 kB / 298.8 MB, free: 20.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00296/0.1584, allocations: 2.183 MB / 301 MB, free: 19.44 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.602e-05/0.1584, allocations: 37.86 kB / 301 MB, free: 19.4 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007568/0.1592, allocations: 1.062 MB / 302.1 MB, free: 18.63 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.882e-05/0.1593, allocations: 131.1 kB / 302.2 MB, free: 18.54 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.1594, allocations: 99.39 kB / 302.3 MB, free: 18.48 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.275e-05/0.1595, allocations: 0.4967 MB / 302.8 MB, free: 17.99 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.1596, allocations: 65.67 kB / 302.9 MB, free: 17.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002777/0.1599, allocations: 0.5037 MB / 303.4 MB, free: 17.42 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003827/0.1603, allocations: 323.1 kB / 303.7 MB, free: 17.18 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.1603, allocations: 1.75 kB / 303.7 MB, free: 17.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008269/0.1611, allocations: 0.5109 MB / 304.2 MB, free: 16.96 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.1611, allocations: 6.875 kB / 304.2 MB, free: 16.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.1612, allocations: 4.125 kB / 304.2 MB, free: 16.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002168/0.1614, allocations: 45.92 kB / 304.2 MB, free: 16.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003195/0.1617, allocations: 108.3 kB / 304.3 MB, free: 16.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/0.1627, allocations: 2.132 MB / 306.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004114/0.1631, allocations: 56.88 kB / 306.5 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.377e-05/0.1631, allocations: 20.92 kB / 306.6 MB, free: 14.87 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.0002415/0.1634, allocations: 193.2 kB / 306.7 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002025/0.1636, allocations: 203 kB / 306.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001634/0.1638, allocations: 159.6 kB / 307.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.1638, allocations: 4 kB / 307.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.1638, allocations: 0 / 307.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.259e-06/0.1638, allocations: 1.312 kB / 307.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002425/0.1662, allocations: 1.853 MB / 309 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.1662, allocations: 0 / 309 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002462/0.1664, allocations: 79.09 kB / 309 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001156/0.1666, allocations: 39.42 kB / 309.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.039e-05/0.1666, allocations: 10.62 kB / 309.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007737/0.1674, allocations: 2.089 MB / 311.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1674, allocations: 0 / 311.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00084/0.1682, allocations: 0.6755 MB / 311.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003495/0.1686, allocations: 343.9 kB / 312.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.749e-05/0.1686, allocations: 8.469 kB / 312.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.1689, allocations: 42.52 kB / 312.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.169, allocations: 37.14 kB / 312.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.127e-05/0.169, allocations: 11.25 kB / 312.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001515/0.1705, allocations: 1.257 MB / 313.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1705, allocations: 0 / 313.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008165/0.1713, allocations: 267.4 kB / 313.8 MB, free: 9.93 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.001169/0.1725, allocations: 445.6 kB / 314.2 MB, free: 9.711 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007275/0.1732, allocations: 435.5 kB / 314.7 MB, free: 9.316 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.1732, allocations: 0 / 314.7 MB, free: 9.316 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002799/0.1735, allocations: 301.5 kB / 315 MB, free: 9.012 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009071/0.1744, allocations: 262.5 kB / 315.2 MB, free: 8.754 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003349/0.1778, allocations: 2.839 MB / 318 MB, free: 5.859 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/0.178, allocations: 411.4 kB / 318.5 MB, free: 5.43 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003146/0.1783, allocations: 190.7 kB / 318.6 MB, free: 5.238 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.1785, allocations: 88.5 kB / 318.7 MB, free: 5.152 MB / 266.7 MB Notification: Performance of SimCode: time 1.213e-06/0.1785, allocations: 0 / 318.7 MB, free: 5.152 MB / 266.7 MB Notification: Performance of Templates: time 0.02662/0.2051, allocations: 19.97 MB / 338.7 MB, free: 1.418 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.4282253137789667]