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.001636/0.001636, allocations: 115.5 kB / 21.18 MB, free: 0.5898 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.001807/0.001807, allocations: 210.8 kB / 24.47 MB, free: 3.996 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.476/1.476, allocations: 230.5 MB / 258.1 MB, free: 8.141 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.001892/0.001892, allocations: 67.81 kB / 378.7 MB, free: 2.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2824, allocations: 53.32 MB / 432 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008406/0.2908, allocations: 6.116 MB / 438.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004219/0.295, allocations: 2.338 MB / 440.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005442/0.2956, allocations: 15.94 kB / 440.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001525/0.2971, allocations: 0.6224 MB / 441.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009733/0.2981, allocations: 461.6 kB / 441.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009126/0.299, allocations: 401.7 kB / 442 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001597/0.3006, allocations: 1.308 MB / 443.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005532/0.3012, allocations: 313.9 kB / 443.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000623/0.3018, allocations: 0.4906 MB / 444.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007787/0.3026, allocations: 0.6033 MB / 444.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001732/0.3027, allocations: 120 kB / 444.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003301/0.3031, allocations: 176 kB / 445 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005532/0.3036, allocations: 0.6544 MB / 445.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008501/0.3045, allocations: 0.8932 MB / 446.5 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002865/0.3073, allocations: 2.646 MB / 449.2 MB, free: 6.168 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3073, allocations: 4 kB / 449.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.3073, allocations: 0 / 449.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.33e-05/0.3074, allocations: 0 / 449.2 MB, free: 6.164 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.00435/0.3117, allocations: 2.433 MB / 451.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.3118, allocations: 12.03 kB / 451.6 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003711/0.3121, allocations: 231.5 kB / 451.8 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002881/0.315, allocations: 1.697 MB / 453.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.3151, allocations: 104.7 kB / 453.6 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.3152, allocations: 63.95 kB / 453.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/0.3168, allocations: 0.8297 MB / 454.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.3168, allocations: 4 kB / 454.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.097e-05/0.3169, allocations: 28 kB / 454.6 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.717e-05/0.3169, allocations: 16 kB / 454.6 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.318, allocations: 0.5399 MB / 455.1 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006515/0.3245, allocations: 4.005 MB / 459.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001332/0.3258, allocations: 0.505 MB / 459.6 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007859/0.3266, allocations: 341.2 kB / 460 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.3266, allocations: 4.281 kB / 460 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/0.3267, allocations: 38.84 kB / 460 MB, free: 10.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.165e-06/0.3267, allocations: 0 / 460 MB, free: 10.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002466/0.3291, allocations: 0.953 MB / 461 MB, free: 10 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001637/0.3293, allocations: 261 kB / 461.2 MB, free: 9.688 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004189/0.3335, allocations: 3.16 MB / 464.4 MB, free: 6.492 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.124e-05/0.3335, allocations: 37.7 kB / 464.4 MB, free: 6.449 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008399/0.3344, allocations: 0.8615 MB / 465.3 MB, free: 5.582 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.3345, allocations: 126.9 kB / 465.4 MB, free: 5.457 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001577/0.3347, allocations: 90.2 kB / 465.5 MB, free: 5.363 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.3348, allocations: 326 kB / 465.8 MB, free: 5.039 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004811/0.3353, allocations: 213 kB / 466 MB, free: 4.832 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006299/0.3359, allocations: 389.9 kB / 466.4 MB, free: 4.379 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009732/0.3369, allocations: 0.5243 MB / 466.9 MB, free: 3.805 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.3369, allocations: 4 kB / 466.9 MB, free: 3.801 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001597/0.3385, allocations: 0.7856 MB / 467.7 MB, free: 3.004 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.3385, allocations: 4 kB / 467.7 MB, free: 3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.3385, allocations: 4 kB / 467.7 MB, free: 2.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000296/0.3388, allocations: 65 kB / 467.8 MB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004696/0.3393, allocations: 119.8 kB / 467.9 MB, free: 2.812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001883/0.3412, allocations: 1.798 MB / 469.7 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000638/0.3418, allocations: 79.62 kB / 469.8 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.3419, allocations: 20 kB / 469.8 MB, free: 0.7812 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.000898/0.3428, allocations: 0.6537 MB / 470.4 MB, free: 120 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00027/0.343, allocations: 194.7 kB / 470.6 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002767/0.3433, allocations: 218.6 kB / 470.8 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.3433, allocations: 4 kB / 470.8 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3433, allocations: 0 / 470.8 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.3433, allocations: 15.97 kB / 470.9 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003651/0.347, allocations: 2.151 MB / 473 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.347, allocations: 0 / 473 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004001/0.3474, allocations: 87.81 kB / 473.1 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001954/0.3476, allocations: 60.75 kB / 473.2 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.251e-05/0.3476, allocations: 12 kB / 473.2 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001667/0.3493, allocations: 1.748 MB / 474.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3493, allocations: 0 / 474.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.3512, allocations: 0.9847 MB / 475.9 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008837/0.352, allocations: 455.7 kB / 476.3 MB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.3522, allocations: 15.98 kB / 476.4 MB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005199/0.3527, allocations: 51.95 kB / 476.4 MB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.3528, allocations: 39.94 kB / 476.5 MB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/0.3529, allocations: 8 kB / 476.5 MB, free: 9.824 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003021/0.3559, allocations: 2.259 MB / 478.7 MB, free: 7.547 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3559, allocations: 0 / 478.7 MB, free: 7.547 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008087/0.3567, allocations: 267.5 kB / 479 MB, free: 7.285 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.001639/0.3583, allocations: 475.6 kB / 479.4 MB, free: 7.008 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.3597, allocations: 0.5886 MB / 480 MB, free: 6.406 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.3597, allocations: 0 / 480 MB, free: 6.406 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006763/0.3603, allocations: 351.1 kB / 480.4 MB, free: 6.051 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/0.3615, allocations: 296.5 kB / 480.7 MB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005796/0.3673, allocations: 3.736 MB / 484.4 MB, free: 1.977 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001211/0.3685, allocations: 1.485 MB / 485.9 MB, free: 472 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003016/0.3688, allocations: 91.44 kB / 486 MB, free: 380 kB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3688, allocations: 4 kB / 486 MB, free: 376 kB / 382.1 MB Notification: Performance of Templates: time 0.04259/0.4114, allocations: 29.74 MB / 0.5036 GB, free: 2.672 MB / 414.1 MB " [Timeout remaining time 660] 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.179893016349524]