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.001337/0.001337, allocations: 77.7 kB / 21.25 MB, free: 0.5469 MB / 14.72 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.001759/0.001759, allocations: 161.3 kB / 24.5 MB, free: 3.711 MB / 14.72 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.429/1.429, allocations: 177.1 MB / 204.7 MB, free: 8.973 MB / 190.1 MB " [Timeout remaining time 178] 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.1..v|cell.cell.capacitor.2..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.1..v|cell.cell.capacitor.2..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 0.001936/0.001936, allocations: 62.98 kB / 325.5 MB, free: 196 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09331/0.09525, allocations: 53.39 MB / 378.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008288/0.1035, allocations: 5.408 MB / 384.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003976/0.1075, allocations: 2.174 MB / 386.5 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008134/0.1083, allocations: 19.88 kB / 386.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001709/0.11, allocations: 0.6146 MB / 387.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001032/0.1111, allocations: 449.7 kB / 387.6 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001138/0.1122, allocations: 422.7 kB / 388 MB, free: 6.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001816/0.114, allocations: 1.306 MB / 389.3 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005484/0.1146, allocations: 282.4 kB / 389.6 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007236/0.1153, allocations: 0.5023 MB / 390.1 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000899/0.1162, allocations: 0.572 MB / 390.6 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002174/0.1164, allocations: 116 kB / 390.8 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000366/0.1168, allocations: 180 kB / 390.9 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005729/0.1173, allocations: 0.6544 MB / 391.6 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000935/0.1183, allocations: 0.6758 MB / 392.3 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002819/0.1211, allocations: 2.67 MB / 394.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1211, allocations: 0 / 394.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1211, allocations: 0 / 394.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.914e-05/0.1211, allocations: 0 / 394.9 MB, free: 15.38 MB / 366.1 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.003788/0.1249, allocations: 2.37 MB / 397.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.125, allocations: 8.031 kB / 397.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003107/0.1253, allocations: 227.5 kB / 397.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002566/0.1278, allocations: 1.628 MB / 399.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001946/0.128, allocations: 198.1 kB / 399.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.997e-05/0.1281, allocations: 63.95 kB / 399.4 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001719/0.1299, allocations: 1.169 MB / 400.6 MB, free: 9.453 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.1299, allocations: 15.88 kB / 400.6 MB, free: 9.438 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.609e-05/0.1299, allocations: 28 kB / 400.6 MB, free: 9.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/0.13, allocations: 16 kB / 400.6 MB, free: 9.395 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.1311, allocations: 0.5399 MB / 401.2 MB, free: 8.855 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006474/0.1375, allocations: 3.495 MB / 404.7 MB, free: 5.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.1389, allocations: 0.4994 MB / 405.2 MB, free: 4.762 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000794/0.1397, allocations: 355.8 kB / 405.5 MB, free: 4.414 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.1398, allocations: 4.281 kB / 405.5 MB, free: 4.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.483e-05/0.1398, allocations: 38.84 kB / 405.6 MB, free: 4.363 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.766e-06/0.1398, allocations: 3.938 kB / 405.6 MB, free: 4.359 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002388/0.1422, allocations: 0.8736 MB / 406.4 MB, free: 3.477 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/0.1423, allocations: 265 kB / 406.7 MB, free: 3.156 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004581/0.1469, allocations: 3.108 MB / 409.8 MB, free: 8 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.147, allocations: 29.7 kB / 409.8 MB, free: 15.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008948/0.1479, allocations: 0.8728 MB / 410.7 MB, free: 15.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.1481, allocations: 126.9 kB / 410.8 MB, free: 14.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001996/0.1483, allocations: 98.09 kB / 410.9 MB, free: 14.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.1484, allocations: 330 kB / 411.2 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005033/0.1489, allocations: 204.9 kB / 411.4 MB, free: 14.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007733/0.1497, allocations: 0.5928 MB / 412 MB, free: 13.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/0.1507, allocations: 0.5204 MB / 412.6 MB, free: 13.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-05/0.1508, allocations: 4 kB / 412.6 MB, free: 13.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001844/0.1526, allocations: 0.7659 MB / 413.3 MB, free: 12.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.1526, allocations: 8.438 kB / 413.3 MB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.1526, allocations: 11.94 kB / 413.4 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003565/0.153, allocations: 68.81 kB / 413.4 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004905/0.1535, allocations: 115.8 kB / 413.5 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001879/0.1554, allocations: 1.649 MB / 415.2 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000687/0.1561, allocations: 67.64 kB / 415.2 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.084e-05/0.1561, allocations: 20 kB / 415.3 MB, free: 10.23 MB / 382.1 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.0009804/0.1571, allocations: 0.6616 MB / 415.9 MB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003581/0.1574, allocations: 182.9 kB / 416.1 MB, free: 9.379 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004386/0.1579, allocations: 214.1 kB / 416.3 MB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.1579, allocations: 11.94 kB / 416.3 MB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.1579, allocations: 0 / 416.3 MB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.1579, allocations: 3.984 kB / 416.3 MB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004038/0.1619, allocations: 1.836 MB / 418.2 MB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.1619, allocations: 4 kB / 418.2 MB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000401/0.1623, allocations: 79.89 kB / 418.2 MB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002046/0.1625, allocations: 64.81 kB / 418.3 MB, free: 7.117 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.1626, allocations: 8 kB / 418.3 MB, free: 7.109 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001717/0.1643, allocations: 1.609 MB / 419.9 MB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1643, allocations: 0 / 419.9 MB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002124/0.1664, allocations: 0.9836 MB / 420.9 MB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009457/0.1674, allocations: 366.6 kB / 421.3 MB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002999/0.1677, allocations: 16.23 kB / 421.3 MB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000666/0.1683, allocations: 59.89 kB / 421.3 MB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.1685, allocations: 39.92 kB / 421.4 MB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/0.1685, allocations: 12 kB / 421.4 MB, free: 3.902 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003879/0.1724, allocations: 2.219 MB / 423.6 MB, free: 1.664 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1724, allocations: 0 / 423.6 MB, free: 1.664 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001219/0.1736, allocations: 263.5 kB / 423.9 MB, free: 1.406 MB / 382.1 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.002087/0.1757, allocations: 487.2 kB / 424.3 MB, free: 1.098 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.1772, allocations: 0.5885 MB / 424.9 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.1772, allocations: 0 / 424.9 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007286/0.178, allocations: 363.2 kB / 425.3 MB, free: 132 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001857/0.1798, allocations: 256.8 kB / 425.5 MB, free: 15.88 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007541/0.1873, allocations: 3.627 MB / 429.2 MB, free: 12.21 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001846/0.1892, allocations: 0.9081 MB / 430.1 MB, free: 11.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001144/0.1903, allocations: 294.7 kB / 430.4 MB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005121/0.1909, allocations: 92.48 kB / 430.5 MB, free: 10.89 MB / 398.1 MB Notification: Performance of SimCode: time 1.663e-06/0.1909, allocations: 0 / 430.5 MB, free: 10.89 MB / 398.1 MB Notification: Performance of Templates: time 0.03884/0.2297, allocations: 19.17 MB / 449.6 MB, free: 7.836 MB / 414.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.0809573360020295]