Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001532/0.001532, allocations: 112.9 kB / 19.17 MB, free: 3.871 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.001671/0.001671, allocations: 210.5 kB / 22.13 MB, free: 0.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.474/1.474, allocations: 230.4 MB / 255.4 MB, free: 15.02 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 71.84 kB / 374.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1174, allocations: 53.31 MB / 428 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.2464/0.3639, allocations: 6.081 MB / 434.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003694/0.3676, allocations: 2.324 MB / 436.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005562/0.3681, allocations: 18 kB / 436.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001512/0.3696, allocations: 0.622 MB / 437.1 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009978/0.3706, allocations: 451 kB / 437.5 MB, free: 7.195 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009797/0.3716, allocations: 406.2 kB / 437.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001717/0.3733, allocations: 1.303 MB / 439.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005975/0.3739, allocations: 352.6 kB / 439.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000858/0.3748, allocations: 0.4918 MB / 440.1 MB, free: 6.328 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009118/0.3757, allocations: 0.6085 MB / 440.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001872/0.3759, allocations: 116.2 kB / 440.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003966/0.3763, allocations: 177.8 kB / 441 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005971/0.3769, allocations: 0.6539 MB / 441.6 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007884/0.3777, allocations: 0.8918 MB / 442.5 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003458/0.3811, allocations: 2.645 MB / 445.2 MB, free: 4.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.3811, allocations: 1.156 kB / 445.2 MB, free: 4.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3811, allocations: 0 / 445.2 MB, free: 4.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.838e-05/0.3812, allocations: 0 / 445.2 MB, free: 4.156 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.005007/0.3862, allocations: 2.441 MB / 447.6 MB, free: 2.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.3863, allocations: 9.75 kB / 447.6 MB, free: 2.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004454/0.3867, allocations: 224.8 kB / 447.8 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002845/0.3895, allocations: 1.697 MB / 449.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/0.3897, allocations: 104.4 kB / 449.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.3898, allocations: 68.89 kB / 449.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.3913, allocations: 0.8266 MB / 450.5 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.3914, allocations: 0 / 450.5 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.801e-05/0.3914, allocations: 28.31 kB / 450.5 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.454e-05/0.3914, allocations: 16.36 kB / 450.6 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.3925, allocations: 0.5471 MB / 451.1 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00827/0.4008, allocations: 3.997 MB / 455.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.4023, allocations: 0.4945 MB / 455.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007854/0.4031, allocations: 347.3 kB / 455.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.647e-05/0.4031, allocations: 4.812 kB / 455.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.353e-05/0.4031, allocations: 38.12 kB / 456 MB, free: 14.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.685e-06/0.4031, allocations: 0 / 456 MB, free: 14.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002826/0.406, allocations: 0.9511 MB / 456.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001793/0.4061, allocations: 263 kB / 457.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005466/0.4116, allocations: 3.165 MB / 460.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001101/0.4117, allocations: 36.64 kB / 460.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009455/0.4127, allocations: 0.8629 MB / 461.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/0.4128, allocations: 124.7 kB / 461.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002271/0.413, allocations: 96.7 kB / 461.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002437/0.4133, allocations: 323.3 kB / 461.8 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005095/0.4138, allocations: 210.4 kB / 462 MB, free: 10.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000745/0.4145, allocations: 403.7 kB / 462.4 MB, free: 10.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.4156, allocations: 0.5196 MB / 462.9 MB, free: 9.672 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.4156, allocations: 2.281 kB / 462.9 MB, free: 9.672 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002006/0.4176, allocations: 0.7822 MB / 463.7 MB, free: 9.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.4176, allocations: 9.781 kB / 463.7 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.4176, allocations: 4.625 kB / 463.7 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003545/0.418, allocations: 73.61 kB / 463.8 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000477/0.4184, allocations: 117.5 kB / 463.9 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002088/0.4205, allocations: 1.795 MB / 465.7 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.4216, allocations: 77.25 kB / 465.8 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.072e-05/0.4216, allocations: 19.03 kB / 465.8 MB, free: 7.391 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.001459/0.4231, allocations: 0.6531 MB / 466.4 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004788/0.4235, allocations: 196.1 kB / 466.6 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000449/0.424, allocations: 219.9 kB / 466.8 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.424, allocations: 4 kB / 466.8 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.424, allocations: 3.984 kB / 466.8 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.424, allocations: 1.375 kB / 466.8 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004156/0.4282, allocations: 2.153 MB / 469 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.4282, allocations: 5.047 kB / 469 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004031/0.4286, allocations: 84.73 kB / 469.1 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002109/0.4288, allocations: 61.81 kB / 469.1 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/0.4288, allocations: 7.781 kB / 469.2 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002036/0.4308, allocations: 1.747 MB / 470.9 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.4309, allocations: 7.891 kB / 470.9 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002271/0.4331, allocations: 0.9793 MB / 471.9 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009523/0.4341, allocations: 451.8 kB / 472.3 MB, free: 2.645 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002003/0.4343, allocations: 9.781 kB / 472.3 MB, free: 2.641 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005764/0.4349, allocations: 53.45 kB / 472.4 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.435, allocations: 40.09 kB / 472.4 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-05/0.435, allocations: 12.03 kB / 472.4 MB, free: 2.594 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003921/0.4389, allocations: 2.262 MB / 474.7 MB, free: 1.109 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4389, allocations: 0 / 474.7 MB, free: 1.109 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001143/0.4401, allocations: 255.6 kB / 475 MB, free: 0.8594 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.001781/0.4419, allocations: 487 kB / 475.4 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.4434, allocations: 0.5846 MB / 476 MB, free: 20 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.4434, allocations: 4 kB / 476 MB, free: 16 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007169/0.4441, allocations: 351.3 kB / 476.4 MB, free: 15.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/0.4456, allocations: 283.8 kB / 476.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007087/0.4527, allocations: 3.739 MB / 480.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001394/0.4541, allocations: 1.489 MB / 481.9 MB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006155/0.4547, allocations: 91.44 kB / 482 MB, free: 9.98 MB / 382.1 MB Notification: Performance of SimCode: time 1.833e-06/0.4547, allocations: 0 / 482 MB, free: 9.98 MB / 382.1 MB Notification: Performance of Templates: time 0.05001/0.5047, allocations: 29.75 MB / 0.4997 GB, free: 12.28 MB / 414.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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.604352810885757]