Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001529/0.001529, allocations: 111.9 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001893/0.001893, allocations: 208.9 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 230.2 MB / 255.1 MB, free: 15.21 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 59.91 kB / 374.5 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1051, allocations: 53.32 MB / 427.8 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.2259/0.331, allocations: 6.086 MB / 433.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003762/0.3347, allocations: 2.322 MB / 436.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000602/0.3353, allocations: 13.97 kB / 436.2 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001463/0.3368, allocations: 0.6264 MB / 436.9 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008178/0.3376, allocations: 454.1 kB / 437.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008746/0.3385, allocations: 399 kB / 437.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001628/0.3401, allocations: 1.31 MB / 439 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005423/0.3407, allocations: 346 kB / 439.4 MB, free: 6.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000675/0.3413, allocations: 0.4902 MB / 439.8 MB, free: 6.461 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007732/0.3421, allocations: 0.6125 MB / 440.5 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001586/0.3423, allocations: 117.1 kB / 440.6 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003603/0.3426, allocations: 173.8 kB / 440.7 MB, free: 6.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005351/0.3432, allocations: 0.6526 MB / 441.4 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007043/0.3439, allocations: 0.8888 MB / 442.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003046/0.3469, allocations: 2.646 MB / 444.9 MB, free: 4.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.289e-06/0.3469, allocations: 4 kB / 444.9 MB, free: 4.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3469, allocations: 1.156 kB / 444.9 MB, free: 4.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.041e-05/0.347, allocations: 0 / 444.9 MB, free: 4.289 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.005869/0.3529, allocations: 2.448 MB / 447.4 MB, free: 2.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.3529, allocations: 10.06 kB / 447.4 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005153/0.3534, allocations: 224.9 kB / 447.6 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00274/0.3562, allocations: 1.69 MB / 449.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.3563, allocations: 112.5 kB / 449.4 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.584e-05/0.3564, allocations: 64.22 kB / 449.5 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/0.3579, allocations: 0.827 MB / 450.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.358, allocations: 0.6562 kB / 450.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.98e-05/0.358, allocations: 28.58 kB / 450.3 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.774e-05/0.3581, allocations: 14.59 kB / 450.3 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.3592, allocations: 0.5444 MB / 450.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007584/0.3668, allocations: 3.994 MB / 454.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001408/0.3682, allocations: 0.5099 MB / 455.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008062/0.369, allocations: 343.4 kB / 455.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.369, allocations: 4.125 kB / 455.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.874e-05/0.3691, allocations: 42.84 kB / 455.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.825e-06/0.3691, allocations: 4 kB / 455.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.00292/0.372, allocations: 0.9397 MB / 456.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001802/0.3722, allocations: 273.8 kB / 457 MB, free: 13.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005702/0.3779, allocations: 3.158 MB / 460.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001356/0.378, allocations: 31.98 kB / 460.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009901/0.379, allocations: 0.8633 MB / 461 MB, free: 11.1 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000163/0.3792, allocations: 133.3 kB / 461.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/0.3794, allocations: 92.48 kB / 461.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.3796, allocations: 326.5 kB / 461.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005381/0.3801, allocations: 210.4 kB / 461.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007551/0.3808, allocations: 392.3 kB / 462.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.3819, allocations: 0.5203 MB / 462.7 MB, free: 9.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.3819, allocations: 1.156 kB / 462.7 MB, free: 9.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002243/0.3842, allocations: 0.7869 MB / 463.5 MB, free: 9.395 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.3842, allocations: 13.53 kB / 463.5 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.3842, allocations: 3.812 kB / 463.5 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003633/0.3846, allocations: 74.31 kB / 463.6 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004896/0.385, allocations: 109.7 kB / 463.7 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002021/0.3871, allocations: 1.792 MB / 465.5 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/0.3882, allocations: 74.44 kB / 465.5 MB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.444e-05/0.3883, allocations: 18.16 kB / 465.5 MB, free: 7.539 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.001346/0.3896, allocations: 0.6584 MB / 466.2 MB, free: 7.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006571/0.3903, allocations: 196.3 kB / 466.4 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005274/0.3908, allocations: 219.2 kB / 466.6 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.3908, allocations: 8.562 kB / 466.6 MB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.3908, allocations: 0 / 466.6 MB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.3908, allocations: 7.422 kB / 466.6 MB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004429/0.3953, allocations: 2.157 MB / 468.8 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3953, allocations: 2.906 kB / 468.8 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004198/0.3957, allocations: 84.16 kB / 468.9 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002248/0.3959, allocations: 57.36 kB / 468.9 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.856e-05/0.3959, allocations: 17.28 kB / 468.9 MB, free: 5.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001786/0.3977, allocations: 1.741 MB / 470.7 MB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.3977, allocations: 5.906 kB / 470.7 MB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002492/0.4002, allocations: 0.9874 MB / 471.7 MB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001129/0.4014, allocations: 449.2 kB / 472.1 MB, free: 2.785 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002024/0.4016, allocations: 12.11 kB / 472.1 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005892/0.4022, allocations: 48.83 kB / 472.2 MB, free: 2.762 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.4023, allocations: 44.92 kB / 472.2 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.103e-05/0.4023, allocations: 15.33 kB / 472.2 MB, free: 2.727 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004005/0.4063, allocations: 2.257 MB / 474.5 MB, free: 1.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4063, allocations: 0 / 474.5 MB, free: 1.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001425/0.4077, allocations: 255.6 kB / 474.7 MB, free: 1.02 MB / 366.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.001826/0.4096, allocations: 476.1 kB / 475.2 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.4111, allocations: 0.5805 MB / 475.8 MB, free: 172 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.4111, allocations: 0.75 kB / 475.8 MB, free: 172 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007296/0.4118, allocations: 354.4 kB / 476.1 MB, free: 15.81 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001784/0.4136, allocations: 286.1 kB / 476.4 MB, free: 15.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008375/0.422, allocations: 3.74 MB / 480.2 MB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001579/0.4236, allocations: 1.493 MB / 481.6 MB, free: 10.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007225/0.4243, allocations: 95.44 kB / 481.7 MB, free: 10.12 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4243, allocations: 0 / 481.7 MB, free: 10.12 MB / 382.1 MB Notification: Performance of Templates: time 0.0472/0.4715, allocations: 29.73 MB / 0.4995 GB, free: 12.41 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 9.69764030794613]