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.0009815/0.0009815, allocations: 83.58 kB / 21.18 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.0009929/0.0009929, allocations: 161 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 1.047/1.047, 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_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.874e-06/1.874e-06, allocations: 0 / 273 MB, free: 1.586 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.267e-05/2.455e-05, allocations: 2.312 kB / 273 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008419/0.008444, allocations: 5.46 MB / 278.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00374/0.01218, allocations: 1.839 MB / 280.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004407/0.01262, allocations: 15.88 kB / 280.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001267/0.01389, allocations: 0.525 MB / 280.8 MB, free: 9.703 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009279/0.01482, allocations: 401.7 kB / 281.2 MB, free: 9.309 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008975/0.01572, allocations: 371.3 kB / 281.6 MB, free: 8.945 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001233/0.01695, allocations: 0.9235 MB / 282.5 MB, free: 8.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00052/0.01747, allocations: 225.2 kB / 282.7 MB, free: 7.793 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008148/0.01829, allocations: 0.5224 MB / 283.2 MB, free: 7.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005749/0.01886, allocations: 391 kB / 283.6 MB, free: 6.887 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001311/0.01899, allocations: 80 kB / 283.7 MB, free: 6.809 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002068/0.0192, allocations: 115.9 kB / 283.8 MB, free: 6.695 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004705/0.01967, allocations: 0.5961 MB / 284.4 MB, free: 6.098 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006249/0.02029, allocations: 438.7 kB / 284.8 MB, free: 5.668 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001723/0.02202, allocations: 1.195 MB / 286 MB, free: 4.469 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.02202, allocations: 4 kB / 286 MB, free: 4.465 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.02202, allocations: 4 kB / 286 MB, free: 4.461 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.157e-05/0.02205, allocations: 7.922 kB / 286 MB, free: 4.453 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.003368/0.02542, allocations: 2.223 MB / 288.3 MB, free: 2.184 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.02547, allocations: 8.031 kB / 288.3 MB, free: 2.176 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003285/0.02579, allocations: 235.7 kB / 288.5 MB, free: 1.945 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001771/0.02756, allocations: 1.047 MB / 289.5 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001228/0.02769, allocations: 92.97 kB / 289.6 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.452e-05/0.02778, allocations: 59.94 kB / 289.7 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1417/0.1694, allocations: 0.7231 MB / 290.4 MB, free: 24.22 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/0.1695, allocations: 0.5625 kB / 290.4 MB, free: 24.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.657e-05/0.1695, allocations: 22.42 kB / 290.4 MB, free: 24.22 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.1695, allocations: 11.47 kB / 290.4 MB, free: 24.22 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004389/0.17, allocations: 172.6 kB / 290.6 MB, free: 24.22 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003771/0.1738, allocations: 3.005 MB / 293.6 MB, free: 22.97 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004781/0.1742, allocations: 217.1 kB / 293.8 MB, free: 22.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002226/0.1745, allocations: 105.4 kB / 293.9 MB, free: 22.92 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.591e-05/0.1745, allocations: 4.375 kB / 293.9 MB, free: 22.92 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.1745, allocations: 47.5 kB / 294 MB, free: 22.88 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.973e-06/0.1745, allocations: 1.094 kB / 294 MB, free: 22.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.000863/0.1754, allocations: 425.8 kB / 294.4 MB, free: 22.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.745e-05/0.1754, allocations: 209.8 kB / 294.6 MB, free: 22.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002585/0.178, allocations: 2.022 MB / 296.6 MB, free: 22.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.178, allocations: 32.42 kB / 296.7 MB, free: 22.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006619/0.1787, allocations: 0.971 MB / 297.6 MB, free: 21.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.333e-05/0.1788, allocations: 81.59 kB / 297.7 MB, free: 21.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.1789, allocations: 75.16 kB / 297.8 MB, free: 21.2 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.127e-05/0.1789, allocations: 496.1 kB / 298.3 MB, free: 20.71 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.906e-05/0.179, allocations: 44.77 kB / 298.3 MB, free: 20.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.1792, allocations: 419 kB / 298.7 MB, free: 20.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002385/0.1795, allocations: 273.1 kB / 299 MB, free: 20 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.1795, allocations: 1.094 kB / 299 MB, free: 20 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006863/0.1802, allocations: 433.3 kB / 299.4 MB, free: 19.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.985e-05/0.1802, allocations: 11.34 kB / 299.4 MB, free: 19.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.1802, allocations: 4.062 kB / 299.4 MB, free: 19.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002967/0.1805, allocations: 42.12 kB / 299.5 MB, free: 19.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.1807, allocations: 69.44 kB / 299.5 MB, free: 19.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001058/0.1818, allocations: 2.09 MB / 301.6 MB, free: 17.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/0.182, allocations: 50.16 kB / 301.7 MB, free: 17.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.646e-05/0.182, allocations: 17.2 kB / 301.7 MB, free: 17.76 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.00017/0.1822, allocations: 176.7 kB / 301.9 MB, free: 17.59 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001595/0.1823, allocations: 177.3 kB / 302 MB, free: 17.49 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004851/0.1828, allocations: 320.6 kB / 302.4 MB, free: 17.35 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1828, allocations: 3.906 kB / 302.4 MB, free: 17.35 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.295e-06/0.1828, allocations: 0.5625 kB / 302.4 MB, free: 17.35 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.1828, allocations: 1.312 kB / 302.4 MB, free: 17.35 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001883/0.1847, allocations: 1.527 MB / 303.9 MB, free: 16.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1847, allocations: 1.875 kB / 303.9 MB, free: 16.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.1849, allocations: 38.05 kB / 303.9 MB, free: 16.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001265/0.185, allocations: 41.55 kB / 304 MB, free: 16.53 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/0.185, allocations: 7.125 kB / 304 MB, free: 16.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007354/0.1857, allocations: 2.043 MB / 306 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.1857, allocations: 3.938 kB / 306 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005988/0.1863, allocations: 0.5502 MB / 306.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003666/0.1867, allocations: 285.9 kB / 306.8 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.746e-05/0.1868, allocations: 5.75 kB / 306.9 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/0.187, allocations: 30.44 kB / 306.9 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.1871, allocations: 31.17 kB / 306.9 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.1871, allocations: 14.17 kB / 306.9 MB, free: 13.98 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001401/0.1885, allocations: 1.156 MB / 308.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1885, allocations: 1.562 kB / 308.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005539/0.189, allocations: 204.7 kB / 308.3 MB, free: 13.55 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.0007999/0.1898, allocations: 347 kB / 308.6 MB, free: 13.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004704/0.1903, allocations: 359.1 kB / 309 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1903, allocations: 0 / 309 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.1905, allocations: 257.7 kB / 309.2 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005852/0.1911, allocations: 213.5 kB / 309.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002894/0.194, allocations: 2.385 MB / 311.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002158/0.1942, allocations: 346.7 kB / 312.2 MB, free: 11.57 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002245/0.1944, allocations: 155.2 kB / 312.3 MB, free: 11.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.1945, allocations: 76.5 kB / 312.4 MB, free: 11.54 MB / 266.7 MB Notification: Performance of SimCode: time 1.222e-06/0.1945, allocations: 0 / 312.4 MB, free: 11.54 MB / 266.7 MB Notification: Performance of Templates: time 0.01949/0.214, allocations: 15.58 MB / 328 MB, free: 12.43 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] 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","",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.351754292845726]