Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001062/0.001062, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.001683/0.001683, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 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 0.975/0.975, allocations: 173.3 MB / 201.1 MB, free: 9.336 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_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.0.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.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.227e-05/3.431e-05, allocations: 2.312 kB / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006657/0.006691, allocations: 5.935 MB / 273.9 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003617/0.01031, allocations: 2.112 MB / 276 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005594/0.01087, allocations: 19.88 kB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001271/0.01214, allocations: 0.6143 MB / 276.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007396/0.01288, allocations: 417.6 kB / 277 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007777/0.01366, allocations: 411.2 kB / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001352/0.01501, allocations: 1.343 MB / 278.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004833/0.01549, allocations: 290.4 kB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008299/0.01632, allocations: 0.7251 MB / 279.8 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005572/0.01688, allocations: 0.5222 MB / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001196/0.017, allocations: 120 kB / 280.4 MB, free: 9.918 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002554/0.01725, allocations: 167.9 kB / 280.6 MB, free: 9.754 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003645/0.01762, allocations: 0.67 MB / 281.3 MB, free: 9.082 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004414/0.01806, allocations: 0.5258 MB / 281.8 MB, free: 8.555 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001378/0.01944, allocations: 1.468 MB / 283.3 MB, free: 7.082 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.01944, allocations: 0 / 283.3 MB, free: 7.082 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.01944, allocations: 0 / 283.3 MB, free: 7.082 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.362e-05/0.01948, allocations: 0 / 283.3 MB, free: 7.082 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.002784/0.02226, allocations: 2.531 MB / 285.8 MB, free: 4.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.02232, allocations: 8.922 kB / 285.8 MB, free: 4.492 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003434/0.02266, allocations: 275.5 kB / 286.1 MB, free: 4.223 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001503/0.02416, allocations: 1.178 MB / 287.3 MB, free: 2.988 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001908/0.02435, allocations: 186.4 kB / 287.4 MB, free: 2.773 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.53e-05/0.02445, allocations: 71.94 kB / 287.5 MB, free: 2.703 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.02548, allocations: 0.9539 MB / 288.5 MB, free: 1.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.0255, allocations: 3.938 kB / 288.5 MB, free: 1.586 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.667e-05/0.02555, allocations: 32 kB / 288.5 MB, free: 1.555 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.02557, allocations: 16 kB / 288.5 MB, free: 1.539 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003991/0.02597, allocations: 231.6 kB / 288.7 MB, free: 1.312 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1398/0.1658, allocations: 3.488 MB / 292.2 MB, free: 25.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007225/0.1665, allocations: 300.5 kB / 292.5 MB, free: 25.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003976/0.1669, allocations: 211.3 kB / 292.7 MB, free: 25.89 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.167, allocations: 6.812 kB / 292.7 MB, free: 25.89 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.167, allocations: 44.97 kB / 292.8 MB, free: 25.85 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.966e-06/0.167, allocations: 1.094 kB / 292.8 MB, free: 25.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.001399/0.1684, allocations: 0.525 MB / 293.3 MB, free: 25.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.134e-05/0.1685, allocations: 267.6 kB / 293.6 MB, free: 25.49 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002974/0.1714, allocations: 2.173 MB / 295.7 MB, free: 25.19 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.96e-05/0.1715, allocations: 33.17 kB / 295.8 MB, free: 25.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007349/0.1722, allocations: 1.075 MB / 296.8 MB, free: 24.95 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.1723, allocations: 131 kB / 297 MB, free: 24.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.1724, allocations: 99.31 kB / 297.1 MB, free: 24.86 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.2e-05/0.1725, allocations: 0.4993 MB / 297.6 MB, free: 24.38 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.1727, allocations: 63.75 kB / 297.6 MB, free: 24.38 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002637/0.1729, allocations: 0.5006 MB / 298.1 MB, free: 23.82 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003412/0.1733, allocations: 316.7 kB / 298.4 MB, free: 23.58 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.1733, allocations: 3.406 kB / 298.4 MB, free: 23.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008335/0.1741, allocations: 0.5177 MB / 299 MB, free: 23.37 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.1741, allocations: 7.312 kB / 299 MB, free: 23.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.1741, allocations: 4.688 kB / 299 MB, free: 23.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000239/0.1744, allocations: 43.67 kB / 299 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002863/0.1747, allocations: 114 kB / 299.1 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/0.1758, allocations: 2.12 MB / 301.2 MB, free: 21.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003771/0.1762, allocations: 62.72 kB / 301.3 MB, free: 21.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.207e-05/0.1762, allocations: 21.42 kB / 301.3 MB, free: 21.28 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.0002403/0.1764, allocations: 191.6 kB / 301.5 MB, free: 21.1 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.1766, allocations: 196.6 kB / 301.7 MB, free: 20.99 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001459/0.1768, allocations: 165 kB / 301.9 MB, free: 20.92 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1768, allocations: 3.719 kB / 301.9 MB, free: 20.92 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1768, allocations: 1.031 kB / 301.9 MB, free: 20.92 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.1768, allocations: 3.375 kB / 301.9 MB, free: 20.92 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0024/0.1792, allocations: 1.839 MB / 303.7 MB, free: 19.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.1792, allocations: 2.531 kB / 303.7 MB, free: 19.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002121/0.1794, allocations: 74.66 kB / 303.8 MB, free: 19.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001176/0.1795, allocations: 36.47 kB / 303.8 MB, free: 19.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/0.1795, allocations: 9.734 kB / 303.8 MB, free: 19.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007892/0.1803, allocations: 2.083 MB / 305.9 MB, free: 17.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.1803, allocations: 3.312 kB / 305.9 MB, free: 17.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007236/0.1811, allocations: 0.6654 MB / 306.6 MB, free: 17.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004239/0.1815, allocations: 339.4 kB / 306.9 MB, free: 17.35 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.1816, allocations: 13.06 kB / 306.9 MB, free: 17.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002328/0.1818, allocations: 38.23 kB / 307 MB, free: 17.34 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.1819, allocations: 38.98 kB / 307 MB, free: 17.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.735e-05/0.182, allocations: 11.52 kB / 307 MB, free: 17.32 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001484/0.1834, allocations: 1.249 MB / 308.3 MB, free: 16.89 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1834, allocations: 3.562 kB / 308.3 MB, free: 16.89 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006649/0.1841, allocations: 268.4 kB / 308.5 MB, free: 16.86 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.0009951/0.1851, allocations: 441.6 kB / 309 MB, free: 16.71 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006006/0.1857, allocations: 440.6 kB / 309.4 MB, free: 16.47 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.1857, allocations: 2.562 kB / 309.4 MB, free: 16.47 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000231/0.1859, allocations: 299.2 kB / 309.7 MB, free: 16.26 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006912/0.1866, allocations: 263.5 kB / 309.9 MB, free: 16.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003453/0.1901, allocations: 2.867 MB / 312.8 MB, free: 14.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002505/0.1903, allocations: 411.2 kB / 313.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002947/0.1906, allocations: 188.9 kB / 313.4 MB, free: 14.31 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/0.1908, allocations: 90.52 kB / 313.5 MB, free: 14.23 MB / 266.7 MB Notification: Performance of SimCode: time 1.302e-06/0.1908, allocations: 0 / 313.5 MB, free: 14.23 MB / 266.7 MB Notification: Performance of Templates: time 0.02415/0.2149, allocations: 19.14 MB / 332.6 MB, free: 11.53 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.603583395946771]