Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001483/0.001483, allocations: 84.23 kB / 20.68 MB, free: 1.023 MB / 14.72 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.003204/0.003204, allocations: 163.9 kB / 23.96 MB, free: 4.145 MB / 14.72 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.505/1.505, allocations: 177.1 MB / 204.3 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] 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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.993e-06/1.993e-06, allocations: 0 / 325 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.196e-05/2.395e-05, allocations: 2.281 kB / 325 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007142/0.007166, allocations: 4.965 MB / 330 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003834/0.011, allocations: 1.809 MB / 331.8 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004783/0.01148, allocations: 18.31 kB / 331.8 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001136/0.01261, allocations: 0.5146 MB / 332.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009505/0.01357, allocations: 413.1 kB / 332.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000935/0.0145, allocations: 363.4 kB / 333.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001182/0.01568, allocations: 0.9283 MB / 334 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004354/0.01612, allocations: 217.4 kB / 334.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006611/0.01678, allocations: 0.5262 MB / 334.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005018/0.01728, allocations: 372.4 kB / 335.1 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001144/0.0174, allocations: 78.06 kB / 335.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002488/0.01764, allocations: 121.4 kB / 335.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005004/0.01814, allocations: 0.5968 MB / 335.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004946/0.01864, allocations: 434.5 kB / 336.4 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002249/0.02089, allocations: 2.061 MB / 338.4 MB, free: 7.762 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.02089, allocations: 0 / 338.4 MB, free: 7.762 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.02089, allocations: 0 / 338.4 MB, free: 7.762 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.387e-05/0.02093, allocations: 4 kB / 338.4 MB, free: 7.758 MB / 302.1 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.003756/0.02468, allocations: 2.058 MB / 340.5 MB, free: 5.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.02472, allocations: 8.031 kB / 340.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003061/0.02503, allocations: 199.7 kB / 340.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002414/0.02744, allocations: 1.454 MB / 342.1 MB, free: 3.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.02756, allocations: 88.97 kB / 342.2 MB, free: 3.871 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.517e-05/0.02765, allocations: 51.94 kB / 342.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/0.02893, allocations: 0.8403 MB / 343.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.02895, allocations: 0 / 343.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.059e-05/0.029, allocations: 23.94 kB / 343.1 MB, free: 2.848 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.02901, allocations: 12 kB / 343.2 MB, free: 2.836 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007494/0.02976, allocations: 347.7 kB / 343.5 MB, free: 2.492 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004778/0.03454, allocations: 2.832 MB / 346.3 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.03579, allocations: 358.2 kB / 346.7 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000512/0.0363, allocations: 172.7 kB / 346.8 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.328e-05/0.03633, allocations: 0 / 346.8 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.423e-05/0.03638, allocations: 46.55 kB / 346.9 MB, free: 14.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.354e-06/0.03638, allocations: 0 / 346.9 MB, free: 14.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.00223/0.03861, allocations: 0.629 MB / 347.5 MB, free: 14.35 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/0.03875, allocations: 209.6 kB / 347.7 MB, free: 14.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004674/0.04343, allocations: 2.873 MB / 350.6 MB, free: 11.17 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.61e-05/0.04348, allocations: 25.7 kB / 350.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008748/0.04436, allocations: 0.8052 MB / 351.4 MB, free: 10.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.938e-05/0.04445, allocations: 75.33 kB / 351.5 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.04458, allocations: 69.97 kB / 351.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.04475, allocations: 318 kB / 351.9 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003875/0.04514, allocations: 124.6 kB / 352 MB, free: 9.742 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006534/0.04579, allocations: 442.2 kB / 352.4 MB, free: 9.207 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009352/0.04673, allocations: 358.3 kB / 352.8 MB, free: 8.805 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.04673, allocations: 4 kB / 352.8 MB, free: 8.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001421/0.04816, allocations: 0.5584 MB / 353.3 MB, free: 8.234 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.04818, allocations: 18.84 kB / 353.4 MB, free: 8.219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.04819, allocations: 4 kB / 353.4 MB, free: 8.215 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003019/0.04849, allocations: 60.81 kB / 353.4 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003227/0.04881, allocations: 75.89 kB / 353.5 MB, free: 8.078 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002119/0.05093, allocations: 1.586 MB / 355.1 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005615/0.05149, allocations: 59.7 kB / 355.1 MB, free: 6.336 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.657e-05/0.05153, allocations: 16.19 kB / 355.2 MB, free: 6.32 MB / 318.1 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 (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 (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.0009219/0.05245, allocations: 0.5758 MB / 355.7 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002657/0.05272, allocations: 162.9 kB / 355.9 MB, free: 5.574 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.05415, allocations: 0.5176 MB / 356.4 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.05416, allocations: 4 kB / 356.4 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.05416, allocations: 0 / 356.4 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.05417, allocations: 3.984 kB / 356.4 MB, free: 5.039 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002876/0.05704, allocations: 1.419 MB / 357.8 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.05705, allocations: 0 / 357.8 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000264/0.05731, allocations: 43.91 kB / 357.9 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001824/0.05749, allocations: 52.84 kB / 357.9 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.393e-05/0.05752, allocations: 8 kB / 357.9 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001736/0.05925, allocations: 1.535 MB / 359.5 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.05926, allocations: 4.125 kB / 359.5 MB, free: 1.82 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001721/0.06098, allocations: 0.7222 MB / 360.2 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006516/0.06163, allocations: 310.8 kB / 360.5 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001412/0.06177, allocations: 8 kB / 360.5 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004507/0.06222, allocations: 47.89 kB / 360.6 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.06235, allocations: 27.95 kB / 360.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.06237, allocations: 8 kB / 360.6 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003272/0.06564, allocations: 2.043 MB / 362.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.06564, allocations: 0 / 362.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009617/0.0666, allocations: 203.6 kB / 362.8 MB, free: 14.41 MB / 334.1 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.001518/0.06812, allocations: 390.8 kB / 363.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00136/0.06948, allocations: 430.6 kB / 363.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.154e-06/0.06949, allocations: 4 kB / 363.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006092/0.0701, allocations: 258.3 kB / 363.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001556/0.07165, allocations: 211.2 kB / 364.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006793/0.07845, allocations: 2.982 MB / 367.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001194/0.07964, allocations: 0.7742 MB / 367.9 MB, free: 9.434 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007631/0.0804, allocations: 234.2 kB / 368.1 MB, free: 9.199 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003805/0.08078, allocations: 84.44 kB / 368.2 MB, free: 9.117 MB / 334.1 MB Notification: Performance of SimCode: time 1.162e-06/0.08079, allocations: 0 / 368.2 MB, free: 9.117 MB / 334.1 MB Notification: Performance of Templates: time 0.03364/0.1144, allocations: 15.53 MB / 383.7 MB, free: 9.703 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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: 4.894382558763027]