Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.002095/0.002095, allocations: 87.92 kB / 20.96 MB, free: 3.32 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.002256/0.002256, allocations: 141.1 kB / 24.25 MB, free: 32 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 1.612/1.612, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 178] 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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.678e-05/2.846e-05, allocations: 2.312 kB / 267.3 MB, free: 6.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008061/0.008089, allocations: 5.359 MB / 272.7 MB, free: 1.367 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003326/0.01141, allocations: 1.691 MB / 274.3 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003594/0.01177, allocations: 19.88 kB / 274.4 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001171/0.01295, allocations: 0.5017 MB / 274.9 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000716/0.01366, allocations: 373.8 kB / 275.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009179/0.01458, allocations: 367.2 kB / 275.6 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001139/0.01572, allocations: 0.9196 MB / 276.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004423/0.01616, allocations: 217.4 kB / 276.7 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006763/0.01684, allocations: 0.5146 MB / 277.2 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000587/0.01742, allocations: 391 kB / 277.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001251/0.01755, allocations: 80 kB / 277.7 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002414/0.01779, allocations: 119.9 kB / 277.8 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005638/0.01835, allocations: 0.5961 MB / 278.4 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005216/0.01888, allocations: 438.6 kB / 278.8 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002377/0.02125, allocations: 2.06 MB / 280.9 MB, free: 9.094 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.02126, allocations: 0 / 280.9 MB, free: 9.094 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.02126, allocations: 4 kB / 280.9 MB, free: 9.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.022e-05/0.02129, allocations: 4 kB / 280.9 MB, free: 9.086 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.004265/0.02556, allocations: 2.336 MB / 283.2 MB, free: 6.703 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.0256, allocations: 12.03 kB / 283.3 MB, free: 6.691 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003776/0.02598, allocations: 227.7 kB / 283.5 MB, free: 6.469 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002223/0.0282, allocations: 1.066 MB / 284.5 MB, free: 5.371 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000134/0.02834, allocations: 92.97 kB / 284.6 MB, free: 5.266 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.484e-05/0.02843, allocations: 55.94 kB / 284.7 MB, free: 5.211 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.02979, allocations: 0.8802 MB / 285.6 MB, free: 4.207 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.02981, allocations: 0 / 285.6 MB, free: 4.207 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.559e-05/0.02987, allocations: 20 kB / 285.6 MB, free: 4.188 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.02988, allocations: 12 kB / 285.6 MB, free: 4.176 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007161/0.0306, allocations: 327.7 kB / 285.9 MB, free: 3.855 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005958/0.03656, allocations: 3.541 MB / 289.5 MB, free: 208 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.149/0.1856, allocations: 305.7 kB / 289.8 MB, free: 30.52 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004542/0.1861, allocations: 159.8 kB / 289.9 MB, free: 30.51 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.327e-05/0.1861, allocations: 7.078 kB / 289.9 MB, free: 30.51 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/0.1861, allocations: 40.42 kB / 290 MB, free: 30.47 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.863e-06/0.1861, allocations: 0 / 290 MB, free: 30.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001728/0.1878, allocations: 0.5526 MB / 290.5 MB, free: 30.42 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/0.1879, allocations: 212.2 kB / 290.7 MB, free: 30.17 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003462/0.1914, allocations: 2.324 MB / 293 MB, free: 29.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.894e-05/0.1914, allocations: 32.14 kB / 293.1 MB, free: 29.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000932/0.1923, allocations: 1.074 MB / 294.2 MB, free: 29.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.1924, allocations: 81.45 kB / 294.2 MB, free: 29.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001946/0.1926, allocations: 92.97 kB / 294.3 MB, free: 29.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1927, allocations: 0.5002 MB / 294.8 MB, free: 28.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002814/0.193, allocations: 101.5 kB / 294.9 MB, free: 28.62 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004028/0.1934, allocations: 497.6 kB / 295.4 MB, free: 28.11 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005587/0.194, allocations: 384.5 kB / 295.8 MB, free: 27.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.194, allocations: 1.062 kB / 295.8 MB, free: 27.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001162/0.1952, allocations: 0.5414 MB / 296.3 MB, free: 27.58 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.1952, allocations: 13.95 kB / 296.3 MB, free: 27.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.1952, allocations: 7.625 kB / 296.3 MB, free: 27.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002499/0.1954, allocations: 53.73 kB / 296.4 MB, free: 27.56 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002579/0.1957, allocations: 67.17 kB / 296.5 MB, free: 27.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001237/0.1969, allocations: 2.2 MB / 298.7 MB, free: 25.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004769/0.1974, allocations: 51.05 kB / 298.7 MB, free: 25.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/0.1974, allocations: 15 kB / 298.7 MB, free: 25.44 MB / 266.7 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.000378/0.1978, allocations: 238.3 kB / 299 MB, free: 25.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002264/0.198, allocations: 179.9 kB / 299.1 MB, free: 25.13 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009112/0.1989, allocations: 413.2 kB / 299.5 MB, free: 24.96 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1989, allocations: 2.016 kB / 299.5 MB, free: 24.96 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.1989, allocations: 5.406 kB / 299.5 MB, free: 24.96 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.199, allocations: 2.109 kB / 299.5 MB, free: 24.96 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003002/0.202, allocations: 1.873 MB / 301.4 MB, free: 24.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.202, allocations: 5.031 kB / 301.4 MB, free: 24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001995/0.2022, allocations: 39.05 kB / 301.5 MB, free: 24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001534/0.2023, allocations: 56.12 kB / 301.5 MB, free: 23.97 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.2023, allocations: 6.25 kB / 301.5 MB, free: 23.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001107/0.2034, allocations: 2.145 MB / 303.7 MB, free: 21.9 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.2034, allocations: 1.25 kB / 303.7 MB, free: 21.9 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001229/0.2047, allocations: 0.7031 MB / 304.4 MB, free: 21.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000721/0.2054, allocations: 288.2 kB / 304.7 MB, free: 21.33 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/0.2055, allocations: 7.359 kB / 304.7 MB, free: 21.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003479/0.2059, allocations: 27.14 kB / 304.7 MB, free: 21.32 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.206, allocations: 37.44 kB / 304.7 MB, free: 21.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.206, allocations: 10.02 kB / 304.7 MB, free: 21.31 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.002015/0.208, allocations: 1.287 MB / 306 MB, free: 20.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.208, allocations: 0 / 306 MB, free: 20.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007927/0.2088, allocations: 211.6 kB / 306.2 MB, free: 20.79 MB / 266.7 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.002384/0.2112, allocations: 388.6 kB / 306.6 MB, free: 20.66 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008952/0.2121, allocations: 476.1 kB / 307.1 MB, free: 20.39 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.2121, allocations: 0 / 307.1 MB, free: 20.39 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004174/0.2125, allocations: 315.2 kB / 307.4 MB, free: 20.17 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.2135, allocations: 199.4 kB / 307.6 MB, free: 20.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003517/0.2171, allocations: 2.464 MB / 310 MB, free: 18.56 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000649/0.2177, allocations: 0.7105 MB / 310.8 MB, free: 18.03 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003524/0.2181, allocations: 151.2 kB / 310.9 MB, free: 17.92 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.2182, allocations: 79.94 kB / 311 MB, free: 17.84 MB / 266.7 MB Notification: Performance of SimCode: time 1.824e-06/0.2183, allocations: 0 / 311 MB, free: 17.84 MB / 266.7 MB Notification: Performance of Templates: time 0.02402/0.2423, allocations: 15.56 MB / 326.5 MB, free: 2.473 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 5.119828591006808]