Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001364/0.001364, 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.001484/0.001484, allocations: 207.1 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.519/1.519, allocations: 230.6 MB / 257.5 MB, free: 7.777 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_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 51.91 kB / 378.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3067, allocations: 53.37 MB / 431.6 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008654/0.3153, allocations: 5.406 MB / 437 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004631/0.3199, allocations: 2.178 MB / 439.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006413/0.3206, allocations: 19.88 kB / 439.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001789/0.3224, allocations: 0.6093 MB / 439.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001114/0.3235, allocations: 453.7 kB / 440.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.3245, allocations: 414.3 kB / 440.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001689/0.3262, allocations: 1.324 MB / 442 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005512/0.3267, allocations: 302.4 kB / 442.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006504/0.3274, allocations: 0.5022 MB / 442.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008125/0.3282, allocations: 0.6111 MB / 443.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001732/0.3284, allocations: 116 kB / 443.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003961/0.3288, allocations: 176 kB / 443.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006679/0.3294, allocations: 0.6544 MB / 444.3 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008256/0.3303, allocations: 0.6719 MB / 445 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003005/0.3333, allocations: 2.666 MB / 447.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.3333, allocations: 0 / 447.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3333, allocations: 0 / 447.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.124e-05/0.3333, allocations: 0 / 447.6 MB, free: 6.559 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004526/0.3379, allocations: 2.37 MB / 450 MB, free: 4.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.3379, allocations: 8.031 kB / 450 MB, free: 4.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004226/0.3383, allocations: 227.5 kB / 450.2 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003162/0.3415, allocations: 1.639 MB / 451.9 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002022/0.3417, allocations: 189.8 kB / 452.1 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.3418, allocations: 63.95 kB / 452.1 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00197/0.3438, allocations: 1.169 MB / 453.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.3438, allocations: 7.938 kB / 453.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.096e-05/0.3439, allocations: 24 kB / 453.3 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.907e-05/0.3439, allocations: 16 kB / 453.3 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.3451, allocations: 0.5438 MB / 453.9 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006722/0.3518, allocations: 3.502 MB / 457.4 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00139/0.3532, allocations: 0.4956 MB / 457.9 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007925/0.354, allocations: 345.2 kB / 458.2 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.354, allocations: 4.281 kB / 458.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/0.3541, allocations: 46.83 kB / 458.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.445e-06/0.3541, allocations: 0 / 458.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002552/0.3566, allocations: 0.8699 MB / 459.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001744/0.3568, allocations: 265 kB / 459.4 MB, free: 10.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004902/0.3617, allocations: 3.112 MB / 462.5 MB, free: 7.188 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001253/0.3618, allocations: 29.7 kB / 462.5 MB, free: 7.152 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009504/0.3628, allocations: 0.8728 MB / 463.4 MB, free: 6.273 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001539/0.3629, allocations: 127 kB / 463.5 MB, free: 6.148 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001866/0.3631, allocations: 98.09 kB / 463.6 MB, free: 6.047 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3633, allocations: 318 kB / 463.9 MB, free: 5.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005163/0.3638, allocations: 212.9 kB / 464.2 MB, free: 5.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007927/0.3646, allocations: 0.5966 MB / 464.8 MB, free: 4.801 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.3656, allocations: 0.5166 MB / 465.3 MB, free: 4.234 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.3657, allocations: 4 kB / 465.3 MB, free: 4.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001917/0.3676, allocations: 0.774 MB / 466 MB, free: 3.445 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.957e-05/0.3676, allocations: 16.03 kB / 466.1 MB, free: 3.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.3676, allocations: 4 kB / 466.1 MB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003422/0.368, allocations: 68.81 kB / 466.1 MB, free: 3.355 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005141/0.3685, allocations: 115.8 kB / 466.2 MB, free: 3.242 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002011/0.3705, allocations: 1.66 MB / 467.9 MB, free: 1.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00069/0.3712, allocations: 67.8 kB / 468 MB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.673e-05/0.3712, allocations: 20 kB / 468 MB, free: 1.395 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (51): * Single equations (assignments): 50 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.00103/0.3722, allocations: 0.6615 MB / 468.7 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003139/0.3726, allocations: 182.8 kB / 468.8 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003142/0.3729, allocations: 218 kB / 469 MB, free: 336 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3729, allocations: 4 kB / 469.1 MB, free: 332 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3729, allocations: 0 / 469.1 MB, free: 332 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.3729, allocations: 3.984 kB / 469.1 MB, free: 328 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003746/0.3766, allocations: 1.836 MB / 470.9 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.3766, allocations: 0 / 470.9 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000428/0.3771, allocations: 87.88 kB / 471 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002051/0.3773, allocations: 61 kB / 471 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.638e-05/0.3773, allocations: 12 kB / 471 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001693/0.379, allocations: 1.606 MB / 472.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.379, allocations: 0 / 472.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002029/0.381, allocations: 0.9842 MB / 473.6 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009878/0.382, allocations: 362.7 kB / 474 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/0.3822, allocations: 15.94 kB / 474 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005379/0.3827, allocations: 59.92 kB / 474.1 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.3828, allocations: 39.94 kB / 474.1 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.653e-05/0.3829, allocations: 8 kB / 474.1 MB, free: 11.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003194/0.386, allocations: 2.222 MB / 476.3 MB, free: 8.836 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.386, allocations: 0 / 476.3 MB, free: 8.836 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009567/0.387, allocations: 263.5 kB / 476.6 MB, free: 8.578 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,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 (29): * Single equations (assignments): 28 * 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 Backend phase and start with SimCode phase: time 0.001977/0.389, allocations: 0.4979 MB / 477.1 MB, free: 8.285 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001413/0.3904, allocations: 0.5846 MB / 477.7 MB, free: 7.688 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.3904, allocations: 0 / 477.7 MB, free: 7.688 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007049/0.3911, allocations: 359.3 kB / 478 MB, free: 7.324 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.3923, allocations: 260.2 kB / 478.3 MB, free: 7.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006236/0.3985, allocations: 3.623 MB / 481.9 MB, free: 3.402 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001163/0.3997, allocations: 0.9119 MB / 482.8 MB, free: 2.461 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007468/0.4004, allocations: 290.7 kB / 483.1 MB, free: 2.172 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000262/0.4007, allocations: 87.44 kB / 483.2 MB, free: 2.086 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4007, allocations: 0 / 483.2 MB, free: 2.086 MB / 382.1 MB Notification: Performance of Templates: time 0.03872/0.4394, allocations: 20.93 MB / 0.4923 GB, free: 13.35 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.2954528741538525]