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.001364/0.001364, allocations: 78.88 kB / 20.68 MB, free: 1.039 MB / 14.72 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.001375/0.001375, allocations: 155 kB / 23.94 MB, free: 4.176 MB / 14.72 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.527/1.527, allocations: 173.3 MB / 200.4 MB, free: 12.89 MB / 190.1 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.323e-06/1.323e-06, allocations: 0 / 318.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.337e-05/2.47e-05, allocations: 6.219 kB / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005475/0.005499, allocations: 4.902 MB / 323.8 MB, free: 312 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003197/0.008696, allocations: 1.642 MB / 325.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004495/0.009146, allocations: 18.47 kB / 325.5 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.01045, allocations: 0.5085 MB / 326 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008187/0.01126, allocations: 367.2 kB / 326.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009502/0.01221, allocations: 376.6 kB / 326.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00121/0.01342, allocations: 0.9178 MB / 327.6 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004479/0.01387, allocations: 222.9 kB / 327.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007576/0.01463, allocations: 0.5207 MB / 328.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000552/0.01518, allocations: 383.4 kB / 328.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.0153, allocations: 82.16 kB / 328.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002588/0.01556, allocations: 118.8 kB / 328.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007132/0.01627, allocations: 0.586 MB / 329.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005403/0.01681, allocations: 436.2 kB / 329.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002559/0.01937, allocations: 2.062 MB / 332 MB, free: 12.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.01937, allocations: 0 / 332 MB, free: 12.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.01938, allocations: 0 / 332 MB, free: 12.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.761e-05/0.01941, allocations: 1.281 kB / 332 MB, free: 12.04 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.004495/0.02391, allocations: 2.037 MB / 334 MB, free: 10.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.02396, allocations: 9.438 kB / 334.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004165/0.02438, allocations: 207.2 kB / 334.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002674/0.02705, allocations: 1.44 MB / 335.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.02722, allocations: 94.67 kB / 335.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.02733, allocations: 54.62 kB / 335.8 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.02885, allocations: 0.836 MB / 336.7 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.02887, allocations: 3.938 kB / 336.7 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.904e-05/0.02893, allocations: 18.84 kB / 336.7 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.02894, allocations: 10.88 kB / 336.7 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007796/0.02972, allocations: 351.1 kB / 337 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006388/0.03611, allocations: 2.825 MB / 339.9 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.03733, allocations: 361.9 kB / 340.2 MB, free: 6.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005146/0.03784, allocations: 172.7 kB / 340.4 MB, free: 5.898 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/0.03788, allocations: 4 kB / 340.4 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.842e-05/0.03793, allocations: 38.56 kB / 340.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.164e-06/0.03793, allocations: 0 / 340.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002364/0.04029, allocations: 0.6259 MB / 341.1 MB, free: 5.211 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001522/0.04045, allocations: 213.6 kB / 341.3 MB, free: 4.953 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004947/0.04539, allocations: 2.852 MB / 344.1 MB, free: 2.047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.0455, allocations: 33.7 kB / 344.2 MB, free: 2.008 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000887/0.04639, allocations: 0.7934 MB / 345 MB, free: 1.211 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.04649, allocations: 71.39 kB / 345 MB, free: 1.141 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.04664, allocations: 69.97 kB / 345.1 MB, free: 1.066 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.0468, allocations: 322 kB / 345.4 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004073/0.04721, allocations: 124.5 kB / 345.5 MB, free: 0.625 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006109/0.04782, allocations: 443.1 kB / 346 MB, free: 88 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008155/0.04864, allocations: 357.1 kB / 346.3 MB, free: 15.69 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.04864, allocations: 0 / 346.3 MB, free: 15.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001568/0.05021, allocations: 0.5635 MB / 346.9 MB, free: 15.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.05023, allocations: 7.938 kB / 346.9 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.05025, allocations: 4 kB / 346.9 MB, free: 15.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003393/0.05059, allocations: 64.75 kB / 346.9 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003184/0.05091, allocations: 76.08 kB / 347 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001904/0.05281, allocations: 1.602 MB / 348.6 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007436/0.05355, allocations: 63.7 kB / 348.7 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.929e-05/0.05358, allocations: 12 kB / 348.7 MB, free: 13.18 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.001106/0.05469, allocations: 0.5718 MB / 349.3 MB, free: 12.6 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002754/0.05496, allocations: 166.9 kB / 349.4 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001359/0.05632, allocations: 0.5091 MB / 349.9 MB, free: 11.92 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.05633, allocations: 4 kB / 349.9 MB, free: 11.92 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-06/0.05633, allocations: 0 / 349.9 MB, free: 11.92 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.05634, allocations: 3.984 kB / 349.9 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002858/0.0592, allocations: 1.422 MB / 351.4 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.0592, allocations: 0 / 351.4 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002558/0.05946, allocations: 47.91 kB / 351.4 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001788/0.05963, allocations: 44.83 kB / 351.5 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.05966, allocations: 8 kB / 351.5 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001689/0.06135, allocations: 1.547 MB / 353 MB, free: 8.695 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.06135, allocations: 0 / 353 MB, free: 8.695 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.06328, allocations: 0.7078 MB / 353.7 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007268/0.06401, allocations: 306.8 kB / 354 MB, free: 7.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.06416, allocations: 4 kB / 354 MB, free: 7.656 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004693/0.06463, allocations: 51.89 kB / 354.1 MB, free: 7.605 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.06474, allocations: 35.94 kB / 354.1 MB, free: 7.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.938e-05/0.06476, allocations: 4 kB / 354.1 MB, free: 7.566 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003305/0.06806, allocations: 2.031 MB / 356.1 MB, free: 5.512 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.06806, allocations: 0 / 356.1 MB, free: 5.512 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001015/0.06908, allocations: 207.6 kB / 356.3 MB, free: 5.309 MB / 318.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.001485/0.07056, allocations: 391.9 kB / 356.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001234/0.07179, allocations: 429.7 kB / 357.2 MB, free: 4.641 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.0718, allocations: 0 / 357.2 MB, free: 4.641 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006224/0.07242, allocations: 266.7 kB / 357.4 MB, free: 4.367 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.0736, allocations: 198.4 kB / 357.6 MB, free: 4.172 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00611/0.07971, allocations: 3.033 MB / 360.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009552/0.08067, allocations: 0.7664 MB / 361.4 MB, free: 300 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006606/0.08133, allocations: 246.2 kB / 361.6 MB, free: 48 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002561/0.08158, allocations: 76.55 kB / 361.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of SimCode: time 1.092e-06/0.08158, allocations: 0 / 361.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of Templates: time 0.03496/0.1165, allocations: 15.55 MB / 377.3 MB, free: 0.5469 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] 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: 4.939349222928286]