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 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001449/0.001449, allocations: 112.6 kB / 18.78 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001402/0.001402, allocations: 215.9 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.581/1.581, allocations: 230.4 MB / 251.1 MB, free: 8.426 MB / 206.1 MB 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.001949/0.001949, allocations: 67.83 kB / 368.9 MB, free: 6.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2677, allocations: 53.31 MB / 422.2 MB, free: 7.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008088/0.2758, allocations: 6.097 MB / 428.3 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003858/0.2797, allocations: 2.306 MB / 430.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004846/0.2802, allocations: 23.88 kB / 430.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001399/0.2816, allocations: 0.6341 MB / 431.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009381/0.2825, allocations: 445.7 kB / 431.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009799/0.2835, allocations: 417.6 kB / 432.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001654/0.2851, allocations: 1.306 MB / 433.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005881/0.2857, allocations: 337.9 kB / 433.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006471/0.2864, allocations: 0.4945 MB / 434.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007721/0.2872, allocations: 0.6071 MB / 434.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001599/0.2873, allocations: 116 kB / 435 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000301/0.2876, allocations: 172 kB / 435.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005469/0.2882, allocations: 0.6622 MB / 435.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008365/0.289, allocations: 0.8816 MB / 436.7 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002844/0.2918, allocations: 2.642 MB / 439.4 MB, free: 6.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2918, allocations: 0 / 439.4 MB, free: 6.656 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.105e-06/0.2919, allocations: 7.938 kB / 439.4 MB, free: 6.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.52e-05/0.2919, allocations: 4 kB / 439.4 MB, free: 6.645 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.004054/0.2959, allocations: 2.44 MB / 441.8 MB, free: 4.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.296, allocations: 12.03 kB / 441.8 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003568/0.2963, allocations: 227.5 kB / 442 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002765/0.2991, allocations: 1.701 MB / 443.7 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.2992, allocations: 104.7 kB / 443.8 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.2993, allocations: 63.95 kB / 443.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/0.3009, allocations: 0.8181 MB / 444.7 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.3009, allocations: 3.938 kB / 444.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-05/0.301, allocations: 35.98 kB / 444.8 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.983e-05/0.301, allocations: 16 kB / 444.8 MB, free: 1.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.3022, allocations: 0.5399 MB / 445.3 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006795/0.309, allocations: 3.998 MB / 449.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/0.3104, allocations: 0.4988 MB / 449.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008438/0.3112, allocations: 349.1 kB / 450.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.045e-05/0.3113, allocations: 4.281 kB / 450.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.528e-05/0.3113, allocations: 42.83 kB / 450.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 7.123e-06/0.3113, allocations: 3.984 kB / 450.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002625/0.314, allocations: 0.95 MB / 451.2 MB, free: 10.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000187/0.3142, allocations: 261 kB / 451.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004967/0.3191, allocations: 3.16 MB / 454.6 MB, free: 6.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.459e-05/0.3192, allocations: 33.7 kB / 454.6 MB, free: 6.941 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008965/0.3201, allocations: 0.8615 MB / 455.5 MB, free: 6.074 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.3202, allocations: 130.9 kB / 455.6 MB, free: 5.945 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002002/0.3204, allocations: 98.2 kB / 455.7 MB, free: 5.844 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.3206, allocations: 318 kB / 456 MB, free: 5.527 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004879/0.3211, allocations: 213 kB / 456.2 MB, free: 5.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006634/0.3218, allocations: 393.9 kB / 456.6 MB, free: 4.863 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009973/0.3228, allocations: 0.5244 MB / 457.1 MB, free: 4.289 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.3228, allocations: 0 / 457.1 MB, free: 4.289 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001746/0.3245, allocations: 0.7895 MB / 457.9 MB, free: 3.488 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.3245, allocations: 8 kB / 457.9 MB, free: 3.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.3246, allocations: 4 kB / 457.9 MB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003235/0.3249, allocations: 68.81 kB / 458 MB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004583/0.3253, allocations: 116 kB / 458.1 MB, free: 3.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001932/0.3273, allocations: 1.787 MB / 459.9 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006908/0.328, allocations: 79.62 kB / 460 MB, free: 1.293 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.5e-05/0.328, allocations: 20 kB / 460 MB, free: 1.273 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.001178/0.3292, allocations: 0.6537 MB / 460.6 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002963/0.3295, allocations: 194.7 kB / 460.8 MB, free: 428 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000328/0.3298, allocations: 222.6 kB / 461 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.3298, allocations: 7.938 kB / 461.1 MB, free: 192 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3298, allocations: 0 / 461.1 MB, free: 192 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3298, allocations: 3.984 kB / 461.1 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003627/0.3334, allocations: 2.151 MB / 463.2 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.3334, allocations: 4 kB / 463.2 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003965/0.3338, allocations: 87.88 kB / 463.3 MB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002095/0.3341, allocations: 68.88 kB / 463.4 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.973e-05/0.3341, allocations: 8 kB / 463.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001805/0.3359, allocations: 1.748 MB / 465.1 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3359, allocations: 0 / 465.1 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002162/0.338, allocations: 0.9882 MB / 466.1 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008123/0.3389, allocations: 447.7 kB / 466.5 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/0.339, allocations: 15.98 kB / 466.6 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005338/0.3396, allocations: 51.95 kB / 466.6 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.3397, allocations: 35.95 kB / 466.6 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.3397, allocations: 15.98 kB / 466.7 MB, free: 10.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003531/0.3432, allocations: 2.252 MB / 468.9 MB, free: 8.047 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3432, allocations: 7.938 kB / 468.9 MB, free: 8.039 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001405/0.3447, allocations: 267.5 kB / 469.2 MB, free: 7.777 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.001924/0.3466, allocations: 466.3 kB / 469.6 MB, free: 7.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.3482, allocations: 0.5963 MB / 470.2 MB, free: 6.891 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.3482, allocations: 0 / 470.2 MB, free: 6.891 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007115/0.3489, allocations: 351.1 kB / 470.6 MB, free: 6.535 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001598/0.3505, allocations: 286.3 kB / 470.9 MB, free: 6.254 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006386/0.3569, allocations: 3.651 MB / 474.5 MB, free: 2.555 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001299/0.3582, allocations: 1.489 MB / 476 MB, free: 1.035 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007681/0.359, allocations: 303.1 kB / 476.3 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002497/0.3592, allocations: 95.44 kB / 476.4 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of SimCode: time 1.143e-06/0.3592, allocations: 0 / 476.4 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of Templates: time 0.03494/0.3942, allocations: 17.58 MB / 494 MB, free: 15.21 MB / 414.1 MB 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/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-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches