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.001448/0.001448, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001572/0.001572, allocations: 205.4 kB / 23.73 MB, free: 4.379 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.511/1.511, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.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 0.001559/0.001559, allocations: 51.92 kB / 378.2 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3172, allocations: 53.35 MB / 431.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008379/0.3255, allocations: 4.977 MB / 436.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00416/0.3297, allocations: 1.795 MB / 438.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008122/0.3305, allocations: 19.88 kB / 438.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001508/0.332, allocations: 0.5057 MB / 438.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00129/0.3333, allocations: 394 kB / 439.2 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001195/0.3345, allocations: 376.6 kB / 439.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001712/0.3362, allocations: 0.8926 MB / 440.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006215/0.3368, allocations: 237.3 kB / 440.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007761/0.3376, allocations: 378.7 kB / 441.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008405/0.3385, allocations: 462.4 kB / 441.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001869/0.3386, allocations: 83.94 kB / 441.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003155/0.339, allocations: 116 kB / 441.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006525/0.3396, allocations: 0.596 MB / 442.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001022/0.3406, allocations: 0.5357 MB / 442.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002789/0.3434, allocations: 2.152 MB / 445 MB, free: 9.188 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.3434, allocations: 4 kB / 445 MB, free: 9.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3434, allocations: 0 / 445 MB, free: 9.184 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.39e-05/0.3435, allocations: 0 / 445 MB, free: 9.184 MB / 350.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.004133/0.3476, allocations: 2.081 MB / 447.1 MB, free: 7.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.3476, allocations: 8.031 kB / 447.1 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003199/0.348, allocations: 195.7 kB / 447.3 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002662/0.3506, allocations: 1.463 MB / 448.8 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001387/0.3508, allocations: 88.41 kB / 448.9 MB, free: 5.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.861e-05/0.3509, allocations: 48 kB / 448.9 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.3522, allocations: 0.8442 MB / 449.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.3522, allocations: 0 / 449.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.298e-05/0.3523, allocations: 20 kB / 449.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.3523, allocations: 12 kB / 449.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007512/0.353, allocations: 343.7 kB / 450.1 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004976/0.358, allocations: 2.842 MB / 453 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.3592, allocations: 361 kB / 453.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004796/0.3597, allocations: 172.7 kB / 453.5 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/0.3597, allocations: 4 kB / 453.5 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.085e-05/0.3598, allocations: 38.56 kB / 453.5 MB, free: 388 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.615e-06/0.3598, allocations: 0 / 453.5 MB, free: 388 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002155/0.3619, allocations: 0.6146 MB / 454.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001961/0.3621, allocations: 217.5 kB / 454.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00447/0.3666, allocations: 2.872 MB / 457.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.849e-05/0.3667, allocations: 33.64 kB / 457.3 MB, free: 12.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008363/0.3675, allocations: 0.8013 MB / 458.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.389e-05/0.3676, allocations: 79.38 kB / 458.1 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001581/0.3678, allocations: 69.98 kB / 458.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.3679, allocations: 318 kB / 458.5 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003786/0.3683, allocations: 124.6 kB / 458.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006037/0.3689, allocations: 446.9 kB / 459.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007906/0.3697, allocations: 355.9 kB / 459.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.3697, allocations: 8 kB / 459.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001375/0.3711, allocations: 0.5594 MB / 460 MB, free: 9.621 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.3711, allocations: 12.09 kB / 460 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.3711, allocations: 4 kB / 460 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003144/0.3714, allocations: 60.75 kB / 460.1 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003086/0.3718, allocations: 75.89 kB / 460.1 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001896/0.3737, allocations: 1.586 MB / 461.7 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005546/0.3742, allocations: 63.7 kB / 461.8 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/0.3742, allocations: 12 kB / 461.8 MB, free: 7.707 MB / 366.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.0008674/0.3751, allocations: 0.5836 MB / 462.4 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002399/0.3753, allocations: 170.8 kB / 462.5 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00127/0.3766, allocations: 0.5048 MB / 463.1 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.3766, allocations: 4 kB / 463.1 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.3766, allocations: 128 / 463.1 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3766, allocations: 8 kB / 463.1 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002945/0.3796, allocations: 1.419 MB / 464.5 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3796, allocations: 0 / 464.5 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002472/0.3798, allocations: 43.91 kB / 464.5 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001834/0.38, allocations: 52.8 kB / 464.6 MB, free: 4.855 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.437e-05/0.38, allocations: 8 kB / 464.6 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001735/0.3818, allocations: 1.551 MB / 466.1 MB, free: 3.195 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3818, allocations: 0 / 466.1 MB, free: 3.195 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001691/0.3835, allocations: 0.7079 MB / 466.8 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000876/0.3843, allocations: 306.8 kB / 467.1 MB, free: 2.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.3845, allocations: 8 kB / 467.2 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004365/0.3849, allocations: 47.89 kB / 467.2 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.385, allocations: 31.94 kB / 467.2 MB, free: 2.074 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.179e-05/0.385, allocations: 8 kB / 467.2 MB, free: 2.066 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003127/0.3882, allocations: 2.039 MB / 469.3 MB, free: 4 kB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3882, allocations: 4 kB / 469.3 MB, free: 0 / 366.1 MB Notification: Performance of remove unused functions: time 0.000976/0.3891, allocations: 203.7 kB / 469.5 MB, free: 15.8 MB / 382.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.001598/0.3907, allocations: 387.3 kB / 469.9 MB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.392, allocations: 430.6 kB / 470.3 MB, free: 15.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.392, allocations: 0 / 470.3 MB, free: 15.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005765/0.3926, allocations: 273.9 kB / 470.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.3937, allocations: 191.9 kB / 470.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005849/0.3996, allocations: 3.049 MB / 473.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009944/0.4005, allocations: 0.7705 MB / 474.6 MB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006738/0.4012, allocations: 238.2 kB / 474.8 MB, free: 10.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002231/0.4014, allocations: 79.44 kB / 474.9 MB, free: 10.45 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4014, allocations: 0 / 474.9 MB, free: 10.45 MB / 382.1 MB Notification: Performance of Templates: time 0.03318/0.4346, allocations: 17.05 MB / 491.9 MB, free: 9.539 MB / 398.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: 5.1760670389048755]